codice:
function validate(e, id){

 var char = getKeyChar(e);

 if(char != "&")
  document.getElementById(id).value += char;
}