function querymail(){
var newWin;

var nametxt=document.getElementById("nametxt").value;

var emailtxt=document.getElementById("emailtxt").value;

var mobiletxt=document.getElementById("mobiletxt").value;

var commentstxt=document.getElementById("commentstxt").value;



if((emailtxt !="") && (emailtxt.indexOf("@")== -1) || (emailtxt.indexOf(".")== -1))

{
alert("plz enter the valid email") 
//emailtxt.focus();
}
else
{
if(nametxt=="" || nametxt=="Name"|| emailtxt=="" || emailtxt=="Email" || mobiletxt=="" || mobiletxt=="Country code + Mobile No." || commentstxt=="" || commentstxt=="Query")
{
alert("Please fill the required fields")
}
else
{
 newWin =window.open("","mail",'resizable=no,scrollbars=no,width=570,height=340,toolbar=no,left=200,top=100');

 document.formnew.target="mail";

 document.formnew.submit();

 document.formnew.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 qfrm8()
{
if(document.getElementById('mobiletxt').value=="Country code + Mobile No.")
document.getElementById('mobiletxt').value="";
}
function qfrm7()
{
if(document.getElementById('mobiletxt').value=="")
document.getElementById('mobiletxt').value="Country code + Mobile No.";
}
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";
}
document.writeln("");
document.writeln("  <style>");
document.writeln("");
document.writeln(".queryfrm{border:#d7d138 solid 1px;}");
document.writeln("");
document.writeln(".graybgd1{border:#838380 solid 1px; background-color:#f4f2db;}");
document.writeln("");
document.writeln(".lefttbltxt{font-size:14px; font-weight:bold; font-family:Verdana, Arial, Helvetica, sans-serif;}");
document.writeln("");
document.writeln(".mumbaipd{padding-top:3px; padding-bottom:3px;}");
document.writeln("");
document.writeln(".mumbaipdleft{padding-left:12px;}");
document.writeln("");
document.writeln(".qfrm {color: #000000}");
document.writeln("");
document.writeln(".qfrm_top1{font-family:Verdana, Geneva, sans-serif; font-size:12px;}");
document.writeln("");
document.writeln(".qfrm_btm1{border-bottom:#d3a71a solid 6px;}");
document.writeln("");
document.writeln(".qfrm_top1 span{font-size:10px;}");
document.writeln("");
document.writeln(".qurytxt{font-size:10px; font-family:Verdana, Geneva, sans-serif; padding-left:12px; display:none;}");
document.writeln("");
document.writeln(".queryinpt{width:22em;border:1px solid #d3a71a; height:15px; background-color:#FFF; font-size:10px; font-family:Verdana, Geneva, sans-serif;}");
document.writeln("");
document.writeln(".querytxtara{border:1px solid #d3a71a;font-size:10px; font-family:Verdana, Geneva, sans-serif; color:#000000;}");
document.writeln("");
document.writeln("</style>");
document.writeln("");
document.writeln("<form method=\"post\" id=\"formnew\" name=\"formnew\" action=\"http://www.mumbaihotels.net/query_mail.php\">");
document.writeln("");
document.writeln("<table width=\"220\" cellspacing=\"0\" cellpadding=\"3\" bgcolor=\"#FFFFFF\" align=\"center\">");
document.writeln("");
document.writeln("				<tr><td colspan=\"3\" class=\"qfrm_top1\"><strong>Please fill the form to get best rate</strong> <span>package/hotels/car rentals</span></td>");
document.writeln("");
document.writeln("				</tr>");
document.writeln("");
document.writeln("                    <tr><td width=\"160\" height=\"25\" align=\"left\" style=\"padding-left:12px;\"><input name=\"nametxt\" id=\"nametxt\" class=\"queryinpt\" value=\"Name\" onblur=\"javascript:qfrm1();\"  onfocus=\"javascript:qfrm2();\"/></td></tr>");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("                  <tr> <td height=\"25\" align=\"left\" style=\"padding-left:12px;\"><input  name=\"emailtxt\" id=\"emailtxt\"  class=\"queryinpt\" value=\"Email\" onblur=\"javascript:qfrm3();\"  onfocus=\"javascript:qfrm4();\"/></td></tr>");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("<tr> <td height=\"25\" align=\"left\" valign=\"top\" style=\"padding-left:12px;\"><input  name=\"mobiletxt\" value=\"Country code + Mobile No.\" onblur=\"javascript:qfrm7();\"  onfocus=\"javascript:qfrm8();\"  id=\"mobiletxt\"  class=\"queryinpt\"/></td></tr>");
document.writeln("");
document.writeln("                <tr>");
document.writeln("");
document.writeln("               <td align=\"left\" style=\"padding-left:12px;\"><textarea  name=\"commentstxt\" id=\"commentstxt\" class=\"querytxtara\" cols=\"40\" onblur=\"javascript:qfrm5();\"  onfocus=\"javascript:qfrm6();\">Query</textarea></td></tr>");
document.writeln("");
document.writeln("<tr>");
document.writeln("");
document.writeln("                    <td align=\"center\"><input style=\"font-weight: bold; cursor:pointer;\" type=\"button\" onclick=\"querymail()\"  value=\"Send\" /></td>");
document.writeln("");
document.writeln("                  </tr>");
document.writeln("");
document.writeln("<tr>");
document.writeln("");
document.writeln("  <td align=\"left\" class=\"qfrm_btm1 qurytxt\"><input type=\"checkbox\" value=\"\" checked name=\"checkqut\" id=\"checkqut\" />I authorize Services International Ltd. to Contact me on my mobile number.");
document.writeln("");
document.writeln("</td>");
document.writeln("");
document.writeln("</tr>");
document.writeln("");
document.writeln("");
document.writeln("");
document.writeln("				 </table>");
document.writeln("");
document.writeln("				 </form>");
document.writeln("");
document.writeln("");

