function confirmSubmit()
{
	var element = document.forms[0];
	var form_errors = new Array();
	
	if (element.Name.value == "")
	{
		form_errors[form_errors.length] = "Name";
	}
	if (element.Tel.value == "")
	{
		form_errors[form_errors.length] = "Contact Number";
	}
	if (element.Email.value == "")
	{
		form_errors[form_errors.length] = "Email Address";
	}
	

	if (form_errors.length > 0)
	{
		var error_list = "Please fill in the following fields:\n"
	
		for (var k=0; k<form_errors.length; k++)
		{
			error_list+= "- " + form_errors[k] + "\n";
		}

		alert(error_list);
		return false;
	}
	else if (element.Email.value.indexOf("@") == -1)
	{
		alert("Please enter a valid e-mail address.");
		return false;
	}
	else
	{
		var selections = "Are you sure you want to make the following enquiry?\n"
		selections+= "Name: " + element.Name.value + "\n";
		selections+= "Tel: " + element.Tel.value + "\n";
		selections+= "Email: " + element.Email.value + "\n";
		selections+= "Address: " + element.Address.value + "\n";
		selections+= "Postcode: " + element.PostCode.value + "\n";
		selections+= "How did you hear about us: " + element.Hearaboutus.value + "\n";
		selections+= "Bedrooms: " + element.Bedrooms.selectedIndex + "\n";
		selections+= "Garage: " + element.Garage.selectedIndex + "\n";
		selections+= "Central Heating: " + element.Heating.selectedIndex + "\n";
		selections+= "Double Glazing: " + element.Doublegalzing.selectedIndex + "\n";
		selections+= "Off Street Parking: " + element.offstreetparking.selectedIndex + "\n";
		selections+= "Type of Property: " + element.Typeofproperty.selectedIndex + "\n";
		selections+= "Tenure: " + element.Tenure.selectedIndex + "\n";
		selections+= "Property on the Market: " + element.Yourpropertyforsale.value + "\n";
		selections+= "If yes, who with: " + element.Ifyeswhowith.value + "\n";
		selections+= "Owned for more than 3 years: " + element.Ownedthreeyears.value + "\n";
		selections+= "Reason you are selling: " + element.whysell.value + "\n";

		var agree = confirm(selections);

		if (agree)
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}