function validateContactUs(x) {
	if(x.Contact_Name.value == "") {
		alert("You must supply us with your Contact Name before submitting your enquiry!");
		return false;
	}
	if(x.Contact_Email_Address.value == "") {
		alert("You must supply us with your Contact Email Address before submitting your enquiry!");
		return false;
	}
	if(x.Contact_Name.value == "") {
		alert("You must supply us with your Contact Name before submitting your enquiry!");
		return false;
	}
	if(x.Phone.value == "") {
		alert("You must supply us with your Phone before submitting your enquiry!");
		return false;
	}
	if(x.Enquiry.value == "") {
		alert("You must supply us with your Enquiry before submitting your enquiry!");
		return false;
	}
	return true;
}


function validateCustomerOrder(x) {
	if(x.store.value == "") {
		alert("You must supply us with your store name before submitting your order!");
		return false;
	}
	if(x.suburb.value == "") {
		alert("You must supply us with your suburb before submitting your order!");
		return false;
	}
	if(x.name.value == "") {
		alert("You must supply us with your name before submitting your order!");
		return false;
	}
	if(x.email.value == "") {
		alert("You must supply us with your email before submitting your order!");
		return false;
	}
	if(x.phone.value == "") {
		alert("You must supply us with your phone number before submitting your order!");
		return false;
	}
	
	return true;
}

function validateCreditClaim(x) {
	if(x.store.value == "") {
		alert("You must supply us with your store name before submitting your claim!");
		return false;
	}
	if(x.suburb.value == "") {
		alert("You must supply us with your suburb before submitting your claim!");
		return false;
	}
	if(x.name.value == "") {
		alert("You must supply us with your name before submitting your claim!");
		return false;
	}
	if(x.email.value == "") {
		alert("You must supply us with your email before submitting your order!");
		return false;
	}
	if(x.phone.value == "") {
		alert("You must supply us with your phone number before submitting your claim!");
		return false;
	}
	if(x.invoice.value == "") {
		alert("You must supply us with your invoice number before submitting your claim!");
		return false;
	}
		if(x.reasons.value == "") {
		alert("You must supply us with your reasons for credit before submitting your claim!");
		return false;
	}
	
	return true;
}



function validateCreditApplication(x) {
	if(x.trading.value == "") {
		alert("You must supply us with your trading name before submitting your application!");
		return false;
	}
	if(x.address.value == "") {
		alert("You must supply us with your address before submitting your application!");
		return false;
	}
	if(x.business.value == "") {
		alert("You must supply us with your type of business before submitting your application!");
		return false;
	}
	if(x.phone.value == "") {
		alert("You must supply us with your phone number before submitting your application!");
		return false;
	}
	if(x.postcode.value == "") {
		alert("You must supply us with your postcode before submitting your application!");
		return false;
	}
	if(x.email.value == "") {
		alert("You must supply us with your email address before submitting your application!");
		return false;
	}
	if(x.partner1_name.value == "") {
		alert("You must supply us with at least 1 partner or director name before submitting your application!");
		return false;
	}
	if(x.partner1_address.value == "") {
		alert("You must supply us with at least 1 partner or director address before submitting your application!");
		return false;
	}
	if(x.partner1_phone.value == "") {
		alert("You must supply us with at least 1 partner or director phone number before submitting your application!");
		return false;
	}
	if(x.referee1_name.value == "") {
		alert("You must supply us with at least 1 referee name before submitting your application!");
		return false;
	}
	if(x.referee1_phone.value == "") {
		alert("You must supply us with at least 1 referee phone number before submitting your application!");
		return false;
	}
	if(!x.guarantee.checked) {
		alert("You have to agree to the Directors Deed Of Guarantee And Indemnity before submitting your application!");
		return false;
	}
	if(!x.terms.checked) {
		alert("You have to agree to the Terms of Trade before submitting your application!");
		return false;
	}
}

function validateMemberLogin(x) {
	if(x.user_username.value == "") {
		alert("You must supply us with your Username before you can login!");
		return false;
	}
	if(x.user_password.value == "") {
		alert("You must supply us with your Password before you can login!");
		return false;
	}
	return true;
}

function validateNewsletter(x) {
	if(x.email.value == "") {
		alert("You must supply us with your email address before you can signup!");
		return false;
	}
	return true;
}

