function wopen(docuid, ht, wt)
{
  var mywin;
   W = wt
   H  = ht
   msdn = docuid
   var myW = W ? W : screen.availWidth;
   var myH = H ? H : screen.availHeight;
   mywin = window.open(msdn,"",'width='+myW+',height='+myH+', top=2,left=2,scrollbars=auto');
   mywin.resizeTo(myW,myH);
}


function web_chk(thisform)
{
		if (thisform.cpname.value == "") 
			 {
				alert("please enter contact person name")
				thisform.cpname.focus()
				return false
			 }
		if (thisform.teleph.value != "") 
			 {
				var GoodChars = "0123456789()-+ "
				for (var i =0; i <= thisform.teleph.value.length -1; i++) 
					{
						if (GoodChars.indexOf(thisform.teleph.value.charAt(i)) == -1) 
							{
		 				    alert("please enter the valid phone number with area code.")
						    thisform.teleph.value = ""
							thisform.teleph.focus()
							return false
							} 
					}
			 }
		 else
			{
				alert("please enter the phone number with area code.")
				thisform.teleph.focus()
				return false
			}

		if (thisform.website_opt1.value == "") 
			 {
				alert("please enter domain name required")
				thisform.website_opt1.focus()
				return false
			 }

		if (thisform.email.value != "")
		{
			if (thisform.email.value == "" || thisform.email.value.indexOf('@',0) == -1 || thisform.email.value.indexOf('.',0) == -1) 
				 {
				   alert ("please enter a valid e-mail address") ;
				   thisform.email.focus() ;
				   return false ;
				 }
		}

			if (thisform.ia.checked != true)
				{
					alert("please check the terms and conditions before submitting it.")
					thisform.ia.focus();
					return false;
				}
}
