function submitonce(theform) { if (document.all||document.getElementById){ for (i=0;i