<!--
//submit the signup form
function submitfrm(){
	//document.newsletter.submit();
	if (document.getElementById("em").value == '') {
	
	}
	else
	{
		email_signup();
	}
}


function createRO() {
	// find the correct xmlHTTP, works with IE, FF and Opera
	var xmlhttp;
	try {
  	xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
  }
  catch(e) {
    try {
    	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch(e) {
    	xmlhttp=null;
    }
  }
  if(!xmlhttp&&typeof XMLHttpRequest!="undefined") {
  	xmlhttp=new XMLHttpRequest();
  }
	return  xmlhttp;
}


// function for email signup
function email_signup(){
	
	var ajx = createRO();
	
	var url = "ajx_email_signup.php";
	var em = document.getElementById("em").value;
	var params = 'em='+escape(em);
	
	ajx.open("POST", url, true);
	
	//Send header information with request
	ajx.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	ajx.setRequestHeader("Content-length", params.length);
	ajx.setRequestHeader("Connection", "close");
	
	
	// state change function
	ajx.onreadystatechange = function(){
	
		if (ajx.readyState == 4 && ajx.status == 200) {
			document.getElementById("emailresp").innerHTML=ajx.responseText;
		}
	}
	ajx.send(params);
}
-->