<!--
function frm_Validate(){

if ( (document.form.name.value == "") || (document.form.email.value == "") || (document.form.description.value == "") || (document.form.country.value == ""))
{
    alert ("Please fill in all the compulsory fields");
    return (false);
}

if(document.form.email.value.indexOf(" ") >= 0)
{
	alert("Please enter your email-id without any white space character.");
	document.form.email.focus();
	return (false);
}
if ( (document.form.email.value.indexOf("@") == -1) || (document.form.email.value.indexOf(".") == -1) )
{
	alert("Please enter a valid email-id"); 
	document.form.email.focus();
	return (false);
}


BeforeAtRate = document.form.email.value.substring(0,document.form.email.value.indexOf("@"));
AfterAtRate = document.form.email.value.substring(document.form.email.value.indexOf("@")+1,document.form.email.value.length);

if (AfterAtRate.indexOf(".") == -1)
{
	alert("Please enter a valid email-id"); 
	document.form.email.focus();
	return (false);
}

middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."))
last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length)

if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
{
	alert("Please enter a valid email-id"); 
	document.form.email.focus();
	return (false);
}

newCookie = document.form.name.value;
newCookie +="|"+document.form.email.value;
newCookie +="|"+document.form.country.value;
newCookie +="|"+document.form.description.value;
setCookie("newImeshID",newCookie);
return true;
}
document.write('<form action="http://www.garhwaltrekking.com/query-form.php" method="post" name="form" id="form" ONSUBMIT="return frm_Validate()"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="2"><tr> <td align="center" bgcolor="#E6F2DF"><font color=#663300 size=-1 face="MS Sans Serif,verdana"><b><a href="http://www.garhwaltrekking.com/"><font color="#006600">garhwaltrekking.com</font></a></b></font><font color=#006600 size=-1 face="MS Sans Serif,verdana"><b>,Online Tour Operator in India for Tour Packages, Car / Coach Rental Services, Hotel Bookings and Air Bookings.</b></font></td></tr></table><br><TABLE width="100%" border=1 align=center cellPadding=3 cellSpacing=0 borderColor=#000000 bgcolor="#F8F9EC" style="BORDER-COLLAPSE: collapse" HSPACE="0" VSPACE="0"><TBODY><TR align="center"><TD colSpan=5><FONT face="MS Sans Serif,verdana" size=-2><B><FONT color=red>*</FONT></B>(represents Compulsory Fields)</FONT></TD></TR><TR><TD width="27%"><FONT face="MS Sans Serif,verdana" size=-2><STRONG><FONT color=red>*</FONT>Name :</STRONG></FONT></TD><TD width="19%"><INPUT maxLength=48 name=name size=15></TD><TD width="25%"><FONT face="MS Sans Serif,verdana" size=-2><STRONG>No. of Persons : </STRONG></FONT></TD><TD width="29%"> <INPUT name=no_of_person size=8></TD></TR><TR><TD><FONT face="MS Sans Serif,verdana" size=-2><STRONG><FONT color=red>*</FONT>E-Mail : </STRONG></FONT></TD><TD> <INPUT maxLength=48 name=email size=15></TD><TD><FONT face="MS Sans Serif,verdana" size=-2><STRONG>Date of Arrival :</STRONG></FONT></TD><TD><INPUT name=date_of_arrival size=8></TD></TR><TR> <TD><FONT face="MS Sans Serif,verdana" size=-2><STRONG>Phone :</STRONG><BR>(including area code)</FONT></TD><TD><INPUT maxLength=48 name=phone size=15></TD><TD><FONT face="MS Sans Serif,verdana" size=-2><STRONG>Duration of stay :</STRONG></FONT></TD><TD><INPUT maxLength=48 name=duration_of_stay size=8><FONT face="MS Sans Serif,verdana" size=-2>Days</FONT></TD></TR><TR><TD><FONT face="MS Sans Serif,verdana" size=-2><STRONG><FONT color=red>*</FONT>Country :</STRONG></FONT></TD><TD><INPUT maxLength=48 name=country size=15></TD><TD>&nbsp;</TD><TD>&nbsp;</TD></TR><TR><TD colSpan=5 align=middle vAlign=top><FONT face="MS Sans Serif,verdana" size=-2><STRONG><FONT color=red>*</FONT>Describe Your Requirements:</STRONG></FONT><BR><TEXTAREA cols=55 name="description" rows=4 wrap=PHYSICAL></TEXTAREA><BR></TD></TR><TR align="center"><TD colSpan=5 vAlign=top><INPUT name="Input" style="FONT-FAMILY: MS Sans Serif; FONT-SIZE: 12px" type=submit value="Submit Query">&nbsp;&nbsp;&nbsp;&nbsp; <INPUT name="Input" style="FONT-FAMILY: MS Sans Serif; FONT-SIZE: 12px" type=reset value=Reset></TD></TR></TBODY></TABLE></form>');
//-->

