<!--
function CheckForm () {

	//Intialise variables
	var errorMsg = "";
	var errorMsgLong = "";

	//Check for a first name
	if (document.frmreservation.first_name.value == "" || document.frmreservation.first_name.value == "Your First Name"){
		errorMsg += "\n\tFirst Name \t- Enter your First Name";
	}
	
	//Check for a last name
	if (document.frmreservation.last_name.value == "" || document.frmreservation.last_name.value == "Your Last Name"){
		errorMsg += "\n\tLast Name \t- Enter your Last Name";
	}

	if (document.frmreservation.email_add.value.length >=0 && (document.frmreservation.email_add.value.indexOf("@",0) == -1||document.frmreservation.email_add.value.indexOf(".",0) == -1)) { 
		errorMsg +="\n\tE-mail \t\t- Enter your valid e-mail address";
	}

	if (document.frmreservation.txtphone.value == "" || document.frmreservation.txtphone.value == "Your Telephone Number"){
		errorMsg += "\n\tTelephone \t- Enter your Telephone number";
	}
	if (document.frmreservation.txtaddress.value == "" || document.frmreservation.txtaddress.value == "Your Address"){
		errorMsg += "\n\tAddress \t\t- Enter your address";
	}

	if (document.frmreservation.txtcity.value == "" || document.frmreservation.txtcity.value == "City/Town/Suburb"){
		errorMsg += "\n\tCity/Town/Suburb \t- Enter your city/town/suburb";
	}

	if (document.frmreservation.txtstate.value == "" || document.frmreservation.txtstate.value == "State/Province"){
		errorMsg += "\n\tState/Province \t- Enter your State/Province";
	}

	if (document.frmreservation.txtcountry.value == "" || document.frmreservation.txtcountry.value == "Country"){
		errorMsg += "\n\tCountry \t\t- Enter your Country";
	}

	if (document.frmreservation.txtnumberofpersons.value == "" || document.frmreservation.txtnumberofpersons.value == "Number of Person"){
		errorMsg += "\n\tNumber of persons \t- Enter your number of persons";
	}

	if (document.frmreservation.from_d.value == ""){
		errorMsg += "\n\tCheck In Date\t- Enter your Check In Date";
	}

	if (document.frmreservation.to_d.value == ""){
		errorMsg += "\n\tDeparture Date\t- Enter your Departure Date";
	}

	//If there is aproblem with the form then display an error
	if ((errorMsg != "") || (errorMsgLong != "")){
		msg = "___________________________________________________________________\n\n";
		msg += "Your Question(s) has/ve not been added because there are problem(s) with the form.\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;
}

-->