function checkCheckoutForm(){		
	
	if (trim(document.checkoutForm.name.value).length < 2){
		alert("Please enter your full name.");
		document.checkoutForm.name.value = trim(document.checkoutForm.name.value);
		document.checkoutForm.name.focus();
		return false;
	}
	/*
	if (trim(document.checkoutForm.companyName.value).length < 2){
		alert("Please enter your company name.");
		document.checkoutForm.companyName.value = trim(document.checkoutForm.companyName.value);
		document.checkoutForm.companyName.focus();
		return false;
	}
	*/
	if (trim(document.checkoutForm.address.value).length < 2){
		alert("Please enter your postal address.");
		document.checkoutForm.address.value = trim(document.checkoutForm.address.value);
		document.checkoutForm.address.focus();
		return false;
	}
	
	if (trim(document.checkoutForm.postcode.value).length < 2){
		alert("Please enter your zip or potal code.");
		document.checkoutForm.postcode.value = trim(document.checkoutForm.postcode.value);
		document.checkoutForm.postcode.focus();
		return false;
	}
	
	if (trim(document.checkoutForm.telephone.value).length < 2){
		alert("Please enter your contact telephone number.");
		document.checkoutForm.telephone.value = trim(document.checkoutForm.telephone.value);
		document.checkoutForm.telephone.focus();
		return false;
	}
	
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(trim(document.checkoutForm.email.value)))){
		alert("Please enter a valid email address.\n");
		document.checkoutForm.email.value = trim(document.checkoutForm.email.value);
		document.checkoutForm.email.focus();
		return false;
	}
	
	if (!document.checkoutForm.terms.checked){
		alert("Please verify that you have read our terms and conditions before you continue.");
		document.checkoutForm.terms.focus();
		return false;
	}
	
	return true;
}

function checkCheckoutForm2(){		
	
	if (trim(document.checkoutForm.name.value).length < 2){
		alert("Please enter your full name.");
		document.checkoutForm.name.value = trim(document.checkoutForm.name.value);
		document.checkoutForm.name.focus();
		return false;
	}
	
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(trim(document.checkoutForm.email.value)))){
		alert("Please enter a valid email address.\n");
		document.checkoutForm.email.value = trim(document.checkoutForm.email.value);
		document.checkoutForm.email.focus();
		return false;
	}
	
	if (!document.checkoutForm.terms.checked){
		alert("Please verify that you have read our terms and conditions before you continue.");
		document.checkoutForm.terms.focus();
		return false;
	}
	
	return true;
}

function checkCheckoutForm3(){		
	
	if (trim(document.checkoutForm.first_name.value).length < 2){
		alert("Please enter your full name.");
		document.checkoutForm.first_name.value = trim(document.checkoutForm.first_name.value);
		document.checkoutForm.first_name.focus();
		return false;
	}

	if (trim(document.checkoutForm.address1.value).length < 2){
		alert("Please enter your postal address.");
		document.checkoutForm.address1.value = trim(document.checkoutForm.address1.value);
		document.checkoutForm.address1.focus();
		return false;
	}
	
	if (trim(document.checkoutForm.zip.value).length < 2){
		alert("Please enter your zip or potal code.");
		document.checkoutForm.zip.value = trim(document.checkoutForm.zip.value);
		document.checkoutForm.zip.focus();
		return false;
	}
	
	if (trim(document.checkoutForm.tel.value).length < 2){
		alert("Please enter your contact telephone number.");
		document.checkoutForm.tel.value = trim(document.checkoutForm.tel.value);
		document.checkoutForm.tel.focus();
		return false;
	}
	
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(trim(document.checkoutForm.email.value)))){
		alert("Please enter a valid email address.\n");
		document.checkoutForm.email.value = trim(document.checkoutForm.email.value);
		document.checkoutForm.email.focus();
		return false;
	}
	
	if (!document.checkoutForm.terms.checked){
		alert("Please verify that you have read our terms and conditions before you continue.");
		document.checkoutForm.terms.focus();
		return false;
	}
	
	return true;
}