function addListeners(formId){ var form=document.getElementById(formId); for (var i=0;i