// HyperBase Parser, Written by Khashayar. var ct = (Eve && Eve.Container )|| ''; var Eve = { Container : ct ,code : 0 ,msg : '' ,direct : 1 ,prototype : '/hyperoffice2nd/Hyperbase/javascript/prototype.js' ,parser : '/hyperoffice2nd/Hyperbase/javascript/Parser/PublicParser.js' ,datepicker : '/hyperoffice2nd/Hyperbase/javascript/DatePicker/calendar.js' ,formId : 713 ,formPrefix : 'hbjform_' ,url : 'https://ws1.hyperoffice.com/interact/hbrform.cfm' ,p : '' } var win_call = window.onload || function(){}; window.onload = function(){ Eve.iNode = document.getElementById('hbjform_'+Eve.formId).parentNode || document.body; var afterAfterFunc = function(){ try{ if ( Root != undefined ){ Root.loadForm( Eve.formId ); // Call the user function win_call(); return; } setTimeout( afterAfterFunc, 100 ); }catch(e){ setTimeout( afterAfterFunc, 100 ); } } var afterFunc = function(){ try{ if( lcs != undefined ){ LoadCalender(); var script = document.createElement("script"); script.setAttribute("src", Eve.parser); script.setAttribute("type", "text/javascript"); Eve.iNode.appendChild(script); afterAfterFunc(); return; } setTimeout( afterFunc, 1000 ); }catch(e){ setTimeout( afterFunc, 1000 ); } } var func = function(){ try{ if ( Prototype != undefined ) { // Load the script and boom... var sCal = document.createElement("script"); sCal.setAttribute("src", Eve.datepicker); sCal.setAttribute("type", "text/javascript"); Eve.iNode.appendChild(sCal); afterFunc(); // Call the user function return; } setTimeout( func, 100 ); }catch(e){ setTimeout( func, 100 ); } } var script = document.createElement("script"); script.setAttribute("src", Eve.prototype); script.setAttribute("type", "text/javascript"); Eve.iNode.appendChild(script); func(); }