function checkForm() {
	
	//alert ("Hello!");
	var errors = "";
	
	if (document.trial.NAME.value=="") {

		errors += "\nPlease enter your Name";

	}

	if (document.trial.EMAIL.value=="") {

		errors += "\nYou must enter your Email Address so we can mail you your account details";
	}
	else {
		var emailAddress = document.trial.EMAIL.value;
		var isError = 1;
		for (i=0;i<emailAddress.length;i++) {
			letter = emailAddress.substring(i,i+1);
			if (letter == '@') {
				isError = 0;
				}
			}
		if (isError == 1) {
			errors += "\nYour email address appears to be invalid";
		}
	}
	var address1 = document.trial.ADDRESS1.value;
	var address2 = document.trial.ADDRESS2.value;
	var address3 = document.trial.ADDRESS3.value;
	
	if (address1.length < 6 && address2.length < 6 && address3.length < 6) {
		errors += "\nPlease enter your postal address";
	}
	
	var postcode = document.trial.POSTCODE.value;
	if (postcode.length < 4) {
		errors += "\nPlease enter a valid postal or ZIP code";
	}
	
	var tel = document.trial.TEL.value;
	if (tel.length < 8) {
		errors += "\nPlease enter your telephone number";
	}
	
	
	var comments = document.trial.COMMENTS.value;
	if (comments.length < 7) {
		errors += "\nWe would appreciate a brief overview of what you will be using your trial account for";
	}

	if (errors!="") 
	{
		alert(errors);
		//return false;
	}
	else
	{
		document.forms[0].submit();
		//return true;
	}
}


