Contact UsAmonkar's Boutique Hotel(Unit of Vetal Hotel & Resort Pvt. Ltd.)
|
$(function()
{
$('.date-pick').datePicker().val(new Date().asString()).trigger('change');
});
function fnvalidation()
{
//VARIABLE DECLRATION START
varname=document.getElementById("name").value
varemail=document.getElementById("email").value
vartel=document.getElementById("contact").value
varsubject=document.getElementById("weddingdate").value
varcomments=document.getElementById("location").value
varguests=document.getElementById("guest").value
varreq=document.getElementById("req").value
if(varname.length==0)
{
alert("Name Should Not be blank. \nPlease Enter Name.");
document.getElementById("name").focus();
return false;
}
if(varemail.length==0)
{
alert("Email Should Not be blank. \nPlease Enter Email.");
document.getElementById("email").focus();
return false;
}
if(vartel.length==0)
{
alert("Contact is Mandatory. \nPlease Enter Contact.");
document.getElementById("phone").focus();
return false;
}
if(varsubject.length==0)
{
alert("Wedding date is Mandatory. \nPlease Enter wedding date.");
document.getElementById("weddingdate").focus();
return false;
}
if(varcomments.length==0)
{
alert("Location is Mandatory. \nPlease Enter location.");
document.getElementById("location").focus();
return false;
}
if(varguests.length==0)
{
alert("Guest is Mandatory. \nPlease Enter guest.");
document.getElementById("guest").focus();
return false;
}
if(varreq.length==0)
{
alert("Request is Mandatory. \nPlease Enter Request.");
document.getElementById("req").focus();
return false;
}
}
Reservation Enquiry |
