			function makePOSTRequest(url, parameters) {
				
				http_request = false;
				if (window.XMLHttpRequest) { // Mozilla, Safari,...
					http_request = new XMLHttpRequest();
					if (http_request.overrideMimeType) {
						// set type accordingly to anticipated content type
						http_request.overrideMimeType('text/xml');
						http_request.overrideMimeType('text/html');
						// http_request.overrideMimeType('text/cgi');
					}
				} else if (window.ActiveXObject) { // IE
					try {
						http_request = new ActiveXObject("Msxml2.XMLHTTP");
					} catch (e) {
						try {
							http_request = new ActiveXObject("Microsoft.XMLHTTP");
						} catch (e) {}
					}
				}
				
				if (!http_request) {
					alert('Cannot create XMLHTTP instance');
					return false;
				}
				
				http_request.onreadystatechange = alertContents;
				http_request.open('POST', url, true);
				http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
				http_request.setRequestHeader("Content-length", parameters.length);
				http_request.setRequestHeader("Connection", "close");
				http_request.send(parameters);
			}
		
			function alertContents() {
				if (http_request.readyState == 4) {
					if (http_request.status == 200) {
						result = http_request.responseText;
						// setCookie('set_subscribe_cookie.jsp');
						document.location.href = "subscribe_thanks.jsp?" + goGetFormElements(document.SignUp,'');
						// document.write(result);
					} else {
						alert('There was a problem with the request.');
					}
				}
			}
			
			function get(obj,check) {
				// makePOSTRequest('process_form2.jsp', goGetFormElements(obj,'all'));
				
				// location of POST request -- /servlet/omeda -- is an HttpProxy proxy to allow
				// Cross-Domain Ajax call. Proxy defined as servlet in web.xml
					makePOSTRequest('/servlet/omeda', goGetFormElements(obj,check));
			}
			
			function goGetFormElements(obj,check) {
				var poststr = "";
				if(check == "all") {
					poststr +=  "formname=" + document.getElementById("formname").value  +
								"&PERSONAL_ID=" + document.getElementById("PERSONAL_ID").value ;
				}	
				// 0 if checked
				if(document.getElementById("PENNENERGY_JOBS").checked)
					poststr += "&PENNENERGY_JOBS=" + document.getElementById("PENNENERGY_JOBS").value ;
				else
					poststr += "&PENNENERGY_JOBS=";
					
				// 0 if checked
				if(document.getElementById("WORKFORCE_GUIDE").checked)
					poststr += "&WORKFORCE_GUIDE=" + document.getElementById("WORKFORCE_GUIDE").value ; 
				else
					poststr += "&WORKFORCE_GUIDE=";
					
				poststr +=  "&FNAME=" + document.getElementById("FNAME").value  + 
							"&LNAME=" + document.getElementById("LNAME").value  + 
							"&TITLE=" + document.getElementById("TITLE").value  + 
							"&COMPANY=" + document.getElementById("COMPANY").value  + 
							"&COUNTRY=" + document.getElementById("COUNTRY").value  + 
							"&EMAIL_ADDRESS=" + document.getElementById("EMAIL_ADDRESS").value ;
				
				var radioItem = document.SignUp.TEXT_HTML;
				for(i=0; i<radioItem.length; i++) {
					if(radioItem[i].checked) {
						poststr += "&TEXT_HTML=" + radioItem[i].value ;
					}
					else
						poststr += "&TEXT_HTML="
				}
				
				// 1 if checked 
				if(document.getElementById("3RDPARTY_DNP").checked)
					poststr += "&3RDPARTY_DNP=" + document.getElementById("3RDPARTY_DNP").value ;
				else
					poststr += "&3RDPARTY_DNP="
				
				return poststr;
			}