
/*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.indianpalaceonwheels.com/rail.php">');
document.write('   <input type="hidden" size="32" name="url"> ');
document.writeln("<style>");
document.writeln(".but1");
document.writeln("{");
document.writeln("width:80px;");
document.writeln("height:30px;");
document.writeln("font-size:12px;");
document.writeln("background-color:#98936a;;");
document.writeln("color:#FFFFFF;");
document.writeln("float:left;");
document.writeln("font-weight:bold;");
document.writeln("font-family:Arial, Helvetica, sans-serif;");
document.writeln("text-align:center;");
document.writeln("}");
document.writeln("");
document.writeln(".but2");
document.writeln("{");
document.writeln("width:80px;");
document.writeln("height:30px;");
document.writeln("font-size:12px;");
document.writeln("background-color:#98936a;;");
document.writeln("color:#FFFFFF;");
document.writeln("font-weight:bold;");
document.writeln("font-family:Arial, Helvetica, sans-serif;");
document.writeln("text-align:center;");
document.writeln("}");
document.writeln(".mumbaipdleft11{padding-left:4px;}");
document.writeln(".lefttbltxt11{font-size:13px; font-weight:bold;}");
document.writeln(".fbrown1 { font-size: 10pt; color: #A33616; font-family: Verdana ;}");
document.writeln(".form_head{font-size:14px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; padding:2px;}");
document.writeln(".lefttblbrdd{border-bottom:#98936b solid 3px;}");
document.writeln("</style>");
document.writeln("");
document.writeln("<table width=\"100%\" border=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td colspan=\"6\" class=\"form_head\">Send Your Query...</td>");
document.writeln("    </tr>");
document.writeln("  <tr>");
document.writeln("    <td colspan=\"5\">&nbsp;</td>");
document.writeln("    </tr>");
document.writeln("   <tr>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td width=\"126\" align=\"left\" class=\"lefttbltxt11 mumbaipd mumbaipdleft11\">Your Name</td>");
document.writeln("    <td width=\"23\">&nbsp;</td>");
document.writeln("    <td colspan=\"2\" align=\"left\"><input type=\"text\" name=\"txtName\" id=\"txtName\" size=\"23\" style=\"color: #024378; background-color: #FDFEFF\" /></td>");
document.writeln("    <td width=\"133\">&nbsp;</td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td colspan=\"5\">&nbsp;</td>");
document.writeln("    </tr>");
document.writeln(" <tr>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td align=\"left\" width=\"126\"class=\"lefttbltxt11 mumbaipd mumbaipdleft11\">Your E- mail </td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td colspan=\"2\" align=\"left\"><input type=\"text\" name=\"txtMail\" id=\"txtMail\" size=\"23\" style=\"color: #024378; background-color: #FDFEFF\" /></td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("  </tr>");
document.writeln("  <tr>");
document.writeln("    <td colspan=\"5\">&nbsp;</td>");
document.writeln("    </tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"77\">&nbsp;</td>");
document.writeln("    <td width=\"126\" align=\"left\" class=\"lefttbltxt11 mumbaipd mumbaipdleft11\">Your Query</td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td colspan=\"2\"><textarea name=\"txtQuery\" id=\"txtQuery\" cols=\"20\" rows=\"4\" ></textarea></td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("  </tr>");
document.writeln("");
document.writeln("  <tr>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td valign=\"top\" align=\"left\">&nbsp;</td>");
document.writeln("    <td>&nbsp;</td>");
document.writeln("    <td valign=\"top\"><input name=\"submit\" type=\"button\" value=\"Mail\" onclick=\"querymail1();\" class=\"but1\"/></td>");
document.writeln("    <td valign=\"top\"><input type=\"reset\" name=\"txtReset\" value=\"Reset\" class=\"but2\"/></td>");
document.writeln("    <td>&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";
}


