

function enlarge(img,cod,len,brd)
{
url="../images/Mh1019.jpg";
window.open(img,cod,"menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=no,height="+len+",width="+brd+",resizable=yes,alwaysraised=yes,left=10,top=10")
}




function checkenquiry()
{
	docf=document.query;
	if(docf.name.value=='')
	{
		alert("Please enter your Company Name");
		docf.name.focus();
		return false;
	}	
	if(docf.add.value=='')
	{
		alert("Please enter your Address");
		docf.add.focus();
		return false;
	}
	
	
	if(docf.phone.value=='')
	{
		alert("Please enter phone No");
		docf.phone.focus();
		return false;
	}
	if(docf.fax.value=='')
	{
		alert("please enter your fax no");
		docf.fax.focus();
		return false;
	}
	if(docf.email.value=='')
	{
		alert("Please enter email Address");
		docf.email.focus();
		return false;
	}
return validate_form(docf);
}

function validate_email(field,alerttxt)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
  		{
  			alert(alerttxt);
  			return false;
  		}
		else 
		{
			return true;
		}
	}
	
}

function validate_form(thisform)
{
	with (thisform)
	{
		if (validate_email(email,"Not a valid e-mail address!")==false)
  		{
  			email.focus();
  			return false;
  		}
	}
	
}