var sPath = "com.xxxxxx.is.ti.TimeMgmt."; document.frm_Timesheet.From.value = sFrom; document.frm_Timesheet.Source.value = sFrom; document.frm_Timesheet.Saveflg.value = sSave; document.frm_Timesheet.action= sPath + "TimesheetServlet"; #### $wm->field('From', 'btn_add8weeks'); $wm->field('Source', 'btn_add8weeks'); $wm->field('Saveflg', 'Y'); ####