/* This script is used to limit the character input. We only need this for the Mentee and Mentor registration forms */ 
function testmaxchar() { 
 if(document.regform.about.value.length > 200 || document.regform.explanation.value.length > 200 )
	// one or both text areas are too long
	{
		var themessage = ""; 
		if(document.regform.about.value.length > 200) 
		{
		  themessage = themessage + "\nYou have submitted over the maximum of 200 characters in the About text area:\n "; 
		  themessage = themessage + "- Share something about yourself...\n";
		} 
		if(document.regform.explanation.value.length > 200) 
		{
		  themessage = themessage + "\nYou have submitted over the maximum of 200 characters in the Explanation text area:\n "; 
		  themessage = themessage + "- Share why you'de like to be...";
		} 
		alert(themessage);
		return false;
		
	} else {
		// We can submit
		//alert("about to submit");
		//document.regform.submit();
                return true;
        }
}
