<!-- // Hide
function formvalidation(theform) {
	if (theform.comments.value == "") {
	    alert('Please fill in your contact information, questions or comments');
	    theform.comments.focus();
	    return false;
	}
}


function validateTxt (sTextValue, iLength, sFieldName) 
{
	var iReturn = false;        
	 
	if (sTextValue.length > iLength)		
	{
		var sMsgText = new String()

		sMsgText	= "The length of \'" + sFieldName + "\' should be no greater than " + iLength + " characters.\n\n"
					+ "The length of \'" + sFieldName + "\' is " + sTextValue.length + " characters. \n"
					+ "Please reduce \'" + sFieldName + "\' by " + + (sTextValue.length - iLength) + " characters.";
		
		alert(sMsgText);    

		iReturn = false; 
	}
	else
	{
		iReturn = true;
	}
	
	return (iReturn);
}



function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}			
// End Hide -->

