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