<!-- //script hider
function form_validator(theForm)
{
var checkOK = "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
var checkStr = theForm.username.value;
var allValid = true;
for (i = 0;  i < checkStr.length;  i++)
{
ch = checkStr.charAt(i);
for (j = 0;  j < checkOK.length;  j++)
if (ch == checkOK.charAt(j))
break;
if (j == checkOK.length)
{
allValid = false;
break;
}
}
if (!allValid)
{
alert("You cannot have any spaces in your username. Please change and press submit");
theForm.username.focus();
return (false);
}
	 	if(theForm.firstname.value == "") {
		 alert("Please enter your firstname");
		 theForm.firstname.focus();
		 return(false);
	}

		if(theForm.lastname.value == "") {
		 alert("Please enter your lastname");
		 theForm.lastname.focus();
		 return(false);
	}

		if(theForm.emailaddress.value == "") {
		 alert("Please enter your email address");
		 theForm.emailaddress.focus();
		 return(false);
	}	

		if(theForm.email2.value != theForm.emailaddress.value) {
		alert("Email address does not match");
		theForm.emailaddress.focus();
		return(false);

	}

		if(theForm.username.value == "") {
		 alert("Please enter your a username");
		 theForm.username.focus();
		 return(false);
	}
		if (theForm.terms.checked == false ) {
        alert ( "You must accept the terms and conditions" );
        theForm.terms.focus();
		return(false);

    } 

	return (true);
}
// end script hiding -->
