function pop_validate()
{

n=document.form1.T_name.value;
e=document.form1.T_email.value;
dt=document.form1.T_dt.value;
dy=document.form1.S_days.value;
cat=document.form1.S_cat.value;
adu=document.form1.S_adult.value;
kid=document.form1.S_kids.value;
qry=document.form1.T_query.value;

if(n=="" || qry=="" || adu==0 || kid==0 || dt=="dd/mm/yy")
{
alert("Fields cannt be left blank");
return false;
}
else if((e !="") && (e.indexOf("@")== -1) || (e.indexOf(".")== -1))
{
alert("plz enter the valid email ");
document.form1.T_email.focus();
return false;
}

else
{
url='email/sendmail.php?nt='+n + '&et=' + e + '&dt=' + dt + '&dy=' + dy + '&cat=' + cat + '&adu=' + adu + '&kid=' + kid + '&qry=' + qry;
window.open(url  ,"win","width=350px,height=300px"); 

}
}


