function limitString(limitField) {
	var allowedStringLength = 100;
	if (limitField.value.length > allowedStringLength) 
		{
		limitField.value = limitField.value.substring(0, allowedStringLength);
		} 
}


	function validateAddress(eaddress)
	{
	var emailstring = eaddress;
	var ampPosition = emailstring.indexOf("@");
	var afterAmp = emailstring.substring((ampPosition + 1), emailstring.length);

	// find a . in the part of the string after the ampersand only
	var dotIndex = afterAmp.indexOf(".");

	// determine dot position in entire string (not just after amp portion)
	dotIndex = dotIndex + ampPosition + 1;

	// afterAmp will be portion of string from ampersand to dot
	afterAmp = emailstring.substring((ampPosition + 1), dotIndex);

	// afterDot will be portion of string from dot to end of string
	var afterDot = emailstring.substring((dotIndex + 1), emailstring.length);
	var beforeAmp = emailstring.substring(0,(ampPosition));

	//allow subdomains and dots in the address
	var email_regular_expressions = /^\w(?:\w|-|\.(?!\.|@))*@\w(?:\w|-|\.(?!\.))*\.\w{2,3}/

	// -1 = "not found"
	if ((emailstring.indexOf("@") != "-1") && (emailstring.length > 5) && (afterAmp.length > 0) &&
		(beforeAmp.length > 1) && (afterDot.length > 1) && 	(email_regular_expressions.test(emailstring)) ) {
		  return true;
		}
	else {
		alert("Invalid Email Address.");
		//email.focus();
		//document.contactForm.email.value = eaddress;
		return false;
		}
	}