
function checkfield(loginform)
{
	ok=true
	if(loginform.name.value=="")
	{
		alert("Please Enter Your Name.")
		loginform.name.focus()
		ok=false
	}
	
	else if(loginform.country.value=="")
	{
		alert("Please Enter Your Country Name.")
		loginform.country.focus()
		ok=false
	}
	
	else if(loginform.tel_no.value=="")
	{
		alert("Please Enter Phone No.")
		loginform.tel_no.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.validation_code.value=="")
	{
		alert("Please Enter Validation Code.")
		loginform.validation_code.focus()
		ok=false
	}
	
	else if(loginform.travel_duration.value=="")
	{
		alert("Please Enter Duration of Travel in India (Approx.).")
		loginform.travel_duration.focus()
		ok=false
	}
	
	else if(loginform.intended_month_year_of_visit.value=="")
	{
		alert("Please Enter Month & Year of Visit.")
		loginform.intended_month_year_of_visit.focus()
		ok=false
	}
		
	else if(loginform.number_of_adults_travelling.value=="")
	{
		alert("Please Enter Adults Travelling.")
		loginform.number_of_adults_travelling.focus()
		ok=false
	}
	
	else if(loginform.number_of_children_travelling.value=="")
	{
		alert("Please Enter Children Travelling.")
		loginform.number_of_children_travelling.focus()
		ok=false
	}
	

	else if (loginform.details_of_services.value == "")
	{
		alert("Please Enter Details of Services Required.");
		loginform.details_of_services.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;
		}

