function validateForm(thisForm) {
	with(thisForm) {		
		if (company.value=="")
		{
			alert('Please enter your company name');
			company.focus();
			return false;
		}		
		
		if(fname.value=="") {
			alert('Please enter first name');
			fname.focus();
			return false;
		}
		
		if(lname.value=="") {
			alert('Please enter last name');
			lname.focus();	
			return false;
		}		
		
		if(phone.value=="") {
			alert('Please enter phone number');
			phone.focus();	
			return false;
		}		
		
		if(email.value=="") {
			alert('Please enter your email');
			email.focus();	
			return false;
		}
		
		if (email.value !="")
		{
			// check for invalid email
			if (!isEmailValid(email.value))
			{
				alert('Incorrect email format.\nPlease use myname@mydomain.com format')
				email.focus();
				return false;
			}			
		}
		
		if(business_type.value=="") {
			alert('Please enter business type');
			business_type.focus();	
			return false;
		}

		if (no_employees.value == "") {
		    alert('Please enter the number of employees in your business');
		    no_employees.focus();
		    return false;
		}

		if (no_employees.value != "") {
		    // Check for numbers only
		    if (!IsNumeric(no_employees.value)) {
		        alert('Please enter the number of employees you have as a number');
		        no_employees.focus();
		        return false;
		    }
		}
		
		if (no_locations.value == "") {
		    alert('Please enter the number of locations you have');
		    no_locations.focus();
		    return false;
		}

		if (no_locations.value != "") {
		    // Check for numbers only
		    if (!IsNumeric(no_locations.value)) {
		        alert('Please enter the number of locations you have as a number');
		        no_locations.focus();
		        return false;
		    }
		}
	
		if(demo_time.value=="") {
			alert('Please enter the preferred time for a demo');
			demo_time.focus();	
			return false;
		}			
		
		// at least one of those two radio buttons must be checked
		if( (use_software[0].checked == false) && (use_software[1].checked == false) ) 
		{
			alert('Please enter if you are currently using another software');
			use_software[0].focus();
			return false;
		}	
		
		// if they are using another software, make sure they provide the name
		if ((use_software[1].checked) && (software_name.value == "") )
		{
			alert('Please enter the name of the other software you are currently using');
			software_name.focus();
			return false;				
		}		
		
		if (other_input.value == "")
		{
			alert('Please tells us \'How did you hear about Harms or Millennium?\'');
			other_input.focus();
			return false;
		}		
	}	
	return true;
}