
function validateForgottenPassword(x) {
	if(x.Email_Address.value == "") {
		alert("You must supply us with your Email Address to recieve your password!");
		return false;
	}
	return true;
}


function validateAccountReg(x) {
	if(x.name.value == "") {
		alert("You must supply us with a Contact Name before submitting your registration!");
		return false;
	}
	if(x.username.value == "") {
		alert("You must supply us with a Username before submitting your registration!");
		return false;
	}
	if(x.email.value == "") {
		alert("You must supply us with your Email Address before submitting your registration!");
		return false;
	}
	if(x.password.value == "") {
		alert("You must supply us with a Password before submitting your registration!");
		return false;
	}
	if(x.confirm_password.value == "") {
		alert("You must confirm your Password before submitting your registration!");
		return false;
	}
	if(x.confirm_password.value !=  x.password.value ) {
		alert("Your Password and Confirmation Password fields do not match!");
		return false;
	}
	return true;
}




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.Address.value == "") {
		alert("You must supply us with your Address 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 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 validateRegisterProduct(x) {
	if(x.Product_Type.value == "") {
		alert("You must supply us with type of product before submitting your registration!");
		return false;
	}
	if(x.State.value == "") {
		alert("You must supply us with your state before submitting your registration!");
		return false;
	}
	if(x.Postcode.value == "") {
		alert("You must supply us with your postcode before submitting your registration!");
		return false;
	}
	if(x.Purchased_From.value == "") {
		alert("You must supply us with where you purchased the product from before submitting your registration!");
		return false;
	}
	if(x.Purchased_For.value == "") {
		alert("You must supply us with Puchased For before submitting your registration!");
		return false;
	}
	if(x.Warranty_Period.value == "") {
		alert("You must supply us with your warranty period before submitting your registration!");
		return false;
	}
	if(x.Assemby_Warranty.value == "") {
		alert("You must supply us with an assembly warranty period before submitting your registration!");
		return false;
	}
	if(x.Make.value == "") {
		alert("You must supply us with a product make before submitting your registration!");
		return false;
	}
	if(x.Product_Name.value == "") {
		alert("You must supply us with who you puchased for before submitting your registration!");
		return false;
	}
	if(x.Serial_Number.value == "") {
		alert("You must supply us with a serial number before submitting your registration!");
		return false;
	}
	return true;
}



