(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){if(b!=null){return(b.get(0)&&b.get(0).className&&b.get(0).className.indexOf("row")>=0)?b:b.parent()}};a.fn.extend({resizeView:function(b,c){return this.each(function(d){var e=this;if(e.grid){a(e).hybsGrid().adjustSB()}else{if(a.hgrid){a(e).hybsGrid().adjustSB()}}})}});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);