// JavaScript Document
function newWindow( winURL, winName, height ) {
  theWin = window.open( winURL, winName, 'width=600,height=' + height + ',scrollbars=yes,resizable=1' )
  theWin.focus()
}	

function emailcheck()
{
  str=document.frm1.email.value 
  if(str.length>0)
   {
	var cnt=0;
	var cntp=0;
	var p=0;
	var q=0;
	var s=str.length;
	for(var ii=0;ii<str.length;ii++)
	{	if(str.charAt(ii)==".")
			{
				cnt++;
				p=ii;
			}
			if(str.charAt(ii)=="@")
			{
				cntp++;
				q=ii;
			}
	}
	if ( cntp!=1 || p<q || q==0 ||p-q<2 || p==s-1)
	{
	alert("Please enter email address in proper format !")
	document.frm1.email.value="";
	document.frm1.email.focus();
	}		
 }
}
function isOK()
{
if(document.frm1.name.value=="")
	{
	alert("Please enter the Name!");
	document.frm1.name.focus();
	}
else if(document.frm1.phone.value=="")
	{
	alert("Please enter the Phone No.!");
	document.frm1.phone.focus();
	}
else if(document.frm1.email.value=="")
	{
	alert("Please enter the Emailid !");
	document.frm1.email.focus();
	}
/*else if(document.frm1.address1.value=="")
	{alert("Please enter your Adress !");document.frm1.address1.focus();}
*/

else
	{document.frm1.submit();
	}

}