<!--

function CheckForm () {



	//Intialise variables

	var errorMsg = "";

	var errorMsgLong = "";



	//Check for a first name

	if (document.frm_contact_us.txt_firstname.value == ""){

		errorMsg += "\nFirst Name \t\t- Enter your First Name";

	}

	

	//Check for a last name

	if (document.frm_contact_us.txt_lastname.value == ""){

		errorMsg += "\nLast Name \t\t- Enter your lastname Name";

	}


	if (document.frm_contact_us.txt_telephonenumber.value == ""){

		errorMsg += "\nPhone Number \t- Enter your Telephone Number";

	}



	if (document.frm_contact_us.txt_emailaddress.value.length >=0 && (document.frm_contact_us.txt_emailaddress.value.indexOf("@",0) == -1||document.frm_contact_us.txt_emailaddress.value.indexOf(".",0) == -1)) { 

		errorMsg +="\nE-mail \t\t\t- Enter your valid e-mail address";

	}


	if (document.frm_contact_us.txt_country.value == ""){

		errorMsg += "\nCountry \t\t\t- Enter your Country";

	}

	if (document.frm_contact_us.txt_gs.value == ""){

		errorMsg += "\nNumber of Guest \t- Enter Number of Guest";

	}

	if (document.frm_contact_us.txt_ng.value == ""){

		errorMsg += "\nNumber of Night \t- Enter Number of Night";

	}
	
	if (document.frm_contact_us.txt_nr.value == ""){

		errorMsg += "\nNumber of Room - Enter Number of Room";

	}
	
	if (document.frm_contact_us.txt_ad.value == ""){

		errorMsg += "\nArrival Date \t\t- Enter Arrival Date";

	}
	
	if (document.frm_contact_us.txt_dd.value == ""){

		errorMsg += "\nDeparture Date \t- Enter Departure Date";

	}
	
//	if (document.frm_contact_us.roomtype.value == ""){

//		errorMsg += "\nRoom Type \t\t- Choose Room Type";

//	} 



	//If there is aproblem with the form then display an error

	if ((errorMsg != "") || (errorMsgLong != "")){

		msg = "___________________________________________________________________\n\n";

		msg += "Please correct the problem(s) and re-submit the form.\n";

		msg += "___________________________________________________________________\n\n";

		msg += "The following field(s) need to be corrected: \n";

		

		errorMsg += alert(msg + errorMsg + "\n" + errorMsgLong);

		return false;

	}

	return true;

}
