function op(pcode)
{
window.open("enquiry.php?pcode="+pcode,"","height=450,width=440,top=100,left=200,scrollbars=yes,menubars=no,toolbars=no,resizable=yes")
}


function check(theform)
{
if(theform.name.value=="")
{
alert("Error !\nPlease enter your  name.");
theform.name.focus();
return false;
}
if(theform.designation.value=="")
{
alert("Error !\nPlease enter your designation.");
theform.designation.focus();
return false;
}
if(theform.organization.value=="")
{
alert("Error !\nPlease enter your organization.");
theform.organization.focus();
return false;
}
if(theform.city.value=="")
{
alert("Error !\nPlease enter your city.");
theform.city.focus();
return false;
}
/*

if(theform.state.value=="")
{
alert("Error !\nPlease enter your state.");
theform.state.focus();
return false;
}
if(theform.country.value=="")
{
alert("Error !\nPlease enter your country.");
theform.country.focus();
return false;
}
if(theform.phone.value=="")
{
alert("Error !\nPlease enter your phone number.");
theform.phone.focus();
return false;
}
*/
if(theform.email.value=="")
{
alert("Error !\nPlease enter your email.");
theform.email.focus();
return false;
}
else
{ if(theform.email.value.indexOf("@",1)== -1) 
  {
    alert ("Error !\nEnter a valid E-mail address.");
    theform.email.value="";
    theform.email.focus();
    return false;
  }
}

if(theform.products.value=="")
{
alert("Error !\nPlease enter products interested in.");
theform.products.focus();
return false;
}


if(theform.comments.value=="")
{
alert("Error !\nPlease enter your comments.");
theform.comments.focus();
return false;
}


return true;
}