function PutPage(div, url, param, fm){ if(url == "") return false; var method = "GET"; //pageFocus = $(':focus').attr('id'); //$("#" + pageFocus).blur(); var ret; var ob = null; if(div) ob = $("#" + div); if(fm){ method = "POST"; if(param) param = param + "&" + $(fm).serialize(); else param = $(fm).serialize(); } if(ob != null && ob.width() != 0) Loading(div); $.ajax({ url : url, dataType : "html", type : method, data : param, async : false, success : function(result){ if(ob != null){ ob.html(result); ob.css('border-style', 'none'); ob.css('width', 'auto'); ob.css('height', 'auto'); }else{ ret = result; } }, error : function(error){ //alert("Á˼ÛÇÕ´Ï´Ù. Àá½ÃÈÄ¿¡ ´Ù½Ã ½ÃµµÇϼ¼¿ä."); } }); //if(pageFocus) $("#" + pageFocus).select(); if(ret) return ret; } function GetMegabyte(size){ return Math.ceil(size / 1024 / 1024 * 100) / 100; } function GetCookie(name) { var cookies = document.cookie.split("; "); for (var i = 0; i < cookies.length; i++) { var [key, value] = cookies[i].split("="); if (key === name) { return value; } } return null; // ÇØ´ç À̸§ÀÇ Äí۰¡ ¾øÀ» ¶§ } function SetCookie(name, value, days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); var expires = "expires=" + date.toUTCString(); document.cookie = name + '=' + value + '; ' + expires + '; path=/'; } function Alert(mesg,x,opt){ if(mesg != -1){ if(!mesg) mesg = "ÀϽÃÀûÀÎ Àå¾Ö¹ß»ý\n\n°í°´¼¾ÅÍ·Î ¹®ÀÇÇϼ¼¿ä"; // È£Ãâ Àü Æ÷Ä¿½Ì pageFocus = $(':focus').attr('id'); $("#" + pageFocus).blur(); ScreenDisabled(); if(!$('#div_alert').length){ var newDiv = $("
"); $(parent.document.body).append(newDiv); $('#div_alert',parent.document).css('width','auto'); $('#div_alert',parent.document).css('position','fixed'); $('#div_alert',parent.document).css('left','50%'); $('#div_alert',parent.document).css('z-index','100'); $('#div_alert',parent.document).css('overflow','hidden'); $('#div_alert',parent.document).css('text-align','right'); if(x != 1) $('#div_alert',parent.document).html(" X "); $('#div_alert',parent.document).append("