//used in conjunction with genForm.js
var validationSet = {
		'gen': {
			'genError': "There is a problem with some of the details you've entered.<br/>Please double-check the information you've provided and re-enter it correctly"
		},
		'comment_query': {
			'emptyError': 'Please enter a comment query'
		},
		'first_name': {
			'emptyError': 'Please enter your first name'
		},
		'last_name': {
			'emptyError': 'Please enter your last name'
		},
		'company_name': {
			'emptyError': 'Please enter your company name'
		},
		'email_address': {
			'emptyError': 'Please enter an e-mail address',
			'invalidError': 'Please enter a valid e-mail address'
		},
		'telephone_number': {
			'emptyError': 'Please enter an telephone number',
			'invalidError': 'Please enter a valid telephone number'
		}
	};

//sets up pass variable. Do not remove.
var pass;

function checkForm(myform){
	//sets pass variable to true. Do not remove.
	pass = true;
	
	//Call a function for each field
	notEmpty('comment_query');
	notEmpty('first_name');
	notEmpty('last_name');
	notEmpty('company_name');
	notEmpty('email_address');
	notEmpty('telephone_number');
	
	if(!pass){
		failed();
		return false
	}
}
