var _Tpg01Code='01'; var _Tpg01Lock='0'; window.onload=onLoad; function onLoad() { setFocus(); document.iForm._Btn01Load.click(); } function setFocus() { var Tpg01Focus=document.getElementById('MeFocus'); if (Tpg01Focus!=null) { Tpg01Focus.focus();} } function setEditor(Edt01Object,Edt01Content) { Edt01Object.document.designMode='On'; Edt01Object.document.open(); Edt01Object.document.write(''+Edt01Content+''); Edt01Object.document.close(); } function setValue(Fld01Name,Fld01Value) { document.iForm.elements[Fld01Name].value=Fld01Value; } // Use this function to go reset common value function doReset() { _Tpg01Lock='0'; document.iForm._Mtd01Code.value=''; document.iForm._Mtd01Call.value='0'; document.iForm.target="_self"; } function goPage(Tpg01Code) { doReset(); if (Tpg01Code != '') { document.iForm._Tpg01Code.value=Tpg01Code; if (document.iForm._Fom01Code.value == document.iForm._Tpg01Code.value) { document.iForm._Fom01Post.value='1';} document.iForm.submit(); } return; } function doDone() { goPage(_Tpg01Code); return; } function doFail() { doReset(); return; } // Use this function to go to process page(iFrame) function doSubmit(Mtd01Code,Tpg01BeCode,Tpg01BaCode) { if (_Tpg01Lock == '0') { _Tpg01Code=Tpg01BaCode; _Tpg01Lock='1'; // Prevent user from clicking many times before the process complete document.iForm._Tpg01Code.value=Tpg01BeCode; document.iForm._Mtd01Code.value=Mtd01Code; document.iForm._Mtd01Call.value='1'; document.iForm.target='iFrame'; document.iForm.submit(); return; } return; }