function checkfield(loginform)
{
	ok=true
	if(loginform.name.value=="")
	{
		alert("Please Enter Your Name.")
		loginform.name.focus()
		ok=false
	}
	else if(loginform.Date_of_Travel.value=="")
	{
		alert("Please Enter Date of Travel.")
		loginform.Date_of_Travel.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 Enter Phone.")
		loginform.phone.focus()
		ok=false
	}
	
	
	else if (loginform.City.value == "")
	{
		alert("Please enter a value for the City field.");
		loginform.City.focus();
		ok=false
	}
	
	
	else if (loginform.Comments.value == "")
	{
		alert("Please specify your Comments.");
		loginform.Comments.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;
	}