<!--
//*********************************************************************
// 2002 ³â 3¿ù 8ÀÏÀÚ ÀÛ¼º -  ¸¶¿ì½º¿À¹ö½Ã ÀÌ¹ÌÁö Ã¼ÀÎÁö µÇ´Â ½ºÅ©¸³Æ® ¸ðÀ½
//*********************************************************************
function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}	
function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
	var p,i,x;	if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



//**************************************************************************
// 2002 ³â 3¿ù 8ÀÏÀÚ ÀÛ¼º - ¸¶¿ì½º ¿À¹öµÇ¸é À§¾Æ·¡·Î ¸Þ´ºÃ¼ÀÎÁö µÇ´Â ½ºÅ©¸³Æ® ¸ðÀ½
//**************************************************************************
window.oneclick= null 
var x = 0; 
var nScrollEnd = 0; 
var nStop = 0; 
	
function Scroll(dist) { 
	nStop =0; 
	nScrollEnd = dist; 
	if(x<dist) scroll_Up(); 
	if(x>dist) scroll_Down(); 
} 
	
function scroll_Down() { 
	if(nStop == 0) { 
		if (x > nScrollEnd) { 
			this.frames.scroll_menu.scroll(0,x); 
			x = x - 2; //¾Æ·¡·Î ÀÌµ¿ÇÏ´Â ¼Óµµ
			setTimeout('scroll_Down()', 1); 
		} 
		else{ 
			x = nScrollEnd; 
			this.frames.scroll_menu.scroll(0,x); 
		} 
	} 
} 
	
function scroll_Up() { 
	if(nStop == 0) { 
		if (x < nScrollEnd) { 
			this.frames.scroll_menu.scroll(0,x); 
			x = x + 2; //À§·Î ÀÌµ¿ÇÏ´Â ¼Óµµ
			setTimeout('scroll_Up()', 10); 
		} 
		else { 
			x = nScrollEnd; 
			this.frames.scroll_menu.scroll(0,x); 
		} 
	} 
} 




function sendit() {
  if (document.frm.key.value == "")	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä");
		document.frm.key.focus();
		return false;
  }return true;
}


function del_check(a,num){
	
	if      (num==6){ ans=confirm("ÀÌ µ¥ÀÌÅ¸´Â ¿µ±¸È÷ »èÁ¦µË´Ï´Ù! ±×·¡µµ »èÁ¦¸¦ ÇÏ½Ã°Ú½À´Ï±î?") }
	else if (num==7){ ans=confirm("°Ô½ÃÆÇ ¸ñ·Ï¿¡¼­ ¸µÅ©¸¸ ¾ø¾Û´Ï´Ù. ±×·¡µµ °è¼ÓÇÏ½Ã°Ú½À´Ï±î?") }
	else if (num==8){ ans=confirm("°Ô½ÃÆÇ ¸ñ·Ï¿¡ 'ÀÌ ±ÛÀº »èÁ¦µÇ¾ú½À´Ï´Ù' ¶ó°í Ãâ·ÂµË´Ï´Ù. ±×·¡µµ °è¼ÓÇÏ½Ã°Ú½À´Ï±î?") }
	else if (num==9){ ans=confirm("±ÛÀ» ¿ø»óº¹±¸ ½ÃÅµ´Ï´Ù! ±×·¡µµ °è¼ÓÇÏ½Ã°Ú½À´Ï±î?") }
	else    {         ans=confirm("ÀÌ µ¥ÀÌÅ¸´Â ¿µ±¸È÷ »èÁ¦µË´Ï´Ù! ±×·¡µµ »èÁ¦¸¦ ÇÏ½Ã°Ú½À´Ï±î?") }

	if(ans==true)	{
		var site
		site=a;
		window.location.href=site
	}return 
}
		

function del_pass(a) {
	pass = prompt("±ÛÀÔ·Â½Ã ±âÀçÇÑ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÈÄ È®ÀÎ¹öÆ°À» ´©¸£¼¼¿ä!");
	if(pass != null) {
		var site
		site=a;
		window.location.href=site+"&pass="+pass;
	}return 	
}



/******************************************
* 2002 ³â 4¿ù 22ÀÏÀÚ ÀÛ¼º -  ÂÊÁöº¸³»±â ÆË¾÷Ã¢
******************************************/
function message(toid) {
	if(toid == null || toid == "")
		url="message/write.php"
	else
		url='message/write.php@toid=' + toid ;
	window.open(url,'¸Þ¼¼Áöº¸³»±â','width=330,height=210');
}

function mem_popup(mem_id) {
	if(mem_id == "") 
		window.alert("°Ô½ºÆ®°¡ ÀÛ¼ºÇÑ ±ÛÀÔ´Ï´Ù");
	else
		window.open("member/mem_info.php@memid="+mem_id,"meminfo","width=430,height=360,left=1,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no");
}



//******************************************************************
// 2002 ³â 3¿ù 8ÀÏÀÚ ÀÛ¼º -  ÆË¾÷Ã¢ ¶ç¿ì´Â ¼Ò½ºÄÚµå
//******************************************************************
var IE5=(document.getElementById && document.all)? true : false;
var W3C=(document.getElementById)? true: false;
var currIDb=null, currIDs=null, xoff=0, yoff=0; zctr=0; totz=0;

function trackmouse(evt){
	if((currIDb!=null) && (currIDs!=null)){
		var x=(IE5)? event.clientX+document.body.scrollLeft : evt.pageX;
		var y=(IE5)? event.clientY+document.body.scrollTop : evt.pageY;
			currIDb.style.left=x+xoff+'px';
			currIDs.style.left=x+xoff+10+'px';
			currIDb.style.top=y+yoff+'px';
			currIDs.style.top=y+yoff+10+'px';
		return false;
	}
}

function stopdrag(){
	currIDb=null;
	currIDs=null;
	NS6bugfix();
}

function grab_id(evt){
	xoff=parseInt(this.IDb.style.left)-((IE5)? event.clientX+document.body.scrollLeft : evt.pageX);
	yoff=parseInt(this.IDb.style.top)-((IE5)? event.clientY+document.body.scrollTop : evt.pageY);
	currIDb=this.IDb;
	currIDs=this.IDs;
}

function NS6bugfix(){
	if(!IE5){
		self.resizeBy(0,1);
		self.resizeBy(0,-1);
	}
}

function incrzindex(){
	zctr=zctr+2;
	this.subb.style.zIndex=zctr;
	this.subs.style.zIndex=zctr-1;
}

function createPopup(id, title, width, height, x , y , isdraggable, boxcolor, barcolor, shadowcolor, text, textcolor, textptsize, textfamily ){
	if(W3C){
		zctr+=2;
		totz=zctr;
		var txt='';
		txt+='<div id="'+id+'_s" style="position:absolute; left:'+(x+7)+'px; top:'+(y+7)+'px; width:'+width+'px; height:'+height+'px; background-color:'+shadowcolor+'; filter:alpha(opacity=50); visibility:visible"> </div>';
		txt+='<div id="'+id+'_b" style="border:outset '+barcolor+' 2px; position:absolute; left:'+x+'px; top:'+y+'px; width:'+width+'px; overflow:hidden; height:'+height+'px; background-color:'+boxcolor+'; visibility:visible">';
		txt+='<div style="width:'+width+'px; height:16px; background-color:'+barcolor+'; padding:0px; border:1px">';
		txt+='<table cellpadding="0" cellspacing="0" border="0" width="'+(IE5? width-4 : width)+'">';
		txt+='<tr><td width="'+(width-30)+'">';
		txt+='<div id="'+id+'_h" style="width:'+(width-30)+'px; height:14px; font: bold 12px Tahoma; cursor:move; color:'+textcolor+'"> '+title+'</div>';
		txt+='</td><td width=20 align="center"style="cursor:hand"><a onmousedown="document.getElementById(\''+id+'_s\').style.display=\'none\'; document.getElementById(\''+id+'_b\').style.display=\'none\';return false">';
		txt+='<img src="icon/close.gif" border="0"></a></td></tr></table></div>';
		txt+='<div id="'+id+'_ov" width:'+width+'px; style="margin:10px; color:'+textcolor+'; font:'+textptsize+'pt '+textfamily+';">';
		txt+='<table cellpadding="0" cellspacing="0" border="0" width="'+(IE5? width-6: width)+'" height="'+(IE5? height-25: height-10)+'">';
		txt+='<tr valign=top><td width="'+(width-30)+'">'+text+'<br><br></td></tr>';
		txt+='<tr valign=bottom><td width="'+(width-30)+'">';
		txt+='<form name="lehit['+id+']">'; 
		txt+='<input type="checkbox" name="event">&nbsp;ÇÏ·íµ¿¾È ÀÌ Ã¢À» ¿­Áö¾ÊÀ½'; 
		//txt+='&nbsp;&nbsp;<input class=button style="cursor:hand" type=button value="´Ý±â" onclick="Winclose(\''+id+'\');document.getElementById(\''+id+'_s\').style.display=\'none\'; document.getElementById(\''+id+'_b\').style.display=\'none\';return false">';
		txt+='&nbsp;&nbsp;<input class=button style="cursor:hand" type=button value="´Ý±â" onclick="alert(this.event.checked); document.getElementById(\''+id+'_s\').style.display=\'none\'; document.getElementById(\''+id+'_b\').style.display=\'none\';return false">';
		txt+='</form></td></tr></table></div></div>';
			
		document.write(txt);
		this.IDh=document.getElementById(id+'_h');
		this.IDh.IDb=document.getElementById(id+'_b');
		this.IDh.IDs=document.getElementById(id+'_s');
		this.IDh.IDb.subs=this.IDh.IDs;
		this.IDh.IDb.subb=this.IDh.IDb;
		this.IDh.IDb.IDov=document.getElementById(id+'_ov');
		if(IE5){
			this.IDh.IDb.IDov.style.width=width-6;
			this.IDh.IDb.IDov.style.height=height-22;
			this.IDh.IDb.IDov.style.scrollbarBaseColor=boxcolor;
			this.IDh.IDb.IDov.style.overflow="auto";
		}
		else{
			this.IDh.IDs.style.MozOpacity=.5;
		}
		this.IDh.IDb.onmousedown=incrzindex;
		if(isdraggable){
			this.IDh.onmousedown=grab_id;
			this.IDh.onmouseup=stopdrag;
		}
	}
}

if(W3C)document.onmousemove=trackmouse;
if(!IE5 && W3C)window.onload=NS6bugfix;	
		
//*********************************************************************
// 2002 ³â 3¿ù 8ÀÏÀÚ ÀÛ¼º -  ÆË¾÷Ã¢ - ÀÌ Ã¢À» ÇÏ·íµ¿¾È ¶ç¿ìÁö ¾Ê±â  ÄíÅ°¼³Á¤
//*********************************************************************
function getCookie(name) { 
	var Found = false 
	var start, end 
	var i = 0 

	while(i <= document.cookie.length) { // cookie ¹®ÀÚ¿­ ÀüÃ¼¸¦ °Ë»ö 
		start = i 
		end = start + name.length 
		if(document.cookie.substring(start, end) == name) { // name°ú µ¿ÀÏÇÑ ¹®ÀÚ°¡ ÀÖ´Ù¸é 
			Found = true 
			break 
		} 
	i++ 
	} 
		
	if(Found == true) { // name ¹®ÀÚ¿­À» cookie¿¡¼­ Ã£¾Ò´Ù¸é 
		start = end + 1 
		end = document.cookie.indexOf(";", start) 
		if(end < start) // ¸¶Áö¸· ºÎºÐÀÌ¶ó´Â °ÍÀ» ÀÇ¹Ì(¸¶Áö¸·¿¡´Â ";"°¡ ¾ø´Ù) 
			end = document.cookie.length 
		return document.cookie.substring(start, end) // name¿¡ ÇØ´çÇÏ´Â value°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏÇÑ´Ù. 
	} 
	return "" // Ã£Áö ¸øÇß´Ù¸é 
} 
	
function setCookie( name, value, expiredays ) { 
	var todayDate = new Date(); 
	todayDate.setDate( todayDate.getDate() + expiredays ); 
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
} 
	
function Winclose(id) { 
	middle = "lehit" + id;
	alert(middle);
	
	if ( document.lehit[0].event.checked ) 
	setCookie( id , "no" , 1);
}

-->