function validateForm(thisForm) {
	aInputs		= thisForm.elements;
	
	for (i=0; i<aInputs.length; i++) {
		var result = 0;
		var test = -1;
		var lengthOK = false;
		var thisInput = aInputs.item(i);
		if (thisInput.value.length > 0) {lengthOK = true;}

		if (thisInput.type != 'text') {
			continue;
		}
		else if (thisInput.name.toLowerCase().indexOf('name') > -1) {
			pattern = /[ a-z.,-]+/i;
			test = pattern.exec(thisInput.value);
		}
		else if (thisInput.name.toLowerCase().indexOf('addr') > -1) {
			pattern = /[ a-z0-9.,-]+/i;
			test = pattern.exec(thisInput.value);
			lengthOK = true;
		}
		else if (thisInput.name.toLowerCase().indexOf('city') > -1) {
			pattern = /[ a-z\-]+/i;
			test = pattern.exec(thisInput.value);
			lengthOK = true;
		}
		else if (thisInput.name.toLowerCase().indexOf('state') > -1) {
			pattern = /[a-z]{2}/i;
			test = pattern.exec(thisInput.value);
			lengthOK = true;
		}
		else if (thisInput.name.toLowerCase().indexOf('zip') > -1) {
			pattern = /[0-9\-]+/i;
			test = pattern.exec(thisInput.value);
			lengthOK = true;
		}
		else if (thisInput.name.toLowerCase().indexOf('phone') > -1) {
			pattern = /[ 0-9.\(\)\-]+/i;
			test = pattern.exec(thisInput.value);
			lengthOK = true;
		}
		else if (thisInput.name.toLowerCase().indexOf('email') > -1) {
			pattern = /[a-z0-9.-_]+@[a-z0-9.-_]+\.(com|net|edu|org){1}/i;
			test = pattern.exec(thisInput.value);
		}
		else {
			pattern = /[ a-z0-9.,-]+/i;
			test = pattern.exec(thisInput.value);
		}
		if (test == null) {test = new Array; test[0] = '';};
		//alert(thisInput.name+' =>'+thisInput.value+' => '+test[0]);
		
		if (test[0] != thisInput.value || lengthOK == false) {
			alert('There appears to be a problem with \nthe information you entered.  Please check \nyour information and try again.'); 
			thisInput.focus();
			return false;
		}
	}
	return true;
}