function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}
function help(helptext) {
	document.write("<a onclick='javascript:alert(\"" + helptext + "\")' notab><img class='help' src='sitegraphics/help12x13.gif' alt='" + helptext + "' title='" + helptext + "' border='0'></a>");
}

function checklength(textareafield,maxfield,maxfieldname,maxlength) {
	maxfield.value = textareafield.value.length;
	if (maxfield.value > maxlength) {
		document.getElementById(maxfieldname).style.color="#FF0000";
	}
}
