<!--

// AÅÂ±×&ÀÌ¹ÌÁö&¸Ê ¿¡ ¸µÅ©¼± ¾Èº¸ÀÌ°Ô
function bluring() {
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="img"||event.srcElement.tagName=="map") document.body.focus();
}
document.onfocusin=bluring;


// À©µµ¿ì »óÅÂ¹Ù¿¡ ¿øÇÏ´Â ¸Þ¼¼Áö ³ª¿À°Ô : start
var yourwords = "ºÏÁý :: ´ëÇÑ¹Î±¹ No.1 µµ¼­¿ä¾à ¼­ºñ½º";
var speed = 75;

function flash() {
      window.status=yourwords;
	  setTimeout("flash();",speed);
}
//flash();


// ÇÃ·¡½Ã Play
function objectlaunchSwf(width, height, url) {
 document.write("<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 width=" + width + " height=" + height + ">");
 document.write("<param name=allowScriptAccess value=sameDomain />");
 document.write("<param name=movie value="+ url + " />");
 document.write("<param name=wmode value=transparent />");
 document.write("<param name=quality value=high />");
 document.write("<embed quality=high name=wmode align=middle src=" + url + " width=" + width + " height=" + height + " allowScriptAccess=sameDomain pluginspage=http://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash></embed>");
 document.write("</object>");
}

function objectlaunchSwf2(width, height, url) {
 document.write("<object classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 codebase=https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 width=" + width + " height=" + height + ">");
 document.write("<param name=allowScriptAccess value=sameDomain />");
 document.write("<param name=movie value="+ url + " />");
 document.write("<param name=wmode value=transparent />");
 document.write("<param name=quality value=high />");
 document.write("<embed quality=high name=wmode align=middle src=" + url + " width=" + width + " height=" + height + " allowScriptAccess=sameDomain pluginspage=https://www.macromedia.com/go/getflashplayer type=application/x-shockwave-flash></embed>");
 document.write("</object>");
}

// ¸¶ÀÌ ºÏÁý
function view_mybookzip(str1,str2,str3) {

	if (document.all.mybookzip.style.display == "none") {

		OpenWord(str1,str2,str3);

		document.all.mybookzip.style.display = "";
		//document.all.mypage_img.style.filter = "alpha(opacity=0, style=1, finishopacity=0)";
		//document.all.mypage_img.style.filter = "";
		//document.all.mypage_img.style.display = "none";
		//document.all.banner_3.style.display = "none";
	}
	else {
		document.all.mybookzip.style.display = "none";
		//document.all.mypage_img.style.filter = "";
		//document.all.mypage_img.style.display = "";
		//document.all.banner_3.style.display = "block";
	}

}


// ·¹ÇÁÆ® ¸Þ´º
function open_sub(str1,str2) {
	if (str1 == "1") {                                  // ¼¼°èº£½ºÆ® SUB
		if(str2 == "1") {                               // ¼¼°èº£½ºÆ® SUB OPEN
			//getObject("submenu1_1").style.display="";
			//document.getElementById('submenu1_1').style.display = "";
			document.all.submenu1.style.display = "";
		}else {
			//getObject("submenu1_1").style.display="none";
			//document.getElementById('submenu1_1').style.display = "none";
			document.all.submenu1.style.display = "none";
		}
	}else if(str1 == "2") {                              // ±¹³»°æÁ¦°æ¿µ SUB
		if(str2 == "1") {                                // ±¹³»°æÁ¦°æ¿µ SUB OPEN
			document.all.submenu2.style.display = "";
		}else {
			document.all.submenu2.style.display = "none";
		}
	}else if(str1 == "3") {                              // ±¹³»ÀÎ¹®±³¾ç SUB
		if (str2 == "1") {                               // ±¹³»ÀÎ¹®±³¾ç SUB OPEN
			document.all.submenu3.style.display = "";
		}else {
			document.all.submenu3.style.display = "none";
		}
	}else if(str1 == "4") {                              // ±¹³»ÀÎ¹®±³¾ç SUB
		if (str2 == "1") {                               // ±¹³»ÀÎ¹®±³¾ç SUB OPEN
			document.all.submenu4.style.display = "";
		}else {
			document.all.submenu4.style.display = "none";
		}
	}else if(str1 == "5") {                              // ±¹³»ÀÎ¹®±³¾ç SUB
		if (str2 == "1") {                               // ±¹³»ÀÎ¹®±³¾ç SUB OPEN
			document.all.submenu5.style.display = "";
		}else {
			document.all.submenu5.style.display = "none";
		}
	}
}

// ¸ÞÀÎ 
function open_main(str1,str2) {
	if (str1 == "1") {                                  // ¼¼°èº£½ºÆ® SUB
		if(str2 == "1") {                               // ¼¼°èº£½ºÆ® SUB OPEN
			//getObject("submenu1_1").style.display="";
			//document.getElementById('submenu1_1').style.display = "";
			document.all.submainf.src = "/images/sub_main/tab01_on.gif";
			document.all.submaind1.src = "/images/sub_main/tab02.gif";
			document.all.submaind2.src = "/images/sub_main/tab03.gif";
			document.all.submain1.style.display = "";
			document.all.submain2.style.display = "none";
			document.all.submain3.style.display = "none";
		}
	}else if(str1 == "2") {                              // ±¹³»°æÁ¦°æ¿µ SUB
		if(str2 == "1") {                                // ±¹³»°æÁ¦°æ¿µ SUB OPEN
			//getObject("submenu1_1").style.display="";
			//document.getElementById('submenu1_1').style.display = "";
			document.all.submainf.src = "/images/sub_main/tab01.gif";
			document.all.submaind1.src = "/images/sub_main/tab02_on.gif";
			document.all.submaind2.src = "/images/sub_main/tab03.gif";
			document.all.submain1.style.display = "none";
			document.all.submain2.style.display = "";
			document.all.submain3.style.display = "none";
		}
	}else if(str1 == "3") {                              // ±¹³»ÀÎ¹®±³¾ç SUB
		if (str2 == "1") {                               // ±¹³»ÀÎ¹®±³¾ç SUB OPEN
			document.all.submainf.src = "/images/sub_main/tab01.gif";
			document.all.submaind1.src = "/images/sub_main/tab02.gif";
			document.all.submaind2.src = "/images/sub_main/tab03_on.gif";
			document.all.submain1.style.display = "none";
			document.all.submain2.style.display = "none";
			document.all.submain3.style.display = "";
		}
	}
}

//ÆÄÀÌ¾îÆø½º div ¹®Á¦
function getObject(objectId) { 
// checkW3C DOM, then MSIE 4, then NN 4. 
// 
if(document.getElementById && document.getElementById(objectId)) { 
return document.getElementById(objectId); 
} 
else if (document.all && document.all(objectId)) { 
return document.all(objectId); 
} 
else if (document.layers && document.layers[objectId]) { 
return document.layers[objectId]; 
} else { 
return false; 
} 
} 


// »çÀÌÆ® Äü ¸Þ´º ÆäÀÌÁö ÀÌµ¿
function goThere(){ 
	if (window.document.all.side_menu.value == ""){
	}else {
		location.href = window.document.all.side_menu.value
	}
}


// ·¹ÇÁÆ® SUB ¸Þ´º ¾÷µ¥ÀÌÆ® µµ¼­ Ã¼Å©
function Chk_update(str1,str2,str3) {
	//OpenWord(str1,str2,str3);
}


// È­¸é Áß¾Ó Ã¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù YES, ¸®»çÀÌÁî NO, ¿ìÆí¹øÈ£)
function theOpenWin1(openWidth,openHeight,winName,url) {            
      var winl = (screen.width-openWidth)/2;
      var wint = (screen.height-openHeight)/2;
      window.open( url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=no,copyhistory=0,width=' + openWidth + ',height=' + openHeight +',top=' + wint  + ',left=' + winl);
}


// È­¸é Áß¾Ó Ã¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù NO, ¸®»çÀÌÁî YES,CSDºä¾î¿ë)
function theOpenWin2(openWidth,openHeight,winName,url) {           
      var winl = (screen.width-openWidth)/2;
      var wint = (screen.height-openHeight)/2;
      window.open( url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=yes,copyhistory=0,width=' + openWidth + ',height=' + openHeight +',top=' + wint  + ',left=' + winl);
}


// È­¸é Áß¾Ó Ã¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù YES, ¸®»çÀÌÁî YES, ¹è³Ê»çÀÌÆ® È£Ãâ¿ë)
function theOpenWin3(openWidth,openHeight,winName,url) {           
      var winl = (screen.width-openWidth)/2;
      var wint = (screen.height-openHeight)/2;
      window.open( url,winName,'toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=yes,resizable=yes,copyhistory=0,width=' + openWidth + ',height=' + openHeight +',top=' + wint  + ',left=' + winl);
}

// È­¸é Áß¾Ó Ã¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù NO, ¸®»çÀÌÁî NO, º¸¾È¾Á È£Ãâ¿ë, ¾ÆÀÌµðÁßº¹È®ÀÎ)
function theOpenWin4(openWidth,openHeight,winName,url) {           
      var winl = (screen.width-openWidth)/2 - 200;
      var wint = (screen.height-openHeight)/2;
      //window.open( url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,copyhistory=0,width=' + openWidth + ',height=' + openHeight +',top=' + wint  + ',left=' + winl );
      window.open( url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,copyhistory=0,width=' + openWidth + ',height=' + openHeight +',top=' + wint  + ',left=' + winl );
}

// È­¸é Áß¾Ó Ã¢ ¶ç¿ì±â(½ºÅ©·Ñ¹Ù NO, ¸®»çÀÌÁî NO, º¸¾È¾Á È£Ãâ¿ë, ¾ÆÀÌµðÁßº¹È®ÀÎ)
function theOpenWin5(openWidth,openHeight,winName,url) {           
      var winl = (screen.width-openWidth)/2 + 100;
      var wint = (screen.height-openHeight)/2;
      //window.open( url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,copyhistory=0,width=' + openWidth + ',height=' + openHeight +',top=' + wint  + ',left=460' );
      window.open( url,winName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=no,copyhistory=0,width=' + openWidth + ',height=' + openHeight +',top=' + wint  + ',left=' + winl );
}

// ¿À¸¥ÂÊ ¹öÆ° Å¬¸¯À» ¸øÇÏ°Ô ÇÏ´Â ºÎºÐ(°æ°íÃ¢ ¾øÀÌ)
if (window.Event)              // ³Ý½ºÄÉÀÌÇÁ¿¡¼­¸¸ ´ë¹®ÀÚ E.
	document.captureEvents(Event.MOUSEUP); // mouse up ÀÌº¥Æ®¸¦ ÀâÀ½

function nocontextmenu() {     // IE4¿¡¼­¸¸ Àû¿ë, ´Ù¸¥ ºê¶ó¿ìÀú´Â ¹«½Ã	
	event.cancelBubble = true
	event.returnValue = false;

	return false;
}

function norightclick(e) {     // ´Ù¸¥ ¸ðµç ºê¶ó¿ìÀú¿¡¼­ ÀÛµ¿
	if (window.Event) {		   // ´Ù½Ã, IE ¶Ç´Â NAV ?
		if (e.which == 2 || e.which == 3)
		 return false;
	}
	else
		if (event.button == 2 || event.button == 3) {
			event.cancelBubble = true
			event.returnValue = false;
			return false;
		}
}

function keypressed() {       // CtrlÅ° & ¸·±â
	if(event.ctrlKey /* || (event.keyCode >= 112 && event.keyCode <= 123) f1~12¹ø ¸ðµÎ °É·¯Áø´Ù. */) {	
		//alert('±ÝÁöµÈ Å° ÀÔ´Ï´Ù.');
		return false;
	}
}
//document.onkeydown=keypressed;
//document.oncontextmenu = nocontextmenu;      // IE5+ ¿ë
//document.onmousedown = norightclick;      // ´Ù¸¥ ºê¶ó¿ìÀú ¿ë


// ¸¶¿ì½º ´õºíÅ¬¸¯ »óÇÏ ÀÌµ¿	
/*
function totopbottom() {
	if (document.body.scrollTop == 0) {
		window.scrollTo(0,document.body.scrollHeight);
	} else {
		window.scrollTo(0,0);
	}
}

function topbottom() {
	document.body.ondblclick = totopbottom;
}
*/


// mymenu ºñµ¿±âÈ£Ãâ
var xmlHttp;
var completeDiv;
var inputField;
var nameTable;
var nameTableBody;

function createXMLHttpRequest(){
	if(window.ActiveXObject){ 
		//Win e4,e5,e6¿ë 
		try{ 
			 xmlHttp = new ActiveXObject("Msxml2.XMLHTTP") ; 
		}catch (e){ 
				try{ 
					xmlHttp = new ActiveXObject("Microsoft.XMLHTTP") ; 
				}catch (e2){ 
						return null ; 
				} 
		} 
	}else if(window.XMLHttpRequest){ 
			//Win Mac Linux m1,f1,o8 Mac s1 Linux k3 ¿ë 
			xmlHttp = new XMLHttpRequest() ; 
		}else{ 
			return null ; 
		}
}

function OpenWord(str1,str2,str3){
	createXMLHttpRequest();	
	
	if (str3 == "") {
		var sPrams = "Chk1=" + str1;
	}
	else{
		var sPrams = "Chk1=" + str1 + "&Chk2=" + str3;
	}

		var url = str2;
		xmlHttp.open("POST", url, false);
		xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
		//xmlHttp.setRequestHeader('Content-Type','text/xml');
		//xmlHttp.setRequestHeader('"Accept-Language','ko');

		xmlHttp.onreadystatechange = callback;		
		xmlHttp.send(sPrams);
}

function callback(){

	if (xmlHttp.readyState == 4) {                                                         // readyState 4´Â ·ÎµùµÈÈÄ, °ªÀ» ¸ðµÎ ¹Þ¾ÒÀ½À» ÀÇ¹ÌÇÔ. 

		if (xmlHttp.status == 200) {

			var Word = xmlHttp.responseText;                                               // °ªÀÌ ÀÖ´Ù¸é ¹ÞÀº °ªÀ» Wordº¯¼ö¿¡ ´ã´Â´Ù.

			if (Word.length > "0"){
				
				var InWord= Word.split('|');                                               // ¹è¿­ - ³Ñ¾î¿Â °ª(Á¦¸ñ@ÄÚµå)
				//for (i=0;i<InWord.length;i++){

					if (InWord[0] == "mylibrary") {
						if (InWord[4] == "@") {
							document.all.mylibrary_chk.innerHTML = "ÃÖ±Ù ÀÐÀº µµ¼­ :<br>ÃÖ±Ù ÀÐÀº µµ¼­°¡ ¾ø½À´Ï´Ù."+
															   "<br>"+
															   "<br><a href='/sub/member/mylibrary.asp' class='info'>"+
															   "³»¼­Àç</a> : <a href='/sub/member/mylibrary.asp?Chk=MyLibrary' class='info'>ÃÑ"+
															   "<b>"+InWord[1]+"</b> ±Ç</a>ÀÌ ÀúÀåµÇ¾î ÀÖ½À´Ï´Ù.";
						}else {
							document.all.mylibrary_chk.innerHTML = "ÃÖ±Ù ÀÐÀº µµ¼­ :<br><a href='"+InWord[2]+"' class='info'><b>"+InWord[3]+"</a>"+
															   "<br><a href='"+InWord[2]+"' class='info'>"+InWord[4]+"</b></a>"+
															   "<br><a href='/sub/member/mylibrary.asp' class='info'>"+
															   "³»¼­Àç</a> : <a href='/sub/member/mylibrary.asp?Chk=MyLibrary' class='info'>ÃÑ"+
															   "<b>"+InWord[1]+"</b> ±Ç</a>ÀÌ ÀúÀåµÇ¾î ÀÖ½À´Ï´Ù.";
						}
					}
					else if (InWord[0] == "mylibrary2") {
						
						if(InWord[1] == "1") {
							alert('³» ¼­Àç¿¡ ÀúÀåµÇ¾ú½À´Ï´Ù.');
						}
						else {
							alert('ÀÌ¹Ì ÀúÀåµÇ¾î ÀÖ½À´Ï´Ù.');
						}
					}
					else if (InWord[0] == "LostID") {

						if (InWord[2] == "YES") {
						
						document.all.ResultID.innerHTML = "<span class='b'>"+ InWord[3] +"</span> ´ÔÀÇ ¾ÆÀÌµð´Â <span class='borange'>"+ InWord[4] +"</span> ÀÔ´Ï´Ù. " +
														  "<a href='Login.asp'><img src='/images/pop/btn_logins.gif' class='vaM' alt='·Î±×ÀÎ' /></a>";
						}
						else {

						document.all.ResultID.innerHTML = "°Ë»öµÈ ¾ÆÀÌµð°¡ ¾ø½À´Ï´Ù. " +
														  "<a href='Login.asp'><img src='/images/pop/btn_logins.gif' class='vaM' alt='·Î±×ÀÎ' /></a>";


						}
						document.all.ResultID.style.display = "";
					
					}
					/*
					else if(InWord[0] == "update_chk") {
						var c = document.getElementById("sbox1").getElementsByTagName("SPAN").length;

						if (InWord[1] != "X") {                                             // °ªÀÌ ÀÖ´Ù¸é
							document.getElementById("sbox1").getElementsByTagName("SPAN")[c-1].innerHTML = "<img src='/images/leftmenu/ico_new.gif' align='absmiddle' style='padding-bottom:2px;'>";
						}else {
							document.getElementById("sbox1").getElementsByTagName("SPAN")[c-1].innerHTML = "";
						}
					}
					*/
				//}
			}
		} else if (xmlHttp.status == 204){                               // µ¥ÀÌÅÍ°¡ Á¸ÀçÇÏÁö ¾ÊÀ» °æ¿ì
			 
		   }
	}
 
}


// ¸â¹ö½Ê¿¬Àå Ã¼Å©
function membership_exetend(str,sdate,edate,link){
	if(str == "PARK") {
		alert('¸ÕÀú ±âÁ¸¿¡ °¡ÀÔÇÏ½Å ºÎºÐ¿¡ ´ëÇÑ ¹«ÅëÀåÀÔ±ÝÀ» ¿Ï·áÇØ ÁÖ½ÅÈÄ¿¡ ÁøÇàÇØ ÁÖ½Ã±æ ¹Ù¶ø´Ï´Ù..');
	}else {
		location.href=link;
	}
}

// ¹è³Ê - iblm »çÀÌÆ® ÀÌµ¿
function iblm_show(str){
	if(str == "") {
		alert('·Î±×ÀÎÀ» ÇÏ½ÅÈÄ¿¡ 23% DCµÈ Æ¯º° °¡°Ý¿¡ ±¸ÀÔÇÏ½Ç ¼ö ÀÖ´Â ÇýÅÃÀ» ´©¸®½Ã±æ ¹Ù¶ø´Ï´Ù.');
	}else {
		theOpenWin3('800','600','open','http://www.iblm.co.kr/01_blife/shop.asp?site=neonet');
	}
}


// Side Quick¸Þ´º ³ëÃâ
function QuickMenu_Show(str){ 
	var str = str;

	// »çÀÌµå Äü¸Þ´º ¼³Á¤ ºÎºÐ Ã¼Å© - ¸ÞÀÎÆäÀÌÁö¶ó¸é ¾Èº¸¿© Áö°í ¾Æ´Ï¶ó¸é ³ëÃâ
	if (str == "http://www.bookzip.co.kr/main/main.asp" || str == "http://www.bookzip.co.kr/main/main.asp?") {
		document.all.selectmenu.style.display = "none";
	}else {
		document.all.selectmenu.style.display = "";
	}
}
//-->