/*
 * Common functions for form processing
 * Charles Peterson
 * 2009.01.30
 * 
 */
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); }

function validateEmail(email) {
	var emailcheck =/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	return emailcheck.test(email);
}

