function regcheck()
{	
	if (document.regform.email1.value=="")
		{
			alert("Please check that you have entered your email address correctly.");
			document.regform.email1.focus=true
			return false
		}

	if (document.regform.pwd.value!=document.regform.pwd2.value)
		{
			alert("Please check that you have entered your password correctly! The second password is not the same as the first one!");
			document.regform.pwd.focus=true
			return false
		}
	if (document.regform.email1.value!=document.regform.email2.value)
		{
			alert("Please check that you have entered your email address correctly! The second email address is not the same as the first one!");
			document.regform.email1.focus=true
			return false
		}
	if (document.regform.usrname.value=="")
		{
			alert("Please enter your Waveney Wholesale Customer Reference.");
			document.regform.usrname.focus=true
			return false
		}
	if (document.regform.firstname.value=="")
		{
			alert("Please check that you have entered your First Name.");
			document.regform.firstname.focus=true
			return false
		}
	if (document.regform.surname.value=="")
		{
			alert("Please check that you have entered your Last Name.");
			document.regform.surname.focus=true
			return false
		}
	if (document.regform.addr1.value=="")
		{
			alert("Please check that you have entered the first line of your address.");
			document.regform.addr1.focus=true
			return false
		}
	if (document.regform.addr2.value=="")
		{
			alert("Please check that you have entered the second line of your address.");
			document.regform.addr2.focus=true
			return false
		}
	if (document.regform.addr3.value=="")
		{
			alert("Please check that you have entered the third line of your address.");
			document.regform.addr3.focus=true
			return false
		}
	if (document.regform.tel.value=="")
		{
			alert("Please check that you have entered your telephone number.");
			document.regform.tel.focus=true
			return false
		}
		

return true
}