<!--	
	function check_form_reg(tmpform) {	
	
	if (tmpform.firstname.value == "") {
		alert("Please enter your first name");
		tmpform.firstname.focus();
		return false;
	}
	if (tmpform.surname.value == "") {
		alert("Please enter your surname");
		tmpform.surname.focus();
		return false;
	}
	if (tmpform.address1.value == "") {
		alert("Please enter your first line of your address");
		tmpform.address1.focus();
		return false;
	}
	if (tmpform.city.value == "") {
		alert("Please enter your city/town");
		tmpform.city.focus();
		return false;
	}	
	if (tmpform.country.value == "") {
		alert("Please enter your country");
		tmpform.country.focus();
		return false;
	}
	
	if (tmpform.postcode.value == "") {
		alert("Please enter your postcode");
		tmpform.postcode.focus();
		return false;
	}
	
	if (tmpform.email.value == "") {
		alert("Please enter your email address");
		tmpform.email.focus();
		return false;
	}
	if (tmpform.email.value.indexOf('@',0)==-1 || tmpform.email.value.indexOf('.',0)==-1) {
		alert(tmpform.email.value + ", is not a valid email address.");
		tmpform.email.focus();
		return false;
	}	
    
	var e1 = tmpform.email.value;
	var e2 = tmpform.confirmemail.value;	
    
	if (e1 != e2) {
		alert ("You did not enter the same email twice. Please re-enter.");
		return false;
	}	

	var invalid = " "; 
	var minLength = 5; 
	var pw1 = tmpform.password.value;
	var pw2 = tmpform.confirmpassword.value;
    
   	if (pw1 != '') {
    	if (pw1 == '' || pw2 == '') {
    		alert('Please enter your password twice.');
    		return false;
    	}
    	
    	if (pw1.length < minLength) {
    		alert('Your password must be at least ' + minLength + ' characters long. Try again.');
    		return false;
    	}
    	
    	
    	
    	if (pw1.indexOf(invalid) > -1) {
    		alert("Sorry, spaces are not allowed.");
    		return false;
    	} 
    	if (pw1 != pw2) {
    		alert ("You did not enter the same new password twice. Please re-enter the password.");
    		return false;
    	} 
    }
	
	
	
}



function check_form_ship(tmpform) {		

	
	if (tmpform.shipname.value == "") {
		alert("Please enter your delivery first name");
		tmpform.shipname.focus();
		return false;
	}
	if (tmpform.shipsurname.value == "") {
		alert("Please enter your delivery surname");
		tmpform.shipsurname.focus();
		return false;
	}
	if (tmpform.shipaddress1.value == "") {
		alert("Please enter your delivery address 1");
		tmpform.shipaddress1.focus();
		return false;
	}
	if (tmpform.shipcity.value == "") {
		alert("Please enter your delivery city");
		tmpform.shipcity.focus();
		return false;
	}	
	if (tmpform.shippostcode.value == "") {
		alert("Please enter your delivery postcode");
		tmpform.shippostcode.focus();
		return false;
	}

	
}
			
	
	function singleSubmit(trgForm) {
   			 trgForm.submitbutton.disabled = true;
		}
		
		
	
//end hiding-->	