function checkForm() {
	var theForm = document.Comp;
	if (theForm.salutation.value.length < 1) {alert("Please enter your title");return false;}
	if (theForm.fname.value.length < 1) {alert("Please enter your first name");return false;}
	if (theForm.lname.value.length < 1) {alert("Please enter your last name");return false;}
	if (theForm.email.value.length < 1) {
		if (theForm.street.value.length < 1)   {alert("Please supply full address details OR an email address");return false;}
		if (theForm.suburb.value.length < 1)  {alert("Please supply full address details OR an email address");return false;}
		if (theForm.state.value.length < 1)    {alert("Please supply full address details OR an email address");return false;}
		if (theForm.postcode.value.length < 1) {alert("Please supply full address details OR an email address");return false;}
		theForm.responseseries.value = "";
		theForm.email.value = "NO_EMAIL";
		theForm.subcat.value = "No Email";
		theForm.cat.value="Mailing List"
	} else {
		if (theForm.email.value.indexOf('@') == -1 || theForm.email.value.indexOf('.') == -1) {alert("The email address you have enetered is invalid");return false;}
		theForm.responseseries.value = "Customers with Email";
		theForm.subcat.value = "All";
	}
	for (a=0;a<theForm.elements.length;a++) {
		if (theForm.elements[a].value) {
			theForm.elements[a].value = theForm.elements[a].value.replace(/'/g,'`')
		}
	}
	theForm.submit();
}

