function log_Validate(f)
{ 	var msg="";
	if(f.UserName.value=="" || f.Password.value=="")
	{
		alert("Please enter your UserID and PASSWORD ");
	}
	else
		f.submit();
}
function validnews()
{
    var msg="";
	var ok=true;
	for(var i=0;i<2;i++)
	{
	if(document.Newsform.op[i].checked==true)
	{
	var ID=document.Newsform.op[i].value; 
	}
	}
	var str=document.Newsform.EmailID.value;
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/;
	if (!filter.test(str))
	{
		msg = msg + "Please enter a valid Email\n";
		ok=false;
	}
	if(ok==false)
	{
		alert(msg);
	}	
	if(ok==true)
	{
	  location.href = "newsletter_signup.php?Email="+str+"&ID="+ID;	 
	}	
}
function sendto(ID)
{
     window.open("sent_mail.php?ID="+ID,'Preview','width=400,height=250,toolbar=no,location=0,status=0,menubar=0,titlebar=0,scrollbars=0,resizable=0');
}