function Fcheck()
{
	/*cid = document.form1.dt.value;
		if(cid == 'Select Date' || cid ==''){
		alert("Please check 'Check in Date'");
		document.form1.dt.focus();
		exit;
		}else{
var cidarray = cid.split(":");
cidy = cidarray[0];
cidm = cidarray[1]-1;
cidd = cidarray[2];
var today = new Date();
var cd = new Date();
cd.setYear(cidy);
cd.setMonth(cidm);
cd.setDate(cidd);
		if(cd <= today){
		alert("We do not book in History");
		document.form1.dt.focus();
		exit;
		}
	}
	cod = document.form1.dt.value;
	cod = new Date(cod);
		if(cod == 'Select Date' || cod =='' || cid > cod){
		alert("Please check 'Check out Date' should be later than Check in Date");
		document.form1.dt.focus();
		}else{
		document.form1.submit();
		}*/
}
//----------------------------------------------------------

function Check()
	{
	names = document.form_book.f_name.value;
	if(names =='')
		{
		alert("Please give yourself a name");
		document.form_book.f_name.focus();
		exit;
		}

	txt = document.form_book.cust_email.value;
		if (txt.indexOf("@")<3){
		alert("I'm sorry. This email address seems wrong. Please"
		+" check the prefix and '@' sign.");
		document.form_book.email.focus();
		exit;
		}

		if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)
		&&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)
		&&(txt.indexOf(".mil")<5)&&(txt.indexOf(".co")<5)&&(txt.indexOf(".in")<5)){
		alert("I'm sorry. This email address seems wrong. Please"
		+" check the suffix for accuracy. (It should include a "
		+".com,.net,.org,.gov or .mil)");
		document.form_book.email.focus();
		exit;
		}

	tel = document.form_book.telephone.value;
		if(tel =='')
		{
		alert("Phone No please, it will not be made public");
		document.form_book.telephone.focus();
		
		}
		else{
		document.form_book.submit();
		}
/*
	cid = document.form_book.cid.value;
		if(cid == 'Select Date' || cid ==''){
		alert("Please check 'Check in Date'");
		document.form_book.cid.focus();
		exit;
		}
		/*
var cidarray = cid.split(":");
cidy = cidarray[0];
cidm = cidarray[1]-1;
cidd = cidarray[2];
var today = new Date();
var cd = new Date();
cd.setYear(cidy);
cd.setMonth(cidm);
cd.setDate(cidd);

		if(cd <= today){
		alert("We do not book in the past! Please select a date ahead");
		document.form1.date.focus();
		exit;
		}

	cod = document.form_book.cod.value;
var codarray = cod.split(":");
cody = codarray[0];
codm = codarray[1]-1;
codd = codarray[2];
//var today = new Date();
var od = new Date();
od.setYear(cody);
od.setMonth(codm);
od.setDate(codd);

		if(cod == 'Select Date' || cod =='' || cd > od){
		alert("Please check 'Check out Date' should be later than Check in Date");
		document.form_book.cod.focus();
		}else{
		document.form_book.submit();
		}*/
}

function submitformbook()
{
        document.form_book.submit();
}

