// ÆË¾÷°ü·Ã ÀÚ¹Ù½ºÅ©¸³Æ® function openPopup(no, islayer, x, y, width, height, address, style) { if(address == "null" || address == "") { height = Number(height)+35; } var styleStr = ""; if(style.length > 1) { var styleArray = style.split(","); for(var i = 0; i < styleArray.length; i+=1) { var option = styleArray[i].split("="); var name = option[0].trim(); var value = option[1].trim(); switch(name) { case "directories" : styleStr += name + "=" + value + "," ;break; case "location" : styleStr += name + "=" + value + "," ;break; case "menubar" : styleStr += name + "=" + value + "," ;break; case "status" : styleStr += name + "=" + value + "," ;break; case "scrollbars" : styleStr += name + "=" + value + "," ;break; case "toolbar" : styleStr += name + "=" + value + "," ;break; case "fullscreen" : styleStr += name + "=" + value + "," ;break; case "moveable" : styleStr += name + "=" + value + "," ;break; case "resizable" : styleStr += name + "=" + value + "," ;break; case "resizeable" : styleStr += name + "=" + value + "," ;break; case "titlebar" : styleStr += name + "=" + value + "," ;break; } if(i == styleArray.length-1) styleStr = styleStr.substr(0, styleStr.length-1); } styleStr = 'top='+y+',left='+x+',width='+width+',height='+height+','+style; } else { styleStr = 'top='+y+', left='+x+', width='+width+', height='+height+', toolbar=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0'; } if(isPopupCookie(no)) { if(address == "null" || address == ""){ if(islayer == "0") { window.open('popup-open.do?no='+no,'popup'+no, styleStr); } else if(islayer == "1") { window.DivWin('popup-open.do?no='+no,'popup'+no, styleStr); } } else { if(islayer == "0") { window.open(address,'popup'+no, styleStr); } else if(islayer == "1") { window.DivWin(address,'popup'+no,styleStr); } } } } function isPopupCookie(no) { var request = new createRequest(); var value = request.getCookie("ykplantPopup"+no); if(value=="nopopup") return false; else return true; } openPopup('16', '0', '30', '20', '412', '550', '', '');