function checkfield(loginform)
{
	ok=true;
	if(loginform.full_name.value=="")
	{
		alert("Please Enter Your Name.");
		loginform.full_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.country.value == "")
	{
		alert("Please Specify Country.");
		loginform.country.focus();
		ok=false
	}
	else if(loginform.phone.value=="")
	{
		alert("Please Enter Contact Number.")
		loginform.phone.focus()
		ok=false
	}
	else if(loginform.no_of_persons.value=="")
	{
		alert("Please Enter Number of Persons Travelling.")
		loginform.no_of_persons.focus()
		ok=false
	}
	else if(loginform.date_of_travel.value=="")
	{
		alert("Please Enter Your Date of travel.")
		loginform.date_of_travel.focus()
		ok=false
	}
	else if(loginform.duration_of_stay.value=="")
	{
		alert("Please Enter Your Duration of Stay.")
		loginform.duration_of_stay.focus()
		ok=false
	}
	else if(loginform.code.value=="")
	{
		alert("Please Enter Your Validation Code.")
		loginform.code.focus()
		ok=false
	}
	else if(loginform.requirements.value=="")
	{
		alert("Please Enter Your Requirements.")
		loginform.requirements.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;
}