function hotelRegValidation()
{
// Check Hotelname field
	var checkhname=Trim(document.hotelDetails.hotel_name.value);
	document.hotelDetails.hotel_name.value=checkhname;
	
	if(document.hotelDetails.hotel_name.value	== "")
	{
		alert("Please Provide Hotel Name");
		document.hotelDetails.hotel_name.focus();		
		return	false;
	}
	
// Check for State Field
	if (document.hotelDetails.state_id.selectedIndex == 0)
	{
		alert("Please select your state.");
		document.hotelDetails.state_id.focus();
		return(false);
	}
	if(document.hotelDetails.location.value	== "")
	{
		alert("Please Provide Hotel Address");
		document.hotelDetails.location.focus();		
		return	false;
	}
	// Check for Mobile
	var y = document.hotelDetails.mobile.value;       
	if(isNaN(y)||y.indexOf(" ")!=-1)
    {
    	alert("Enter Mobile no in numeric value");
		document.hotelDetails.mobile.value="";
		document.hotelDetails.mobile.focus();
        return false;
    }
    if (y.length>10 || y.length <= 9)
    {
        alert("Enter Mobile no in 10 digits.");
		document.hotelDetails.mobile.focus();
        return false;
    }
    
	
// Check for Telephone
	var x = document.hotelDetails.phone.value;
	if(isNaN(x)||x.indexOf(" ")!=-1)
    {
    	alert("Enter Phone no in numeric value");
		document.hotelDetails.phone.value="";
		document.hotelDetails.phone.focus();
        return false;
    }
	
// Check for hotel description/Overview
	if(document.hotelDetails.description.value	== "")
	{
		alert("Please Provide a Brief Overview of Hotel");
		document.hotelDetails.description.focus();
		return	false;
	}		

//Check for Accomodation
	if(document.hotelDetails.accomodation.value	== "")
	{
		alert("Please Provide a Accomodation Details");
		document.hotelDetails.accomodation.focus();
		return	false;
	}
	
	return	true;
}
