function checkfield(loginform)
{
	ok=true
	if(loginform.checkin.value=="")
	{
		alert("Please Enter Check in Date.")
		loginform.checkin.focus()
		ok=false
	}
   else if(loginform.inmonth.value=="")
	{
		alert("Please Enter Check in Month.")
		loginform.inmonth.focus()
		ok=false
	}
	else if(loginform.inyear.value=="")
	{
		alert("Please Enter Check in Year.")
		loginform.inyear.focus()
		ok=false
	}
	else if(loginform.checkout.value=="")
	{
		alert("Please Enter Check Out Date.")
		loginform.checkout.focus()
		ok=false
	}
	else if(loginform.outmonth.value=="")
	{
		alert("Please Enter Check Out Month.")
		loginform.outmonth.focus()
		ok=false
	}
	else if(loginform.outyear.value=="")
	{
		alert("Please Enter Check Out Year.")
		loginform.outyear.focus()
		ok=false
	}
	else if(loginform.preference.value=="")
	{
		alert("Please Enter any Preference or Other Requirements.")
		loginform.preference.focus()
		ok=false
	}
	else if(loginform.name.value=="")
	{
		alert("Please Enter Your Name.")
		loginform.name.focus()
		ok=false
	}
	else if (loginform.email.value == "")
	{
		alert("Please enter a value for the email field.");
		loginform.email.focus();
		ok=false
	}
	else if (!isEmailAddr(loginform.email.value))
	{
		alert("Please enter a complete email address in the form: yourname@yourdomain.com");
		loginform.email.focus();
		ok=false
	}
		else if (loginform.phone.value == "")
	{
		alert("Please Specify Your Phone Number.");
		loginform.phone.focus();
		ok=false
	}
		else if (loginform.country.value == "")
	{
		alert("Please Specify Your Country Name.");
		loginform.country.focus();
		ok=false
	}
	return ok
}
function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
	var pindex = theStr.indexOf(".",index);
	if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}
function ValidateNum(input,event){
			var keyCode = event.which ? event.which : event.keyCode;
			if(parseInt(keyCode)>=48 && parseInt(keyCode)<=57){
				return true;
			}
			return false;
		}