// JavaScript Document
	//»õÃ¢ °¡¿îµ¥·Î ¶ç¿ì±â
	function NewWindow(mypage, myname, w, h, scroll){
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',noresize';
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}


		//»õÃ¢ °¡¿îµ¥·Î ¶ç¿ì±â
	function new_window(mypage, myname, w, h, scroll)
	{
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=yes,location=yes,status=yes,menubar=yes,resizable=yes';
		win = window.open(mypage, myname, winprops)
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	} 


//Áñ°ÜÃ£±â
function goBookmark() {
	window.external.AddFavorite('http://www.bud.co.kr/',':: ¹é¿î´çÇÑÀÇ¿ø ::');
}

function sitelink2(code,url) {
        var LinkCode2 = code
        var Linkurl = url
                // ·Î±×ÀÎ
        if (LinkCode2 == "login") {
                document.location.href = ""+Linkurl
		}
}

function sitelink(code) {
        var LinkCode = code
                // È¨
        if (LinkCode == "home") {
                document.location.href = "/index.asp"

// ¸â¹ö½± ===========================================================================================


				// »çÀÌÆ®¸Ê
	   } else if (LinkCode == "sitemap") { 
                document.location.href = "/member/index.asp?pgNm=04"
				// ÀÌ¸ÞÀÏ
	   } else if (LinkCode == "email") { 
                document.location.href = "mailto:1kangyw@hanmail.net"
				// °ü¸®ÀÚ
	   } else if (LinkCode == "admin") { 
                document.location.href = "/admin"





// ÇÑÀÇ¿ø¼Ò°³ ===========================================================================================
	  
		// º´¿øÀåÀÎ»ç¸»
       } else if (LinkCode == "info") { 
                document.location.href = "/html/info/index.asp?pgNm=01"
		// º´¿øÀå¾à·Â
       } else if (LinkCode == "history") { 
                document.location.href = "/html/info/index.asp?pgNm=02"
	  // ³»ºÎ½Ã¼³ 
       } else if (LinkCode == "space") { 
                document.location.href = "/html/info/index.asp?pgNm=03"
	  // Ã£¾Æ¿À½Ã´Â±æ 
       } else if (LinkCode == "location") { 
                document.location.href = "/html/info/index.asp?pgNm=04"
	  // ÇÑÀÇ¿ø¼Ò½Ä 
       } else if (LinkCode == "notice") { 
                document.location.href = "/html/board/default.asp?checkT=notice"


// ½ÅÀåº´Àü¹®Å©¸®´Ð ===========================================================================================
	  
		// ½ÅÀåÀÌ¶õ
       } else if (LinkCode == "clinic") { 
                document.location.href = "/html/clinic/index.asp?pgNm=01"
		// ½ÅÀåº´ÀÌ¶õ
       } else if (LinkCode == "clinic02") { 
                document.location.href = "/html/clinic/index.asp?pgNm=02"
		// ÇÑ¹æ½ÅÀåº´Å©¸®´Ð
       } else if (LinkCode == "clinic03") { 
                document.location.href = "/html/clinic/index.asp?pgNm=03"
		// ½ÅÀåº´À» °íÄ£ »ç¶÷µé
       } else if (LinkCode == "clinic04") { 
                document.location.href = "/html/clinic/index.asp?pgNm=04"


// Áø·á°ú¸ñ ===========================================================================================
	  
		// ÇÑ¹æºÎÀÎ°ú,ºÒÀÓÅ©¸®´Ð
       } else if (LinkCode == "subject") { 
                document.location.href = "/html/subject/index.asp?pgNm=01"
		// ÇÑ¹æ³»°ú
       } else if (LinkCode == "subject02") { 
                document.location.href = "/html/subject/index.asp?pgNm=02"
		// ÇÑ¹æ¼Ò¾Æ°ú
       } else if (LinkCode == "subject03") { 
                document.location.href = "/html/subject/index.asp?pgNm=03"
		// ÇÑ¹æ½Å°æÁ¤½Å°ú
       } else if (LinkCode == "subject04") { 
                document.location.href = "/html/subject/index.asp?pgNm=04"
		// ÇÑ¹æÇÇºÎ°ú
       } else if (LinkCode == "subject05") { 
                document.location.href = "/html/subject/index.asp?pgNm=05"



// ¿©¼ºÇÑ¹æÅ©¸®´ÐQ&A ===========================================================================================
	  
		// ¼ÓÆíÇÑ¿©ÀÚ·Î»ì±â
       } else if (LinkCode == "women") { 
                document.location.href = "/html/women/index.asp?pgNm=01"
		// ÃÊ°æºÎÅÍÃâ»ê±îÁö
       } else if (LinkCode == "women02") { 
                document.location.href = "/html/women/index.asp?pgNm=02"
		// ¾Æ¸§´Ù¿î¾ó±¼°ú¿¹»Û¸ö¸Å
       } else if (LinkCode == "women03") { 
                document.location.href = "/html/women/index.asp?pgNm=03"
		// ³ª¸¸¾Ë°í½ÍÀº¼ºÀÌ¾ß±â
       } else if (LinkCode == "women04") { 
                document.location.href = "/html/women/index.asp?pgNm=04"
		// ³»¸öÀÌÁÁ¾ÆÇÏ´Â¹Î°£¿ä¹ý
       } else if (LinkCode == "women05") { 
                document.location.href = "/html/women/index.asp?pgNm=05"


// Ä§Çâ¿¬±¸¼Ò ===========================================================================================
	  
		// Ä§ÇâÀÌ¶õ
       } else if (LinkCode == "needle") { 
                document.location.href = "/html/needle/index.asp?pgNm=01"
		// Ä§ÇâÀÇÈ¿´É
       } else if (LinkCode == "needle02") { 
                document.location.href = "/html/needle/index.asp?pgNm=02"
		// Ä§ÇâÀÇÀÓ»óÀÀ¿ë
       } else if (LinkCode == "needle03") { 
                document.location.href = "/html/needle/index.asp?pgNm=03"
		// Âü°í»çÇ×
       } else if (LinkCode == "needle04") { 
                document.location.href = "/html/needle/index.asp?pgNm=04"
		// °ø±Þ¹×¹®ÀÇ
       } else if (LinkCode == "needle05") { 
                document.location.href = "/html/needle/index.asp?pgNm=05"


// °­ÀÇ¹×Àú¼­ ===========================================================================================
	  
		// °­ÀÇ
       } else if (LinkCode == "book") { 
                document.location.href = "/html/board/default.asp?checkT=movie"
		// Àú¼­
       } else if (LinkCode == "book02") { 
                document.location.href = "/html/board/default.asp?checkT=book"





// »ó´ã½Ç ===========================================================================================
	  
		// ÇÑ¹æ°Ç°­»ó½Ä
       } else if (LinkCode == "community") { 
                document.location.href = "/html/board/default.asp?checkT=sense"
		// ¿Â¶óÀÎ»ó´ã½Ç
       } else if (LinkCode == "community02") { 
                document.location.href = "/html/board/default.asp?checkT=online"
		// ¹æ¹®ÀÚÄÚ³Ê
       } else if (LinkCode == "community03") { 
                document.location.href = "/html/board/default.asp?checkT=custom"
		// ¿Â¶óÀÎ¿¹¾à
       } else if (LinkCode == "community04") { 
                document.location.href = "/html/community/index.asp?pgNm=04"










		}
}




//ÇÃ·¡½Ã
function ShowFlash(obj,strMediaURL,obj_width,obj_height)  {
	var sTag = ''
		+ '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + obj_width + '" height="' + obj_height + '">'
		+ '<param name="movie" value="' + strMediaURL + '">'
		+ '<param name="quality" value="best">'
		+ '<param name="WMode" value="Transparent">'
		+ '<embed src="' + strMediaURL + '" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + obj_width + '" height="' + obj_height + '"></embed>'
		+ '</object>'
		+ '';
	document.write (sTag);
}
function swap_image(img, txt, ext)
{
    if(img.src.indexOf(txt) == -1)
        img.src = img.src.replace(ext, txt+ext);
}
function change_image(img, src, des)
{
    if(src != des)
        img.src = img.src.replace(des, "");
}
//onfocus='blur();' ¸¦ ÇÑ¹ø¿¡
function bluring(){
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
	}
	document.onfocusin=bluring;


