function ValidateFeedback() {
	if (trimAll(document.getElementById("tourCompany").value) == "") {
		alert("Please enter name of the tour company");
		document.getElementById("tourCompany").focus();
		return false;
	}
	if (trimAll(document.getElementById("tourDates").value) == "") {
		alert("Please enter tour dates");
		document.getElementById("tourDates").focus();
		return false;
	}
	if (trimAll(document.getElementById("Comments").value) == "") {
		alert("Please type your comments");
		document.getElementById("Comments").focus();
		return false;
	}
	return true;
}

function trimAll(sString){
	while (sString.substring(0,1) == ' ')
	{
	sString = sString.substring(1, sString.length);
	}
	while (sString.substring(sString.length-1, sString.length) == ' ')
	{
	sString = sString.substring(0,sString.length-1);
	}
	return sString;
}

function ValidateContact() {
	if (trimAll(document.getElementById("Group_name").value) == "") {
		alert("Please enter group name.");
		document.getElementById("Group_name").focus();
		return false;
	}
	if (trimAll(document.getElementById("Contact_name").value) == "") {
		alert("Please enter contact name");
		document.getElementById("Contact_name").focus();
		return false;
	}
	if (trimAll(document.getElementById("Contact_address").value) == "") {
		alert("Please enter contact address ");
		document.getElementById("Contact_address").focus();
		return false;
	}
	if (trimAll(document.getElementById("Contact_telephone_number").value) == "") {
		alert("Please enter contact telephone number ");
		document.getElementById("Contact_telephone_number").focus();
		return false;
	}
	if (trimAll(document.getElementById("Contact_email").value) == "") {
		alert("Please enter contact's email address");
		document.getElementById("Contact_email").focus();
		return false;
	}
	if (trimAll(document.getElementById("Number_of_passengers").value) == "") {
		alert("Please enter number of passengers ");
		document.getElementById("Number_of_passengers").focus();
		return false;
	}
	if (trimAll(document.getElementById("Coach_pick_up_date").value) == "") {
		alert("Please enter the coach pick up date ");
		document.getElementById("Coach_pick_up_date").focus();
		return false;
	}
	if (trimAll(document.getElementById("Pick_up_point").value) == "") {
		alert("Please enter pick up point");
		document.getElementById("Pick_up_point").focus();
		return false;
	}
	if (trimAll(document.getElementById("Coach_drop_off_date").value) == "") {
		alert("Please enter drop off date");
		document.getElementById("Coach_drop_off_date").focus();
		return false;
	}
	if (trimAll(document.getElementById("Drop_off_point").value) == "") {
		alert("Please enter drop off point ");
		document.getElementById("Drop_off_point").focus();
		return false;
	} 
	if (trimAll(document.getElementById("Outlined_intinerary").value) == "") {
		alert("Please outline the itinerary");
		document.getElementById("Outlined_intinerary").focus();
		return false;
	}
	return true;
}

