document.getElementById('form1').getElementsByName("page")[0].value = id document.getElementById('form1').elements["page"].value = id