function getXMLHttpRequest(){ if(window.ActiveXObject){ try{ return new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ return new ActiveXObject("Microsoft.XMLHTTP"); }catch(e1){ return null; } } }else if(window.XMLHttpRequest){ return new XMLHttpRequest(); }else{ return null; } } var TRIM_PATTERN = /(^\s*)|(\s*$)/g; String.prototype.trim = function(){ return this.replace(TRIM_PATTERN, ""); } //Á¦ÈÞ»ç °øÅë script //·Î±×ÀÎ ÆË¾÷ ¶ç¿ì±â //@param url ÆË¾÷â url //@param joinSite Á¦ÈÞ»ç ÄÚµå //@param target ÆË¾÷â target //@param scroll scroll - [yes],[no] //memberSite¿¡ SOSÃß°¡ (By Kim Suk Jin) - ¿Â¼¼ÀÏ heightÀÇ ÇϴܺκР¹öưÀÌ Ãâ·ÂµÇÁö ¾ÊÀ½¿¡ µû¸¥ Á¶Ä¡! function openLoginPop(url, memberSite, target, scroll){ var currUrl = document.location.href; //ºñ·Î±×ÀÎ Á¦ÈÞ»ç var w = 590; var h = 250; var winl = 400; var wint = 300; try{ if(currUrl.indexOf("http://partner.insvalley.com") != -1 || currUrl.indexOf("greenpeople.insvalley.com")!=-1){ w = 400; h = 470; winl = 400; wint = 300; }else{ if(memberSite == 'FIV'){ w = 400; h = 470; winl = (parent.screen.width - w) / 2; var wint = (parent.screen.height - h) /2; }else if(memberSite == 'ZEX'){ winl = 300; }else if(memberSite == 'SOS'){ h = 330; winl = (parent.screen.width - w) / 2; wint = (parent.screen.height - h) /2; }else if(memberSite == 'FHT' || memberSite == 'CST'){ winl = 300; wint = 300; }else{ var winl = (parent.screen.width - w) / 2; var wint = (parent.screen.height - h) /2; } } }catch(e){} window.open(url,target,"width="+w+",height="+h+",top="+wint+",left="+winl+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=no"); } //ÆÐ½º¿öµå ã±â ÆË¾÷ /* function openIVPassWord(){ //Àνº¹ë¸®(FIV) default °ª setting var w = 405; var h = 350; window.open('/memcenter/MemPassSearch.jsp','',"width="+w+",height="+h+",top=0,left=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no"); } */ //Passwordã±â 2008.03.12 by Hongs¢â function openSearchPasswd(){ var w = 405; var h = 425; try{ var winl = (parent.screen.width - w) / 2; var wint = (parent.screen.height - h) /2; }catch(e){} window.open('/memcenter/password/searchPassword.jsp','',"width="+w+",height="+h+",top="+wint+",left="+winl+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no"); } function openSearchPasswdSSL(){ var w = 405; var h = 425; try{ var winl = (parent.screen.width - w) / 2; var wint = (parent.screen.height - h) /2; }catch(e){} window.open('/memcenter/password/searchPassword_ssl.jsp','',"width="+w+",height="+h+",top="+wint+",left="+winl+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=auto,resizable=no"); } //Àνº¹ë¸® ȸ¿ø°¡ÀÔ ÆË¾÷ function openIVMemJoin(){ var currUrl = document.location.href; var w = 600; var h = 550; var winl = 500; var wint = 200; try{ if(currUrl.indexOf("http://partner.insvalley.com") == -1 && currUrl.indexOf("insvalley.ezday.co.kr")== -1 && currUrl.indexOf("greenpeople.insvalley.com")==-1){ winl = (parent.screen.width - w) / 2; wint = (parent.screen.height - h) /2; } }catch(e){} window.open("/memcenter/MemJoinNameInput.jsp?header_yn=N","cont_mem","width="+w+",height="+h+",top="+wint+",left="+winl+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no"); } function openIVWin(url, w, h, scroll){ var winl = 100; var wint = 200; try{ winl = (parent.screen.width - w) / 2; wint = (parent.screen.height - h) /2; }catch(e){} window.open(url,"iv_win","width="+w+",height="+h+",top="+wint+",left="+winl+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=yes" ) ; } function openIvWin(url, target, w, h, scroll){ var currUrl = document.location.href; var winl = 100; var wint = 200; try{ if(currUrl.indexOf("http://partner.insvalley.com") == -1 && currUrl.indexOf("insvalley.ezday.co.kr")== -1 && currUrl.indexOf("greenpeople.insvalley.com")==-1){ winl = (parent.screen.width - w) / 2; wint = (parent.screen.height - h) /2; } }catch(e){} window.open(url, target, "width="+w+",height="+h+",top="+wint+",left="+winl+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=yes" ) ; } function openIvWin(url, target, w, h, scroll, resize){ var currUrl = document.location.href; var winl = 100; var wint = 200; try{ if(currUrl.indexOf("http://partner.insvalley.com") == -1 && currUrl.indexOf("insvalley.ezday.co.kr")== -1 && currUrl.indexOf("greenpeople.insvalley.com")==-1){ winl = (parent.screen.width - w) / 2; wint = (parent.screen.height - h) /2; } }catch(e){} window.open(url, target, "width="+w+",height="+h+",top="+wint+",left="+winl+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable="+resize) ; } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i maxThisX){ window.document.body.scroll = "yes"; thisX = maxThisX; } if(thisY > maxThisY - marginY){ window.document.body.scroll = "yes"; thisX += 19; thisY = maxThisY - marginY; } window.resizeTo(thisX+20, thisY+marginY); } function resizePopUpWindow(){ window.resizeTo(100,100); setTimeout(resizeWindowSize,1); }