
/*document.write('<form method="post" name="formrail" id="formrail" action="http://www.india-travelpackages.com/newjs-package/form/rail.php">');*/
document.write('<form method="post" name="formrail" id="formrail" action="http://www.india-palaceonwheels.com/rail.php">');
document.write('   <input type="hidden" size="32" name="url"> ');
document.writeln("<table width=\"70%\" height=\"80 \" border=\"0\" cellPadding=\"2\" cellspacing=\"0\" class=\"lefttblbrd\">");
document.writeln("	<tr>");
document.writeln("	<td colspan=\"6\"  class=\"form_head\" align=\"center\"> Send Your Query........</td>");
document.writeln("	</tr>");
document.writeln("	<tr>");
document.writeln("	<td colspan=\"5\">&nbsp; </td>");
document.writeln("	</tr>");
document.writeln("");
document.writeln("");
document.writeln("  <tr>");
document.writeln("    <td width=\"4%\">&nbsp;</td>");
document.writeln("    <td width=\"18%\" align=\"left\" class=\"lefttbltxt11 mumbaipd mumbaipdleft11\" valign=\"top\"><strong>Your Name </strong></td>");
document.writeln("    <td width=\"3%\">&nbsp;</td>");
document.writeln("    <td colspan=\"3\" align=\"left\"> <input size=\"23\" style=\"color: #024378; background-color: #FDFEFF\"  name=\"txtName\" id=\"txtName\" /></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td valign=\"top\" align=\"left\" class=\"lefttbltxt11 mumbaipd mumbaipdleft11\"><strong>Your E-mail </strong></td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td colspan=\"3\" align=\"left\"><input size=\"23\" style=\"color: #024378; background-color: #FDFEFF\"  name=\"txtMail\" id=\"txtMail\" /></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td valign=\"top\" align=\"left\" class=\"lefttbltxt11 mumbaipd mumbaipdleft11\"><strong>Your Query</strong></td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td colspan=\"3\" align=\"left\"><textarea name=\"txtQuery\" id=\"txtQuery\" cols=\"20\" rows=\"4\">&nbsp;</textarea></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td width=\"7%\" align=\"left\"><input type=\"button\" value=\"Mail\" onclick=\"querymail1();\" style=\"font-weight: bold; color: #ffffff; border-style: solid; border-width: 1; border-color:#FFFFFF; background-color: #98936a;\" /> </td>");
document.writeln("");
document.writeln("    <td width=\"68%\" align=\"left\"><input type=\"reset\" value=\"Reset\" name=\"txtReset\" style=\"font-weight: bold; color: #ffffff; border-style: solid; border-width: 1; border-color:#FFFFFF; background-color: #98936a;\" /></td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td colspan=\"3\">&nbsp;</td>");
document.writeln("  </tr>");
document.writeln("</table>");
document.write('  <p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" align="left">&nbsp;</p> ');
document.write(' </form> ');
document.write(' <br>');


function querymail1()
{
 var newWin1;
var nametxt=document.getElementById("txtName").value;
var emailtxt=document.getElementById("txtMail").value;
var commentstxt=document.getElementById("txtQuery").value;

if((emailtxt !="") && (emailtxt.indexOf("@")== -1) || (emailtxt.indexOf(".")== -1))
{
alert("plz enter the valid email ");
//emailtxt.focus();
}
else
{
if(nametxt=="" || emailtxt=="")
{
alert("Please fill the required fields");
}
else
{
 newWin1 =window.open("","mail",'resizable=no,scrollbars=no,width=350,height=300,toolbar=no,left=200,top=200');
 formrail.target="mail";
 formrail.submit();
 formrail.reset();
}
}
}


function qfrm2()
{
if(document.getElementById('nametxt').value=="Name")
document.getElementById('nametxt').value="";
}
function qfrm1()
{
if(document.getElementById('nametxt').value=="")
document.getElementById('nametxt').value="Name";
}
function qfrm4()
{
if(document.getElementById('emailtxt').value=="Email")
document.getElementById('emailtxt').value="";
}
function qfrm3()
{
if(document.getElementById('emailtxt').value=="")
document.getElementById('emailtxt').value="Email";
}
function qfrm6()
{
if(document.getElementById('commentstxt').value=="Query")
document.getElementById('commentstxt').value="";
}
function qfrm5()
{
if(document.getElementById('commentstxt').value=="")
document.getElementById('commentstxt').value="Query";
}


