
  function letteronly (input) {
            var allowed = /([^A-Za-z\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff\s\'\"\-\_]*)$/g;
            input.value=input.value.replace(allowed,"");
            
             
};
 
//document.getElementById("compt").addEventListener("keypress", function (evt) {
 //   if (evt.which < 48 || evt.which > 57)
   //  {
      //  evt.preventDefault();
     // alert("hello");
     //}
 //});