if(!g_script){var g_script=new Array()}if(!g_AppPath){var g_AppPath="/"}function gebi(A){return document.getElementById(A)}function Enable(A){for(var B=0;B<A.length;B++){var C=gebi(A[B]);if(C){C.disabled=false
}}}function PutToFrame(E,C){if(window.name!=C){var A=self.document.location.pathname;A=A.replace(/(\/)/g,"%2f").replace(/(\\)/g,"%5c");var D="";if(self.document.location.search!=null){D=new String(self.document.location.search);
if(D.length>0){D="&"+D.substring(1,D.length)}}var B=E+((E.indexOf("?")==-1&&E.indexOf("&")==-1)?"?":"&")+"_file="+A+encodeURIComponent(self.document.location.search)+"&_frame="+C+D;top.location.replace(B)
}return }function PutToFrameServer(E,C){if(window.name!=C){var A=self.document.location.pathname;A=A.replace(/(\/)/g,"%2f").replace(/(\\)/g,"%5c");var D="";if(self.document.location.search!=null){D=new String(self.document.location.search);
if(D.length>0){D="&"+D.substring(1,D.length)}}var B=E+((E.indexOf("?")==-1&&E.indexOf("&")==-1)?"?":"&")+"goto="+A+encodeURIComponent(self.document.location.search)+"&_frame="+C+D;top.location.replace(B)
}return }function LoadFrame(){if(self.location.search==null){return }srch=new String(self.location.search);if(srch.length>0){srch=srch.substring(1,srch.length)}var a=srch.split("&");if(a.length<2){return 
}var file;var frame;var search="";var itm;itm=a[0].split("=");if(itm[0]=="_file"){file=itm[1].replace(/(%2f)/g,"/").replace(/(%5c)/g,"\\");frame=a[1].split("=")[1];var len=a.length;for(var i=2;i<len;i++){search=search+"&"+a[i]
}if(search.length>0){search="?"+search.substring(1,search.length)}}if(file&&frame){var s="top."+frame+".location.replace('"+file+search+"')";eval(s)}return }
function setDisplay2(b, id){setDisplay2Obj(b, gebi(id));}
function setDisplay2Obj(A,B){if(A==false){B.style.visibility="hidden";
B.style.display="none"}else{B.style.display="block";B.style.visibility="visible"}}function DsblOnClick(B,A){if(A==null){A=true}if(A&&typeof (Page_ClientValidate)=="function"){Page_ClientValidate();if(Page_IsValid==false){return false
}}B.disabled=true;return true}function ShowTab(C,A,D){if(A&&C.className=="vis"||!A&&C.className=="hid"){return }C.className=(A?"vis":"hid");if(D!=null&&typeof ValidatorEnable=="function"){for(var B=0;B<D.length;
B++){var F=gebi(D[B]);if(F!=null){ValidatorEnable(F,A)}}}var E=gebi("vs");if(E){E.style.display="none"}}function PrntFrm(B){var C=navigator.userAgent.toLowerCase();if(C.indexOf("opera")!=-1){var A=self.location.href+"&p=1";
win=window.open(A,A,null);return }Prnt(B)}function Prnt(A){if(A==null){A=window}if(window.print){if(A){A.focus();A.print();return }}alert("I'm sory. Your browser doesn't support this method of printing. Please use your browser's menu to print the page.")
}function PrntOnLoad(){Prnt();self.close()}function H(B,A){if(A==null){A=""}win=window.open(A+"Help/#"+B,"Help","width=500,height=500,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1");
win.focus()}function getCookie(A){var B=A+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(B);if(offset!=-1){offset+=B.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length
}return unescape(document.cookie.substring(offset,end))}}}function AddClass(C,A){var B=C.className;if(B!=""){B+=" "}C.className=B+A}function StripClass(D,A){var B=D.className;if(B!=""){var C=new RegExp("( "+A+"$)|(^"+A+"$)|(^"+A+" )","g");
B=B.replace(C,"");C=new RegExp("( "+A+" )","g");B=B.replace(C," ")}D.className=B}function findObjInParent(C){var B;var A;if(window.opener){A=window.opener}else{A=parent}return A.document.getElementById(C)
}function fixHSC(){try{var A=navigator.userAgent.indexOf("MSIE")!=-1;if(A&&window.top!=window){document.body.style.width="93%"}}catch(B){}}function invokeCode(f,scriptName){var timeout=0;var time=(new Date()).getTime();
if(!g_script[scriptName]){g_script[scriptName]=time;var script=document.createElement("script");script.type="text/javascript";script.src=g_AppPath+"script/"+scriptName+".js";document.getElementsByTagName("head")[0].appendChild(script);
timeout=10}else{if(g_script[scriptName]!==true){if(time-g_script[scriptName]>10000){return }}}setTimeout(function(){if(g_script[scriptName]===true){try{eval(f)}catch(e){}return }invokeCode(f,scriptName)
},timeout)};
