function tourOperatorRegistration()
{
// Check TourOperator name field
	var checktoname=Trim(document.tourOperatorDetails.operator_name.value);
	document.tourOperatorDetails.operator_name.value=checktoname;
	
	if(document.tourOperatorDetails.operator_name.value	== "")
	{
		alert("Please Provide Tour Operator Name");
		document.tourOperatorDetails.operator_name.focus();
		return	false;
	}
	
// Check for States field
	if (document.tourOperatorDetails.state_id.selectedIndex == 0)
	{
		alert("Please select your state.");
		document.tourOperatorDetails.state_id.focus();
		return(false);
	}
	if(document.tourOperatorDetails.location.value	== "")
	{
		alert("Please Provide Tour Operator Address");
		document.tourOperatorDetails.location.focus();
		return	false;
	}
	
	
	// Check for Mobile
	var y = document.tourOperatorDetails.mobile.value;       
	if(isNaN(y)||y.indexOf(" ")!=-1)
    {
    	alert("Enter Mobile no in numeric value");
		document.tourOperatorDetails.mobile.value="";
		document.tourOperatorDetails.mobile.focus();
        return false;
    }
    if (y.length>10 || y.length <= 9)
    {
        alert("Enter Mobile no in 10 digits.");
		document.tourOperatorDetails.mobile.focus();
        return false;
    }
    
	
// Check for Telephone
	var x = document.tourOperatorDetails.phone.value;
	if(isNaN(x)||x.indexOf(" ")!=-1)
    {
    	alert("Enter Phone no in numeric value");
		document.tourOperatorDetails.phone.value="";
		document.tourOperatorDetails.phone.focus();
        return false;
    }
	
// Check for Overview field
	if(document.tourOperatorDetails.description.value	== "")
	{
		alert("Please Provide a Brief Overview of Operator");
		document.tourOperatorDetails.description.focus();
		return	false;
	}	
			
	return	true;
}
