function popupControl() { this.popuplist=new Array(); // ¸Þ¼¼Áö ¹è¿­ this.popupAdd=popupAdd; } function popupAdd(url,name,width,height,xpos,ypos,property) { var tmp=new Array(url+"|"+name+"|"+width+"|"+height+"|"+xpos+"|"+ypos+"|"+property); this.popuplist=this.popuplist.concat(tmp); } function popupWindow(url,name,width,height,xPos,yPos,property) { var openwin,left,top; if (popupGetCookie(name)!=null) return; if (property=="" || property==null) { property="resizable=no,scrollbars=no,status=no";// } if (xPos==null || xPos=="")left = (screen.width - width) / 2; else left = xPos; if (yPos==null || yPos=="") top = (screen.height - height) / 2; else top=yPos; openwin=window.open("./popup.jsp?url="+url+"&name="+name,name,"width="+width+",height="+height+",left="+left+",top="+top+" ,"+property); openwin.focus(); } function popupWindow2(url,name,width,height,xPos,yPos,property) { var left,top; if (popupGetCookie(name)!=null) return; if (property=="" || property==null) { property="resizable=no,scrollbars=no,status=no";// } if (xPos==null || xPos=="")left = (screen.width - width) / 2; else left = xPos; if (yPos==null || yPos=="") top = (screen.height - height) / 2; else top=yPos; window.open(url,name,"width="+width+",height="+height+",left="+left+",top="+top+" ,"+property); } function popupGetCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) { endstr = document.cookie.length; } return unescape(document.cookie.substring(offset, endstr)); } function popupGetCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { return popupGetCookieVal (j); } i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function popupDeleteCookie (name,path,domain) { if (popupGetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } popup=new popupControl();