function checkRequestInfo(theform) {
	
	// splits name field in to first, last
	var new_name = theform.name.value;
	var thisName = new Array();
	thisName = new_name.split(' ');
	theform.first_name.value = thisName[0];
	theform.last_name.value = thisName[1];
	
	// flag user submit
	theform.boolUserSubmit.value = 1;
	
	theform.company.required = true;
	theform.company.requiredError = 'Your company name';

	theform.name.required = true;
	theform.name.requiredError = 'Your name.';
	
	theform.email.required = true;
	theform.email.requiredError = 'Your e-mail address.';	
	theform.email.pattern = 'email';
	theform.email.patternError = 'It appears the Email address you entered is not valid.';
	
	theform.state.disallowEmptyValue = true;
	theform.state.disallowEmptyValueError = 'Your state';
	
	theform.number_email.required = true;
	theform.number_email.requiredError = 'The approximate number of email users in your company.';
	theform.number_email.pattern = 'numeric';
	theform.number_email.patternError = 'The number of email users field cannot contain letters or symbols.';
	
	// splits name field in to first, last
	var new_name = theform.name.value;
	var thisName = new Array();
	thisName = new_name.split(' ');
	theform.first_name.value = thisName[0];
	theform.last_name.value = thisName[1];
	
	var errors = getFormErrors(theform);
	if (errors.length > 0) {
		var errorMessage = 'Ooops!  We’re sorry, our server was unable to understand the following:\n\n';
		for (var errorIndex = 0; errorIndex < errors.length; errorIndex++) {
			errorMessage += '* ' + errors[errorIndex] + '\n';
		}
		errorMessage += '\nPlease fill out this information again.';
		alert(errorMessage);
		theform.boolUserSubmit.value = 0;
		return false;
	}
	
	// disable all buttons to avoid multi-submit
	//disableButtons(theform);
	
	// no errors: return true
	return true;
}

function checkRequestInfoHome(theform) {

	// splits name field in to first, last
	var new_name = theform.name.value;
	var thisName = new Array();
	thisName = new_name.split(' ');
	theform.first_name.value = thisName[0];
	theform.last_name.value = thisName[1];
	
	// flag user submit
	theform.boolUserSubmit.value = 1;
	
	theform.company.required = true;
	theform.company.requiredError = 'Your company name';

	theform.name.required = true;
	theform.name.requiredError = 'Your name.';
	
	theform.email.required = true;
	theform.email.requiredError = 'Your e-mail address.';	
	theform.email.pattern = 'email';
	theform.email.patternError = 'It appears the Email address you entered is not valid.';
	
	var errors = getFormErrors(theform);
	if (errors.length > 0) {
		var errorMessage = 'Ooops!  We’re sorry, our server was unable to understand the following:\n\n';
		for (var errorIndex = 0; errorIndex < errors.length; errorIndex++) {
			errorMessage += '* ' + errors[errorIndex] + '\n';
		}
		errorMessage += '\nPlease fill out this information again.';
		alert(errorMessage);
		theform.boolUserSubmit.value = 0;
		return false;
	}
	
	// disable all buttons to avoid multi-submit
	//disableButtons(theform);
	
	// no errors: return true
	return true;
}

function checkRequestEmail(theform) {
	
	
	// flag user submit
	theform.boolUserSubmit.value = 1;
	
	
	theform.email.required = true;
	theform.email.requiredError = 'Your e-mail address.';	
	theform.email.pattern = 'email';
	theform.email.patternError = 'It appears the Email address you entered is not valid.';

	
	var errors = getFormErrors(theform);
	if (errors.length > 0) {
		var errorMessage = 'Ooops!  We’re sorry, our server was unable to understand the following:\n\n';
		for (var errorIndex = 0; errorIndex < errors.length; errorIndex++) {
			errorMessage += '* ' + errors[errorIndex] + '\n';
		}
		errorMessage += '\nPlease fill out this information again.';
		alert(errorMessage);
		theform.boolUserSubmit.value = 0;
		return false;
	}
	
	// disable all buttons to avoid multi-submit
	//disableButtons(theform);
	
	// no errors: return true
	return true;
}