function submitForm(){	var errorMessage = '';	var inputBoxIds = ['email','phone','zip'];	for (var count in inputBoxIds){		if(count < 4){			var objId = document.getElementById(inputBoxIds[count]).id;			if(!checkValid(objId, validation[objId][0], validation[objId][1],true)){				errorMessage += inputBoxIds[count].charAt(0).toUpperCase() + inputBoxIds[count].slice(1) + ': ' + validation[objId][1] + '\\n';			}		}	}	if(document.getElementById('email').value != document.getElementById('confirm-email').value){		errorMessage = 'Your emails do not match.\\n';	}	if(errorMessage.length > 2){		errorMessage += '\\nPlease correct and resubmit the quote request.';		alert(errorMessage);		document.getElementById('submitButton').disabled = false;		document.getElementById('confirm-email').focus();		return false;	}	else{		document.getElementById('submitButton').disabled = true;		document.getElementById('submitButton').value = 'Working...';		submitQueryToServer('quoteForm','quote-form-submission.php');	}}var validation = new Array;validation['firstName'] = new Array(/^([A-Za-z\. ']+)$/,'Enter first name');validation['lastName'] = new Array(/^([A-Za-z\. ']+)$/,'Enter last name');validation['address'] = new Array(/^([A-Za-z0-9-' \.]{3,})$/,'Enter your address');			validation['city'] = new Array(/^([A-Za-z0-9-' \.]+)$/,'Enter your city');		validation['state'] = new Array(/^([A-Za-z0-9-' \.]+)$/,'Enter your state');validation['zip'] = new Array(/(^([0-9]{5})$)|(^[ABCEGHJKLMNPRSTVXYabceghjklmnprstvxy]{1}\d{1}[A-Za-z]{1} *\d{1}[A-Za-z]{1}\d{1}$)/,'Enter a valid zip code');			validation['phone'] = new Array(/^\((\d{3})\)( |)(\d{3})-(\d{4})$/,'Format: (000) 000-0000');validation['work-phone'] = new Array(/^\((\d{3})\)( |)(\d{3})-(\d{4})$/,'Format: (000) 000-0000');validation['email'] = new Array(/^.*@.*\..*$/,'Enter a valid email address');validation['confirm-email'] = new Array(/^.*@.*\..*$/,'Enter a valid email address');
