var myform = document.getElementById('myform'); for (i=0;i