function validateJoinForm(theForm) {
Ctrl = theForm.cEmailAddress;
if (theForm.cEmailAddress.value==""){
alert("Please enter your email address.");
theForm.cEmailAddress.focus();
return(false);
}
else if (Ctrl.value==" " || Ctrl.value.indexOf ('@',0) == -1)
{
alert("Please enter a valid email address.");
theForm.cEmailAddress.focus();
return(false);
}
else if (Ctrl.value==" " || Ctrl.value.indexOf ('.',0) == -1){
alert("Please enter a valid email address.");
theForm.cEmailAddress.focus();
return(false);
}
if (theForm.cPassword.value == "")
{	alert("Please enter a password.");
	theForm.cPassword.focus();
	return (false);	}
if (theForm.cPassword.value != theForm.cPasswordConfirm.value)
{	alert("whoops! Please re-confirm your password.");
	theForm.cPasswordConfirm.focus();
	return (false);	}

if (theForm.cFirstName.value==""){
alert("Please enter your first name.");
theForm.cFirstName.focus();
return(false);
}
if (theForm.cLastName.value==""){
alert("Please enter your surname.");
theForm.cLastName.focus();
return(false);
}
if (theForm.cAddress.value==""){
alert("Please enter your address.");
theForm.cAddress.focus();
return(false);
}
if (theForm.cSuburb.value==""){
alert("Please enter your suburb.");
theForm.cSuburb.focus();
return(false);
}
if (theForm.cPostcode.value==""){
alert("Please enter your postcode.");
theForm.cPostcode.focus();
return(false);
}

if (theForm.cState.value==""){
alert("Please enter your state.");
theForm.cState.focus();
return(false);
}
if (theForm.countryID.value==""){
alert("Please select your country.");
theForm.countryID.focus();
return(false);
}

return(true);
} 


