// JavaScript Document
function checkit(str)
{
	var oEmail = document.getElementById('email');
	
	if(oEmail.value=="")
	{
	  alert("Please enter your email id");
	  oEmail.focus();
	}
	else if(oEmail.value.indexOf(".") < 0)
	{
	  alert("Please enter proper email id: john@example.com");
	  oEmail.focus();
	}
	else if(oEmail.value.indexOf("@") < 0)
	{
	  alert("Please enter proper email id: john@example.com");
	  oEmail.focus();
	}
	else
	{
		var email = oEmail.value;
	
		remoteCall("/enewsletter.php","file=main&email="+email,"showdisplay");
	}
}

function showdisplay()
{
	window.location.href="/thankyou.php";
}