function countChars(id,maxlength)
{
	if(document.getElementById(id).value.length>maxlength)
		document.getElementById(id).value = document.getElementById(id).value.substring(0,maxlength);

} 
