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";