function newsletterSignup()
{
var xmlhttp;
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
var entry = document.getElementById('newsletterEmail');
var email = entry.value;
if (email=='' || email=='Enter Email' || email=='Invalid Email' || email=='Added') {
  entry.value='Enter Email';
} else if (email.search(emailRegEx) == -1) {
  entry.value='Invalid Email';
} else {
  entry.value='Added';

if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    //document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","nljoin.php?em="+email,true);
xmlhttp.send();

}
}
