(function(a){a.hybs=a.hybs||{};a.hybs.defaults={sHybsSel:"h_rowSel",sNoTsKey:"h_noTrnsKey",sAjxSbmtKey:"h_ajaxSubmit",sHybsRid:"rid",sHybsKh:"kh",sHybsCmd:"command",sHybsCmdVal:"commandVal",sCmdInit:"INIT",sCmdNew:"NEW",sCmdInsert:"INSERT",sCmdInsertOne:"INSERTONE",sCmdCopy:"COPY",sCmdModify:"MODIFY",sCmdDelete:"DELETE",sCmdEntry:"ENTRY",sCmdView:"VIEW",sCmdReset:"RESET",sCmdUndo:"UNDO",sEntryCls:"entryBtn",sEditCls:"editBtn",sSelRow:"SEL_ROW"};a.hybs.ogAlert=function(d,c){if(a.jqm){var b=a("div.jqmAlert#ogdlg");if(!b.length){b=a("<div class='jqmAlert' id='ogdlg'><img class='jqmPrintSafe' src='../image/space_white.gif' height='1' width='1'><div class='jqmAlertWindow'><div class='jqmAlertTitle jqDrag'><h1>The ERROR occurred.</h1><a href='#' class='jqmClose'>×</a></div><div class='jqmAlertContent'></div></div></div>").appendTo(document.body);if(a.jqDnR){b.jqDrag(".jqDrag")}b.jqm({modal:false,overlay:0,onShow:function(g){var i=(parseInt(g.w.css("z-index"),10)),f=g.w.find(".jqmAlertWindow").css("z-index",i+2),e=g.w.find(".jqmPrintSafe").css("z-index",i+1);g.w.show();e.css({width:f.outerWidth(),height:f.outerHeight()})},onHide:function(e){e.w.find(".jqmAlertContent").html("");e.w.hide();if(e.o){e.o.remove()}}})}b.find(".jqmAlertContent").html(d+(a.browser.msie?"<div>&nbsp</div>":"")).find(".ERROR_BACK_BUTTON").css("display","none");b.jqmShow()}else{alert(d)}};a.hybs.ogLog=function(c,b){if(window.console&&window.console.error){console.error(c)}};a.hybs.getHValue=function(b){var c="";if(b){jHObj=a("input:hidden[name="+b+"]");return(jHObj[0]?jHObj[0].value:c)}else{return c}};a.hybs.getNoColId=function(b){var c=-1;a("th:lt(3)",b).each(function(d){if("No"==a(this).text()){c=d}});return c};a.hybs.getHybsTr=function(b){return(b.get(0).className.indexOf("row")>=0)?b:b.parent()};a.fn.extend({resizeView:function(b,c){return this.each(function(i){var e=this;if(e.grid){a(e).hybsGrid().adjustSB()}else{if(a.hgrid){a(e).hybsGrid().adjustSB()}else{if(a.browser.msie){var g=e.getElementsByTagName("THEAD");var h=(1<=g.length)?g[0]:null;if(h){var k=h.offsetHeight;var l,j;l=e.parentNode;if(l&&"divHide"==l.id){j=l.parentNode}if(j&&"layer"==j.id){if(b){scrollBar2();AdjustScroll2()}else{if(parseInt(j.style.borderTopWidth,10)==(k+1)){var f,d=0;f=(e.offsetHeight-k)+"px";if(l.style.height!=f){l.style.height=f;l.scrollTop=k;d|=1}f=e.offsetWidth+"px";if(l.style.width!=f){l.style.width=f;d|=2}if(d){SetScrollHeader(j,false);AdjustScroll2()}}}}}}else{if(a.browser.mozilla){AdjustScroll2()}}}}})}});a.fn.focusin=function(c){var b=this;if(a.browser.msie){b.bind("focusin",c)}else{b.focus(c)}return b};a.fn.focusout=function(c){var b=this;if(a.browser.msie){b.bind("focusout",c)}else{b.blur(c)}return b}})(jQuery);