<!--


function validate()
{
var check1,check2,flag;
var url;
url=window.location.href;
country=document.query.country.value;
document.query.url.value=url;
flag=true;
var mail=document.query.txtMail.value;

var invalidChar = " *|,\":<>/[]{}`\';()&$#%";

if(country==0)
{
	alert("Please select the Country");
	flag=false;
	document.query.country.focus();
	return false;
}
else
{
	flag=true;
}


   for (var i = 0; i < mail.length; i++) 
   {
      if (invalidChar.indexOf(mail.charAt(i)) != -1)
      	{
         alert("Invalid Mail ID");
				flag=false;
				document.query.txtMail.focus();
				return false;
       }
   }
			

if(mail!="")
	{
		check1=mail.indexOf("@");
		check2=mail.indexOf(".");
		if(check1==-1 || check2==-1)
			{
				alert("Invalid Mail ID");
				flag=false;
				document.query.txtMail.focus();
				return false;
			}
		if((check1-check2)==1 || (check1-check2)==-1)
			{
				alert("Invalid Mail ID");
				flag=false;
				document.query.txtMail.focus();
				return false;
			}
		
	}

if(mail=="")
{
				alert("Invalid Mail ID");
				flag=false;
				document.query.txtMail.focus();
				return false;
}

if(flag==true)
	{
		document.query.submit();
	}
}


// end the hiding comment --> 

