// JavaScript Document
function subtabs(a)
{
	i=1;
	while(document.getElementById('subtabs'+i)){
			document.getElementById('subtabs'+i).className='inactive';
			document.getElementById('sub_txt'+i).style.display='none';
   			i++;
	}
	document.getElementById('subtabs'+a).className='active';
	document.getElementById('sub_txt'+a).style.display='block';
}


function checkbooking()
{ 
if(document.sendinquiry.name.value =="")
{
alert("Name can not be black");
document.sendinquiry.name.focus();
exit();
}
if(document.sendinquiry.email.value =="")
{
alert("Email can not be black");
document.sendinquiry.email.focus();
exit();
}
if(document.sendinquiry.contact.value =="")
{
alert("Contact Number can not be black");
document.sendinquiry.contact.focus();
exit();
}
if(document.sendinquiry.res_date.value =="")
{
alert("Reservation date can not be black");
document.sendinquiry.res_date.focus();
exit();
}
if(document.sendinquiry.message.value =="")
{
alert("Essential Information can not be black");
document.sendinquiry.message.focus();
exit();
}
document.sendinquiry.submit();

}


function checkenquiry()
{ 
if(document.sendenquiry.name.value =="")
{
alert("Name can not be black");
document.sendenquiry.name.focus();
exit();
}
if(document.sendenquiry.email.value =="")
{
alert("Email can not be black");
document.sendenquiry.email.focus();
exit();
}
if(document.sendenquiry.contact.value =="")
{
alert("Contact Number can not be black");
document.sendenquiry.contact.focus();
exit();
}
if(document.sendenquiry.subject.value =="")
{
alert("Reservation date can not be black");
document.sendenquiry.subject.focus();
exit();
}
if(document.sendenquiry.message.value =="")
{
alert("Essential Information can not be black");
document.sendenquiry.message.focus();
exit();
}
document.sendenquiry.submit();

}



function checkcall()
{
if(document.calldetails.name.value =="" || document.calldetails.name.value =="Name")
{
alert("Name can not be black");
document.calldetails.name.focus();
exit();
}
if(document.calldetails.email.value =="" || document.calldetails.email.value =="Email")
{
alert("Email can not be black");
document.calldetails.email.focus();
exit();
}
if(document.calldetails.contact.value =="" || document.calldetails.contact.value =="Contact Number")
{
alert("Contact Number can not be black");
document.calldetails.contact.focus();
exit();
}
if(document.calldetails.time.value =="" || document.calldetails.time.value =="Preffered Time to call")
{
alert("Preffered Time to call can not be black");
document.calldetails.time.focus();
exit();
}
document.calldetails.submit();

}
