

<!-- Script to make sure the visitor has filled in the required fields in the registration form -->
<!-- Start hiding the JavaScript from old browsers
	function valButton(btn) {
    	var cnt = -1;
    	for (var i=btn.length-1; i > -1; i--) {
        	if (btn[i].checked) {cnt = i; i = -1;}
    	}
    	if (cnt > -1) return btn[cnt].value;
    	else return null;
	}


	function checkTrialRegistration(yourinfo){
		// Check for an empty string or null value in the first name
		if(yourinfo.firstname.value == "" ||
		yourinfo.firstname.value == null){
				alert("Please type in your first name.");
				return(false);
				}
		// Check for an empty string or null value in the last name
		if(yourinfo.lastname.value == "" ||
		yourinfo.lastname.value == null){
				alert("Please type in your last name.");
				return(false);
				}
		// Check for an empty string or null value in the company or school name
		if(yourinfo.companyorschool.value == "" ||
		yourinfo.companyorschool.value == null){
				alert("Please type in your company or school.");
				return(false);
				}
		// Check for an empty string or null value in the country
		if(yourinfo.country.value == "" ||
		yourinfo.country.value == null){
				alert("Please type in your country.");
				return(false);
				}
		// Check for an email address with an at sign and a period in it
		if(yourinfo.email.value.indexOf("@") == "-1" || 
		yourinfo.email.value.indexOf(".") == "-1" || 
		yourinfo.email.value == ""){
				alert("Please type in your email address.");
				return(false);
				}
		// Check for an empty string or null value in the telephone number
		if(yourinfo.telephone.value == "" ||
		yourinfo.telephone.value == null){
				alert("Please type in your telephone number.");
				return(false);
				}
		// The required fields in the registration form are filled in, so we're done.		
		else{
			return(true);
		}
	}
// Stop hiding the JavaScript from old browsers -->
<!-- End of script to make sure the visitor has filled in the required fields in the registration form -->


