function validateGeneralEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].email.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm'].comments.value == '') {
		errors += " - Please enter an Enquiry \n";
	}
	
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please enter the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateGeneralEnquiry2(){
	errors = "";
	if (document.forms['fContactForm2'].name2.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm2'].email2.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm2'].comments2.value == '') {
		errors += " - Please enter an Enquiry \n";
	}
	if (document.forms['fContactForm2'].code2.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateBillingEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].agencyID.value == '') {
		errors += " - Please enter an Agency ID \n";
	}
	if (document.forms['fContactForm'].email.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm'].company.value == '') {
		errors += " - Please enter a Company \n";
	}
	if (document.forms['fContactForm'].comments.value == '') {
		errors += " - Please enter an Enquiry \n";
	}
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateSubscriptionEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].email.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm'].company.value == '') {
		errors += " - Please enter a Company \n";
	}
	if (document.forms['fContactForm'].comments.value == '') {
		errors += " - Please enter an Enquiry \n";
	}
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateMarketAppraisalEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].email.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm'].propertyType.value == 0) {
		errors += " - Please select a Property Type \n";
	}
	if (document.forms['fContactForm'].address.value == '') {
		errors += " - Please enter an Address \n";
	}
	if (document.forms['fContactForm'].suburb.value == '') {
		errors += " - Please enter a Suburb \n";
	}
	if (document.forms['fContactForm'].postCode.value == '') {
		errors += " - Please enter a Postcode \n";
	}
	if (document.forms['fContactForm'].state.value == 0) {
		errors += " - Please select a State \n";
	}
	if (document.forms['fContactForm'].bedrooms.value == 0) {
		errors += " - Please select Bedrooms \n";
	}
	if (document.forms['fContactForm'].bathrooms.value == 0) {
		errors += " - Please select Bathrooms \n";
	}
	if (document.forms['fContactForm'].landArea.value == '') {
		errors += " - Please enter a Land Area \n";
	}
	if (document.forms['fContactForm'].buildingArea.value == '') {
		errors += " - Please enter a Building Area \n";
	}
	if (document.forms['fContactForm'].propertyEstimate.value == '') {
		errors += " - Please enter a Property Estimate \n";
	}
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateWebDesignEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].email.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm'].company.value == '') {
		errors += " - Please enter a Company \n";
	}
	if (document.forms['fContactForm'].comments.value == '') {
		errors += " - Please enter Requirements \n";
	}
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateTechnicalEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].email.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm'].comments.value == '') {
		errors += " - Please enter a Problem \n";
	}
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateAdvertisingEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].email.value == '') {
		errors += " - Please enter an Email \n";
	}
	if (document.forms['fContactForm'].comments.value == '') {
		errors += " - Please enter an Enquiry \n";
	}
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateFeedbackEnquiry(){
	errors = "";
	if (document.forms['fContactForm'].name.value == '') {
		errors += " - Please enter a Name \n";
	}
	if (document.forms['fContactForm'].comments.value == '') {
		errors += " - Please enter Feedback \n";
	}
	if (document.forms['fContactForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}

function validateEmailAFriend(){
	errors = "";

	if (document.forms['fEmailAFriendForm'].emailTo.value == '') {
		errors += " - Please enter a Friend's Email \n";
	}
	if (document.forms['fEmailAFriendForm'].yourName.value == '') {
		errors += " - Please enter Your Name \n";
	}
	if (document.forms['fEmailAFriendForm'].yourEmail.value == '') {
		errors += " - Please enter Your Email \n";
	}
	if (document.forms['fEmailAFriendForm'].code.value == '') {
		errors += " - Please the security code \n";
	}
	if (errors)
	{
		alert(errors);
		return false;
	}
	return true;
}
