function checkLength(that, max){
	if(that.value.length > max)
	that.value = that.value.substr(0,max);
}
