g_grhenter ========== function window_onload() { var frm = document.grhenter; frm.grhcomauto.value = frm.grhcomsno.options[frm.grhcomsno.selectedIndex].text if (''=='y') document.grhenter.grhddt.focus(); else document.grhenter.grhcomauto.focus(); }