<!-- form validation -->
function checkfield(loginform)
{
	ok=true
	if(loginform.name.value=="")
	{
		alert("Please Enter Your Name.")
		loginform.name.focus()
		ok=false
	}
	else if(loginform.country[loginform.country.selectedIndex].value== "")
	{
		alert("Please Select your Country.");
		loginform.country.focus();
		ok=false
	}
	else if(loginform.phone.value=="")
	{
		alert("Please enter your Phone No.")
		loginform.phone.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.month[loginform.month.selectedIndex].value== "")
	{
		alert("Please select Month.");
		loginform.month.focus();
		ok=false
	}
	else if(loginform.day[loginform.day.selectedIndex].value== "")
	{
		alert("Please select Day.");
		loginform.day.focus();
		ok=false
	}
	else if(loginform.year[loginform.year.selectedIndex].value== "")
	{
		alert("Please select Year.");
		loginform.year.focus();
		ok=false
	}
	
	else if(loginform.month1[loginform.month1.selectedIndex].value== "")
	{
		alert("Please select Month.");
		loginform.month1.focus();
		ok=false
	}
	else if(loginform.day1[loginform.day1.selectedIndex].value== "")
	{
		alert("Please select Day.");
		loginform.day1.focus();
		ok=false
	}
	else if(loginform.year1[loginform.year1.selectedIndex].value== "")
	{
		alert("Please select Year.");
		loginform.year1.focus();
		ok=false
	}
	else if(loginform.pax.value=="")
	{
		alert("Please enter no of Pax.")
		loginform.pax.focus()
		ok=false
	}
	else if(loginform.details.value=="")
	{
		alert("Please enter your Requirement.")
		loginform.details.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;
}
