var req;

function loadXMLDoc(url) {
	req = false;
    // branch for native XMLHttpRequest object
    if (window.XMLHttpRequest) {
    	try {
			req = new XMLHttpRequest();
        }
        catch(e) {
			req = false;
        }
    }
    // branch for IE/Windows ActiveX version
    else if (window.ActiveXObject) {
       	try {
        	req = new ActiveXObject("Msxml2.XMLHTTP");
      	}
      	catch(e) {
        	try {
          		req = new ActiveXObject("Microsoft.XMLHTTP");
        	}
        	catch(e) {
          		req = false;
        	}
		}
    }
	if (req) {
		req.onreadystatechange = processReqChange;
		req.open("GET", url, true);
		req.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=euc-kr");
		req.send("");
	}
}

function loadXMLDocPost(url, queryString) {
	req = false;
    // branch for native XMLHttpRequest object
    if (window.XMLHttpRequest) {
    	try {
			req = new XMLHttpRequest();
        }
        catch(e) {
			req = false;
        }
    }
    // branch for IE/Windows ActiveX version
    else if (window.ActiveXObject) {
       	try {
        	req = new ActiveXObject("Msxml2.XMLHTTP");
      	}
      	catch(e) {
        	try {
          		req = new ActiveXObject("Microsoft.XMLHTTP");
        	}
        	catch(e) {
          		req = false;
        	}
		}
    }
	if (req) {
		req.open("POST", url, true);
		req.onreadystatechange = processReqChange;
		req.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=euc-kr");
        //req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		req.send(queryString);
	}
}

var debug_mode = false;

function processReqChange() {
    // only if req shows "loaded"
    if (req.readyState == 4) {
        // only if "OK"
        if (debug_mode)
        {
           document.write(req.responseText);
        }

        eval (req.responseText);

    }
}

function swf(src, width, height)
{
    var str;
    str = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH=' + width + ' HEIGHT=' + height + '>';
    str += '<PARAM NAME=movie VALUE="' + src + '">';
    str += '<PARAM NAME=quality VALUE=high>';
    str += '<PARAM NAME=menu value=false>';
    str += '<PARAM NAME=allowScriptAccess value=always>';
    str += '<EMBED src="' + src + '" quality=high wmode=transparent WIDTH=' + width + ' HEIGHT=' + height + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" allowScriptAccess="always"></EMBED>';
    str += '</OBJECT>';

    document.write(str);
	
}

function swfid(id, src, width, height)
{
    var str;
    str = '<OBJECT id="' + id + '" name="' + name + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" WIDTH=' + width + ' HEIGHT=' + height + '>';
    str += '<PARAM NAME=movie VALUE="' + src + '">';
    str += '<PARAM NAME=quality VALUE=high>';
    str += '<PARAM NAME=menu value=false>';
    str += '<PARAM NAME=allowScriptAccess value=always>';
    str += '<EMBED id="' + id + '" name="' + name + '" src="' + src + '" quality=high wmode=transparent WIDTH=' + width + ' HEIGHT=' + height + ' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" allowScriptAccess="always"></EMBED>';
    str += '</OBJECT>';

    document.write(str);	
}

function SelectAll(name)
{
  if(!name) name = 'check';
  var checked = document.getElementById('allcheck').checked;
  var chk = document.getElementsByName(name+'[]');
  for(var i = 0; i < chk.length; i++)
  {
    chk[i].checked = checked;
  }
}

function SelectAllfile()
{
  var checked = document.getElementById('allcheck').checked;
  var chk = document.getElementsByName('file[]');
  for(var i = 0; i < chk.length; i++)
  {
    chk[i].checked = checked;
  }
}

function GetSelectList(cutter)
{
  var flag = false;
  var result = '';
  if(!cutter)
	  cutter = '|';
  var chk = document.getElementsByName('check[]');
  for(var i = 0; i < chk.length; i++)
  {
    if (chk[i].checked)
    {
      flag = true;

      if (result != '')
        result += cutter;

      result += chk[i].value;
    }
  }

  return result;
}

function GetSelectList2(cutter)
{
  var flag = false;
  var result = '';
  if(!cutter)
	  cutter = '|';
  var chk = document.getElementsByName('check2[]');
  for(var i = 0; i < chk.length; i++)
  {
    if (chk[i].checked)
    {
      flag = true;

      if (result != '')
        result += cutter;

      result += chk[i].value;
    }
  }

  return result;
}

function GetSelectListCount(cutter)
{
  if(!cutter)
	  cutter = '|';
	var count = 0;

  var chk = document.getElementsByName('check[]');
  for(var i = 0; i < chk.length; i++)
  {
    if (chk[i].checked)
    {
		count++;
    }
  }

	return count;
}

function listallcheck(obj)
{
	var lists = document.getElementById('list').getElementsByTagName('input');

	for(var i = 0 ; i < lists.length ; i++)
	{
		if(lists[i].type == 'checkbox')
			lists[i].checked = obj.checked;
	}
}

function paper_process(mode)
{
	var lists = document.getElementsByName('ids[]');
	var result = '';

	for(var i = 0 ; i < lists.length ; i++)
	{
		if(lists[i].type == 'checkbox' && lists[i].checked)
		{
			if(result)
				result += ', ';
			result += lists[i].value;
		}
	}
	
	if(mode != 'send' && !result)
	{
		alert('Ç×¸ñÀ» ¸ÕÀú ¼±ÅÃÇÏ¼¼¿ä');
		return;
	}

	ajax.loadXMLDoc('ajax_paperprocess.php?mode='+mode+'&ids='+result);
}
/////////////////////////////////////////// ÆË¾÷
function OpenViewWindow(id,num)
{	
	if(window.screen.height > 1050)
		var h = 925;
	else if(window.screen.height < 1051 && window.screen.height > 800)
		var h = 850;
	else if(window.screen.height < 801)
		var h = 760;
	else
		var h = 800;

	var win = window.open('', 'view_window', 'width=860 height='+h+' left=0 top=0 scrollbars=yes');
	win.focus();

	var form = document.hidden_form;
	form.id.value = id;
	form.target = 'view_window';
	form.action = '/webhard/view.php?WriteNum=' + num + '&fv=admin';
	form.submit();
}
function OpenViewWindow2(id,num,k)
{	
	if(window.screen.height > 1050)
		var h = 925;
	else if(window.screen.height < 1051 && window.screen.height > 800)
		var h = 850;
	else if(window.screen.height < 801)
		var h = 760;
	else
		var h = 800;

	var win = window.open('', 'view_window', 'width=860 height='+h+' left=0 top=0 scrollbars=yes');
	win.focus();

	var form = document.hidden_form;
	form.id.value = id;
	form.target = 'view_window';
	form.action = '/webhard/view.php?WriteNum=' + num + "&fv="+k;
	form.submit();
}
function OpenViewWindow2c(id,num,k)
{
	var win = window.open('http://www.megafile.co.kr/webhard/view.php?id=' + id + '&WriteNum=' + num + "&fv="+k, 'view_window', 'width=860 height=800 left=0 top=0 scrollbars=yes');
	win.focus();
}
function OpenViewWindow3(id,num,k,mid)
{
	if(window.screen.height > 1050)
		var h = 925;
	else if(window.screen.height < 1051 && window.screen.height > 800)
		var h = 850;
	else if(window.screen.height < 801)
		var h = 760;
	else
		var h = 800;

	var win = window.open('/webhard/view.php?id=' + id + '&WriteNum=' + num + "&fv="+k+"&mid="+mid, 'view_window', 'width=860 height='+h+' left=0 top=0 scrollbars=yes');
	win.focus();
}

function OpenRewriteWindow(id,num)
{
	if (!confirm("ÀÌ¾î¿Ã¸®±â ÇÏ½Ã°Ú½À´Ï±î?\nÀÌ¾î¿Ã¸®±â´Â Ã³À½ ¾÷·ÎµåÇÑ ÆÄÀÏ°æ·Î¿Í\nÇöÀç ÀÌ¾î¿Ã¸®±â ÇÒ ÆÄÀÏÀÇ °æ·Î°¡ °°¾Æ¾ß ÇÕ´Ï´Ù"))
		return;;
	
	var win = window.open('/webhard/rewrite.php?id=' + id + '&WriteNum=' + num + "&fv=admin", 'rewrite_window', 'width=860 height=800 left=0 top=0 scrollbars=yes');
	win.focus();
}

function OpenDownWindow(id)
{
	var win = window.open('down_detail.php?id=' + id, 'down_window', 'width=860 height=800 left=0 top=0 scrollbars=yes');
	win.focus();
}
function OpenViewRealName(type)
{
	if (type)
		window.open('/mypage/nameconfirm.php?type='+type, 'nameconfirm', 'width=600 height=250');
	else
		window.open('/mypage/nameconfirm.php', 'nameconfirm', 'width=600 height=250');
}
function OpenViewRealNameAdd()	//È¸¿ø°¡ÀÔ Ãß°¡Á¤º¸Áß ½Ç¸íÀÎÁõ Ãß°¡ 01/15 ¿À´ö±Ù
{
	window.open('/mypage/nameconfirm.php?flag=join', 'nameconfirm', 'width=600 height=250');
}
function OpenViewWindow3a(id,datek,mode)
{
	var win = window.open('/webhard/inform.php?id=' + id+'&datek='+datek+'&mode='+mode , 'delete_data', 'width=348 height=260 left=0 top=0 scrollbars=no');
	win.focus();
}
////////////////////////////////////////////
var HamtImgTabControl = function(parentid)
{
    this.parentObj = document.getElementById(parentid);

    this.ChangeTabImg = function(selobj)
    {	    
		var imgs = this.parentObj.getElementsByTagName('img');
		for(var i = 0 ; i < imgs.length ; i++)
		{
			this.buttonset(imgs[i], 'out');
		}
		this.buttonset(selobj, 'over');
    }

    this.buttonset = function (obj, mode)
    {
		var filename = obj.src;
		var file = filename.split('/');
		var filepos = '';
		
		for(var i = 0 ; i < file.length-1 ; i++)
			filepos += file[i]+'/';
		
		file = file[file.length-1];

		var exp = file.split('.');
		var temp = exp[0].split('_');

		var contentlayerid = '';

		if(temp.length < 2)
			contentlayerid = exp[0].split('_')[0];
		else
		{
			for(var i = 0 ; i < temp.length-1 ; i++)
			{
				if(contentlayerid)
					contentlayerid += '_';
				contentlayerid += temp[i];
			}
		}

			
		var contentlayerobj = document.getElementById(contentlayerid);
		

		switch(mode)
		{
			case 'over' :
			obj.src = filepos+contentlayerid+'_on.gif';
			if(contentlayerobj)
				contentlayerobj.style.display = 'block';
			break;
			case 'out' :
			if(exp[0].split('_')[1] == 'off')
			break;
			obj.src = filepos+contentlayerid+'_off.gif';
			if(contentlayerobj)
				contentlayerobj.style.display = 'none';
			break;
		}
    }
}

/*********************************************************
Á¦ÀÛÀÚ : ÇÔÆ® 2008. 11. 14

ÆÄ¶ó¸ÞÅ¸ ¼³¸í
 objName : »ý¼ºÇÑ °³Ã¼ ¸í
layerid : ¾×¼ÇÀ» ºÎ¿©ÇÒ ·¹ÀÌ¾î id
xy : x ¶Ç´Â y. °¡·Î ¾×¼ÇÀ» ÁÙ °æ¿ì x, ¼¼·Î ¿¢¼ÇÀ» ÁÙ °æ¿ì yÀÔ·Â.
     xÁ¤ÀÇ½Ã ÀÎ¶óÀÎ ½ºÅ¸ÀÏ·Î width°¡ ¸í½ÃµÇ¾î¾ß ÇÔ. ( <div style='width:300px;'>)
     yÁ¤ÀÇ½Ã ÀÎ¶óÀÎ ½ºÅ¸ÀÏ·Î height°¡ ¸í½ÃµÇ¾î¾ß ÇÔ. ( <div style='height:300px;'>)
[remain] : ¾ÈÁàµµ µÊ. ÁÙ °æ¿ì ¼û±æ¶§ ÁØ ¼ýÀÚ¸¸Å­ÀÇ ÇÈ¼¿À» ³²°ÜµÒ

************************************************************/

var LayerAction = function(objName, layerid, xy, remain)//°³Ã¼¸í, ¸®»çÀÌÁîµÉ ·¹ÀÌ¾î ID, ¼öÁ÷:x or ¼öÆò:y
{
	this.objName = objName;
	this.obj = document.getElementById(layerid);
	this.obj.style.overflow = 'hidden';
	this.xy = xy;

	this.oriwidth = this.obj.style.width.split('px')[0];
	if(!this.oriwidth)
		this.oriwidth = this.obj.offsetWidth;

	this.oriheight = this.obj.style.height.split('px')[0];
	if(!this.oriheight)
		this.oriheight = this.obj.offsetHeight;

	//alert(this.obj.offsetHeight);

	this.tan = 0.9;
	this.speed = 100;

	if(!remain)
		remain = 1;
	this.remain = remain;//¼ÕÀâÀÌ¸¦À§ÇØ ³²°Ü³õÀ» ÇÈ¼¿ ¼ö

	if(this.xy == 'x')
		this.obj.style.width = this.remain+'px';
	else if(this.xy == 'y')
		this.obj.style.height = this.remain+'px';
	this.premode = 'stop';
	this.mode = 'stop';
	this.bg = document.createElement('div');
	this.bg.style.position='absolute';
	this.bg.style.left = '0px';
	this.bg.style.top = '0px';


	this.bg.style.width = '100%';	
	this.bg.style.height = '100%';	

	this.bg.style.display = 'none';
	this.bg.style.top = '0px';
    this.bg.style.background = "#000";
    this.bg.style.opacity = (50/100);
    this.bg.style.MozOpacity = (50/100);
    this.bg.style.KhtmlOpacity = (50/100);
    this.bg.style.filter = 'alpha(opacity=50)';

	//document.getElementsByTagName('body')[0].insertBefore(this.bg,document.getElementsByTagName('body')[0].firstChild);



	this.toggle = function()
	{
		switch(this.premode)
		{
			case 'inc' :
				this.hidden();
				break;
			case 'dec' :
				this.view();
				break;
		}
	}
	this.hidden = function()
	{
		this.bg.style.display = 'none';
		this.mode = 'dec';
		if(this.xy == 'x')
		{
			this.hiddenX();
		}
		if(this.xy == 'y')
		{
			this.hiddenY();
		}
	}
	this.view = function()
	{
		this.bg.style.display = 'block';

		this.mode = 'inc';
		if(this.xy == 'x')
		{
			this.viewX();
		}
		if(this.xy == 'y')
		{
			this.viewY();
		}
	}
////////// private
	this.hiddenX = function()
	{
		if(this.mode != 'dec')
			return;

		var w = this.obj.style.width.split('px')[0];

		
		w *= this.tan;
		if(w > this.remain)//µ¿ÀÛÁß
		{
			this.obj.style.width = w+'px';
			setTimeout(this.objName+'.hiddenX()', this.speed);
			return;
		}
		else
		{
			this.obj.style.width = this.remain+'px';
			this.mode = 'stop';
			this.premode = 'dec';
		}		
	}
	this.hiddenY = function()
	{
		if(!this.remain)
			this.remain = 1;
		if(this.mode != 'dec')
			return;

		var h = this.obj.style.height.split('px')[0];

		
		h *= this.tan;
		if(h > this.remain)//µ¿ÀÛÁß
		{
			this.obj.style.height = h+'px';
			setTimeout(this.objName+'.hiddenY()', this.speed);
			return;
		}
		else
		{
			this.obj.style.height = this.remain+'px';
			this.mode = 'stop';
			this.premode = 'dec';
		}		
	}
	this.viewX = function()
	{
		if(this.mode != 'inc')
			return;

		var w = this.obj.style.width.split('px')[0];
		if(!w)
			w = 1;

		w = parseInt(w) + (this.oriwidth - w) * (1-this.tan);
		if(w < this.oriwidth)//µ¿ÀÛÁß
		{
			this.obj.style.width = w+'px';
			setTimeout(this.objName+'.viewX()', this.speed);
			return;
		}
		else
		{
			this.obj.style.width = this.oriwidth+'px';
			this.mode = 'stop';
			this.premode = 'inc';
		}		
	}
	this.viewY = function()
	{
		if(this.mode != 'inc')
			return;

		var h = this.obj.style.height.split('px')[0];
		if(!h)
			h = 1;

		h = this.oriheight - (this.oriheight-h) * this.tan;

		if(h < this.oriheight)//µ¿ÀÛÁß
		{
			this.obj.style.height = h+'px';
			setTimeout(this.objName+'.viewY()', this.speed);
			return;
		}
		else
		{
			this.obj.style.height = this.oriheight+'px';
			this.mode = 'stop';
			this.premode = 'inc';
		}		
	}
}

function hamtlayerover(e, id)
{
        var x, y;
        if(e)
        {
                //x = e.clientX-80;
               // y = e.clientY-90;
                x = e.clientX-0;
                y = e.clientY-0;
        }
        else
        {
                //x = event.clientX-80;
                //y = event.clientY-90;
                x = event.clientX-0;
                y = event.clientY-0;
        }
        var sy = screen.availHeight-150;


        var obj = document.getElementById(id);
        obj.style.display='block';
        obj.style.left = x+'px';
        obj.style.top = y+'px';
        var h = obj.offsetHeight;

        if((parseInt(y) + parseInt(h)) > sy)
                y = sy-h;

        y += document.documentElement.scrollTop;

        obj.style.left = x+'px';
        obj.style.top = y+'px';

}
function hamtlayerout(id)
{
        var obj = document.getElementById(id);
        obj.style.display='none';
}
function display_toggle(id)
{
    var obj = document.getElementById(id);
    
    obj.style.display = (obj.style.display == 'none') ? 'block' : 'none';
}
//////////// jumin check start
function Trim(string)
   {
    for(;string.indexOf(" ")!= -1;)
    {
     string = string.replace(" ","");
    }
 
    return string;
   }


function check_jumin2(input, input2) 
{
		input.value=Trim(input.value);
		input2.value=Trim(input2.value);
		var left_j=input.value;
		var right_j=input2.value;
		
		if(input.value.length != 6) 
		{
				alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä.');
				input.focus();
				return true;
		}
		if(right_j.length != 7) 
		{
				alert('ÁÖ¹Îµî·Ï¹øÈ£¸¦ Á¤È®È÷ ÀÔ·ÂÇÏ¼¼¿ä.');
				input2.focus();
				return true;
		}
		var i2=0;
		for(var i=0;i<left_j.length;i++) 
		{
				var temp=left_j.substring(i,i+1);
				if(temp<0 || temp>9)  i2++;
		}
		if((left_j==  '') || (i2 != 0)) 
		{
				alert('ÁÖ¹Îµî·Ï¹øÈ£°¡ Àß¸ø ÀÔ·ÂµÇ¾ú½À´Ï´Ù.');
				j_left.focus();
				return true;
		}
		var i3=0;
		for(var i=0;i<right_j.length;i++) 
		{
				var temp=right_j.substring(i,i+1);
				if (temp<0 || temp>9) i3++;
		}
		if((right_j==  '') || (i3 != 0)) 
		{
				alert('ÁÖ¹Îµî·Ï¹øÈ£°¡ Àß¸ø ÀÔ·ÂµÇ¾ú½À´Ï´Ù.');
				input2.focus();
				return true;
		}
		var l1=left_j.substring(0,1);
		var l2=left_j.substring(1,2);
		var l3=left_j.substring(2,3);
		var l4=left_j.substring(3,4);
		var l5=left_j.substring(4,5);
		var l6=left_j.substring(5,6);
		var hap=l1*2+l2*3+l3*4+l4*5+l5*6+l6*7;
		var r1=right_j.substring(0,1);
		var r2=right_j.substring(1,2);
		var r3=right_j.substring(2,3);
		var r4=right_j.substring(3,4);
		var r5=right_j.substring(4,5);
		var r6=right_j.substring(5,6);
		var r7=right_j.substring(6,7);
		hap=hap+r1*8+r2*9+r3*2+r4*3+r5*4+r6*5;
		hap=hap%11;
		hap=11-hap;
		hap=hap%10;
		if(hap != r7) {
				alert('ÁÖ¹Îµî·Ï¹øÈ£°¡ Àß¸ø ÀÔ·ÂµÇ¾ú½À´Ï´Ù.');
				input2.focus();
				return true;
		}
		return false;
}
/////////// jumin check end

//////////// Image Resize & viewer start
// by hamt
function img_resize(e, id, maxwidth, clickflag){
	var imgs = document.getElementById(id).getElementsByTagName('IMG');
	
	for(var i = 0; i < imgs.length; i++) {
	
			
			var w = imgs[i].width;
			var scrollflag = false;
			if(w > screen.width)
			{
				w = screen.width;
				scrollflag = true;
			}
			var h = imgs[i].height;
			if(h > screen.height)
			{
				h = screen.height;
				scrollflag = true;
			}
			if(clickflag)
			{
				var clickevent = "function(){view_pic(document.getElementById(id).getElementsByTagName('IMG')["+i+"], "+w+", "+h+", "+scrollflag+");}";
				if(imgs[i].attachEvent)
				{
				
					eval("document.getElementById(id).getElementsByTagName('IMG')["+i+"].attachEvent('onclick', "+clickevent+");");
				}
				else
				{
					eval("document.getElementById(id).getElementsByTagName('IMG')["+i+"].addEventListener('click', "+clickevent+", false);");
				}
				imgs[i].style.cursor = 'pointer';
			}

	   	 if(imgs[i].width <= maxwidth)
	        continue;

	
	    imgs[i].height = Math.round(imgs[i].height * maxwidth / imgs[i].width);
	    imgs[i].width = maxwidth;
	}
}

function view_pic(imgobj, w, h, scroll)
{

	var picwin = window.open('', 'viewpic', 'width='+w+' height='+h+' scrollbars="auto"');
	picwin.document.write("<head><title>¿øº» ÀÌ¹ÌÁö</title></head><body style='margin:0px;padding:0px;'><img src='"+imgobj.src+"' onclick='self.close()' style='cursor:pointer;' /></body>");
	if(scroll)
		picwin.document.body.scroll = "auto";
}
////////////////
// »ç¿ë¿¹ :
//   window.onload=function(){img_resize(arguments[0], 'contentarea', 500, false);}
//////////////// Image Resize & viewer end


////////////// layer menu start
var HamtPopMenu = function(arrayname, index)
{
	this.index = index;
	this.group = arrayname;
	this.titles = [];
	this.links= [];
	this.stat = false;
	

	this.div = document.createElement('div');
	this.div.style.position = 'absolute';
	this.div.style.backgroundColor = 'gray';
	this.div.style.padding = '1px';
	this.div.style.display = 'none';

	this.sdiv = document.createElement('div');
	this.sdiv.style.backgroundColor = '#ffffff';
	this.sdiv.style.fontSize = '1em';
	this.sdiv.style.borderTop= '1px';
	this.sdiv.style.padding = '10px';
	this.div.appendChild(this.sdiv);

	
	document.getElementsByTagName('body')[0].insertBefore(this.div, document.getElementsByTagName('body')[0].lastChild);

	
	//var evalstr = "document.onmousedown=function(){ if( event.srcElement.toString().indexOf( \"].toggle(\" ) == -1) "+this.group+'['+index+'].hidden_other(-1)'+"; else "+this.group+'['+index+'].hidden_other('+event.srcElement.toString().split('[')[1].split(']')[0]+');}');
	//alert(evalstr);
	//eval(evalstr);
	//eval("document.onmousedown=function(){ "+this.group+'['+index+'].hidden_other(-1)'+"; }");


	this.add = function(title, link, target)
	{
		if(!target)
			target = '';
		this.sdiv.innerHTML += "<div style='color:gray;margin:3px 3px;'>";
		this.sdiv.innerHTML += "<a href='"+link+"' style='color:gray;text-decoration:none;' target='"+target+"' onfocus='blur();'>"+title+"</a></div>";
	}
	this.toggle = function(e)
	{	
		switch(this.stat)
		{
			case true :
				this.hidden(e);
				break;
			case false :
				this.view(e);
				break;
		}
	}
	this.view = function(e)
	{
		if(e)
		{
			var x = e.clientX;
			var y = e.clientY
		}
		else
		{
			var x = event.x;
			var y = event.y;
		}
		x+=10;
		y+= document.body.scrollTop;

		this.div.style.display = 'block';
		this.div.style.left = x+'px';
		this.div.style.top = y+'px';
		this.stat = true;
		this.hidden_other();
	}
	this.hidden = function(e)
	{
		this.div.style.display = 'none';
		this.stat = false;
	}
	this.hidden_other = function(skipindex)
	{
	
		if(!skipindex)
			skipindex = this.index;	
		

		var arr = eval(this.group);
		
		for(var i = 0 ; i < arr.length ; i++)
		{
			if(arr[i] && i != skipindex)
			{
				arr[i].hidden(arguments[0]);
			}
		}
	}
}


var HamtPopMenu2 = function(arrayname, index)
{
	this.index = index;
	this.group = arrayname;
	this.titles = [];
	this.links= [];
	this.stat = false;
	

	this.div = document.createElement('div');
	this.div.style.position = 'absolute';
	this.div.style.backgroundColor = 'gray';
	this.div.style.padding = '0px';
	this.div.style.display = 'none';

	this.sdiv = document.createElement('div');
	this.sdiv.style.backgroundColor = '#ffffff';
	this.sdiv.style.fontSize = '1em';
	this.sdiv.style.borderTop= '0px';
	this.sdiv.style.padding = '0px';
	this.div.appendChild(this.sdiv);

	
	document.getElementsByTagName('body')[0].insertBefore(this.div, document.getElementsByTagName('body')[0].lastChild);


	this.add = function(title, link, target)
	{
		//if(!target)
		//	target = '';    
		//if(link)
		//this.sdiv.innerHTML += "<div><tr><td><a href='"+link+"' style='color:gray;text-decoration:none;' target='"+target+"' onfocus='blur();'>"+title+"</a></td></tr></div>";
	   // else
	    this.sdiv.innerHTML += title;

	}
	this.toggle = function(e)
	{	
		switch(this.stat)
		{
			case true :
				this.hidden(e);
				break;
			case false :
				this.view(e);
				break;
		}
	}
	this.view = function(e)
	{
		if(e)
		{
			var x = e.clientX;
			var y = e.clientY
		}
		else
		{
			var x = event.x;
			var y = event.y;
		}
		x+=10;
		y+= document.body.scrollTop;

		this.div.style.display = 'block';
		this.div.style.left = x+'px';
		this.div.style.top = y+'px';
		this.stat = true;
		this.hidden_other();
	}
	this.hidden = function(e)
	{
		this.div.style.display = 'none';
		this.stat = false;
	}
	this.hidden_other = function(skipindex)
	{
	
		if(!skipindex)
			skipindex = this.index;	
		

		var arr = eval(this.group);
		
		for(var i = 0 ; i < arr.length ; i++)
		{
			if(arr[i] && i != skipindex)
			{
				arr[i].hidden(arguments[0]);
			}
		}
	}
}


/*  »ç¿ë ¿¹ 
<s cript>
var menu = [];
menu[10] = new HamtPopMenu('menu', 10);
menu[10].add('title1', 'link1');
menu[10].add('title222', 'link2');
menu[10].add('title33333', 'link3');
< /s cript>
<a href="" onclick="menu[10].toggle(arguments[0]);return false;">kkkk</a>
<br>

<script>
menu[17] = new HamtPopMenu('menu', 17);
menu[17].add('asdf', 'link1');
menu[17].add('adsf222', 'link2');
menu[17].add('adsf33333', 'link3');
</s cript>
<a href="" onclick="menu[17].toggle(arguments[0]);return false;" onfocus='blur();'>kkkk</a>

<br>

//»ç¿ë ¿¹ ³¡ */
////////////// layer menu end










/**********************************************************************************************
            ·¹ÀÌ¾î ÆË¾÷ ¸ðµâ            - 07. 2. 13  by Hamt -



¸ðµç ÆäÀÌÁö¿¡ ÀÎÅ¬·çµå µÇ´Â ÆÄÀÏ¿¡ ÀÌ ¼Ò½º¸¦ Ãß°¡ÇÑ´Ù. 

<!-- new popup start -->
<div id="dialogbackgroundlayer" style="display:none;position:absolute;z-index:11;" onclick="win.dialog_close()">
</div>
<div id="dialoglayer" style="display:none;position:absolute;z-index:12;">
</div>
<div id=message style="display:none;position:absolute;left:0px;top:0px;padding:3px;background:#cc0000;color:#ffffff;font-size:13px;font-weight:bold;z-index:100;"></div>
<script>
var win = new new_popup();
</script>
<!-- new popup end -->


alert : win.in_alert('Alert Message');
popup : win.dialog_open('webpage url', width, height, script);
popup(Post) : win.dialog_open_post('url', querystring, width, height, script);
/***********************************************************************************************/

var popup_req = false;//for popup ajax
var popup_script = false;//dialog_open ³×¹øÂ° ÀÎÀÚ·Î ·¹ÀÌ¾î ÆË¾÷Ã¢À» ¶ç¿î Á÷ÈÄ ½ÇÇàÇÒ ½ºÅ©¸³Æ® °ª
var in_alertcount = 0;
function new_popup()
{
    this.agent_name = navigator.userAgent.toLowerCase();
    this.is_ie = ((this.agent_name.indexOf("msie") != -1) && (this.agent_name.indexOf("opera") == -1));
    this.is_gecko = navigator.product;

    this.position_x = 0;
    this.position_y = 0;

    this.dlg_bg = document.getElementById('dialogbackgroundlayer');
    this.dlg = document.getElementById('dialoglayer');
    this.msg = document.getElementById('message');

    this.dlg_bg.style.left = '0px';

    this.dlg_bg.style.top = '0px';
    this.dlg_bg.style.background = "#000";
    this.dlg_bg.style.opacity = (50/100);
    this.dlg_bg.style.MozOpacity = (50/100);
    this.dlg_bg.style.KhtmlOpacity = (50/100);
    this.dlg_bg.style.filter = 'alpha(opacity=50)';
    this.dialog_open = function(url, w_width, w_height, run_script) {
		var height = document.body.clientHeight;
		if (this.is_gecko) 
		    height += 70;

		if (!w_height) 
		    w_height = document.documentElement.scrollTop + 170;

		this.dlg_bg.style.height = height + 'px';
		this.dlg_bg.style.width = '100%';
		this.dlg_bg.style.display = '';

		this.dlg.style.left = "50%";
		this.dlg.style.top = w_height + "px";
		this.dlg.style.marginLeft = w_width/2*-1+"px";
		if (run_script)
			popup_script = run_script;
		else
			popup_script = false;

		if(url.length) this.load(url);
		this.dlg.style.display = '';

	}

    this.dialog_open_post = function(url, querystring, w_width, w_height, run_script) {
		var height = document.body.clientHeight;
		if (!w_height) w_height = 170;
		if (this.is_gecko) height += 10;
	
		this.dlg_bg.style.height = height + 'px';
		this.dlg_bg.style.display = '';

		this.dlg.style.left = "50%";
		this.dlg.style.top = w_height + "px";
		this.dlg.style.marginLeft = w_width/2*-1+"px";
		if (run_script)
			popup_script = run_script;
		else
			popup_script = false;

		this.load_post(url, querystring);
		this.dlg.style.display = '';

	}
	
    this.dialog_close= function() {
		this.dlg_bg.style.display = 'none';
		this.dlg.style.display = 'none';
		this.dlg.innerHTML = '';
	}

    this.in_alert = function(message) {
		this.msg.innerHTML = message;
		this.msg.style.display = '';
		this.msg.style.top = document.documentElement.scrollTop+'px';
		window.setTimeout(this.in_alert_hidden, 2000);
		in_alertcount++;
	}
    this.in_alert_hidden = function() {
		in_alertcount--;
		if(!in_alertcount)
			document.getElementById('message').style.display = 'none';
	}

    this.load = function(url) {
		popup_req= false;
		// branch for native XMLHttpRequest object
		if (window.XMLHttpRequest) {
			try {
				popup_req = new XMLHttpRequest();
			}
			catch(e) {
				popup_req = false;
			}
		}
		// branch for IE/Windows ActiveX version
		else if (window.ActiveXObject) {
			try {
				popup_req = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e) {
				try {
					this.req= new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch(e) {
					popup_req  = false;
				}
			}
		}
		if (popup_req ) {

			popup_req.onreadystatechange = this.processPopup;
			popup_req.open("GET", url, true);
			popup_req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");
			popup_req.send("");
		}
    }
    this.load_post = function(url, querystring) {
		popup_req= false;
		// branch for native XMLHttpRequest object
		if (window.XMLHttpRequest) {
			try {
				popup_req = new XMLHttpRequest();
			}
			catch(e) {
				popup_req = false;
			}
		}
		// branch for IE/Windows ActiveX version
		else if (window.ActiveXObject) {
			try {
				popup_req = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e) {
				try {
					this.req= new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch(e) {
					popup_req  = false;
				}
			}
		}
		if (popup_req ) {
			popup_req.onreadystatechange = this.processPopup;
			popup_req.open("POST", url, true);
			popup_req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");
			popup_req.send(querystring);
		}
    }	
    this.processPopup = function() {
		// only if req shows "loaded"
		var obj = document.getElementById('dialoglayer');
		if (popup_req.readyState == 4) {
			if (popup_req.status == 200)
			{
				obj.innerHTML = popup_req.responseText;
			}
			else
			{
				eval(popup_req.responseText);
			}
		
			if (popup_script)
				eval(popup_script);
		}
    }
}
/////////////////////////////////////////////////////////////////////////////

function OpenHelpWindow(id)
{
	if(!id)
		window.open('/customer/help.php', 'help', 'width=' + 665 + ' height=' + 680 + ' scrollbars=' + 'no');
	else
		window.open('/customer/help.php?mode=' + id, 'help', 'width=' + 665 + ' height=' + 680 + ' scrollbars=' + 'no');
}
function OpenFriendWindow(loginid)
{
	window.open('/user/pop_adduser.php?loginid='+loginid, 'adduser', 'width=600 height=240');
}
function OpenFriendGroupWindow()
{
	window.open('/user/pop_addgroup.php', 'addgroup', 'width=' + 500 + ' height=' + 250 + ' scrollbars=' + 'no');
}
function OpenBlockUserWindow()
{
	window.open('/user/pop_blockuser.php', 'blockuser', 'width=' + 500 + ' height=' + 250 + ' scrollbars=' + 'no');
}
function OpenWindow(url, name, width, height, scrollbars)
{
	window.open(url, name, 'width=' + width + ' height=' + height + ' scrollbars=' + scrollbars);
}
function send_paper(loginidlist)
{
	window.open('/paper/send.php?loginidlist='+loginidlist, 'sendpaper', 'width=600, height=400');
}
//2009³â 3¿ù 2ÀÏ Ãß°¡(ÀÌ¿ëÀç)
function send_paper1(loginidlist, num)
{
	window.open('/paper/send.php?loginidlist='+loginidlist+'&num='+num, 'sendpaper', 'width=600, height=400');
}
function send_paperc(loginidlist)
{
	window.open('/paper/send2.php?loginidlist='+loginidlist, 'sendpaper', 'width=600, height=400');
}
function send_paper_admin(loginidlist)
{
	//admin ÂÊÁö º¸³»±â 02/02 Ãß°¡
	//alert(loginidlist);
	window.open('/paper/send_admin.php?loginidlist='+loginidlist, 'sendpaper', 'width=600, height=550');
}

function send_paper_admin_by_mode(loginidlist, mode, value)
{
	window.open('/paper/send_admin.php?mode=' + mode + '&extravalue=' + value + '&loginidlist='+loginidlist, 'sendpaper', 'width=600, height=550');
}

function send_paper_alluser()
{//ÀÓÀÇÈ¸¿ø ÂÊÁö º¸³»±â 03/05 Ãß°¡
	//alert(loginidlist);
	window.open('/paper/send_alluser.php', 'sendpaper', 'width=600, height=420');
}

function send_paper_content(id)
{	
	var list = GetSelectList();

	if (list == '')
	{
		alert('¼±ÅÃµÈ Ç×¸ñÀÌ ¾ø½À´Ï´Ù');
		return;
	}

	window.open('/paper/send_content.php?check=' + list, 'sendpaper', 'width=600, height=420');
}

function webhard_write(params)
{
	if(params)
		params = '?'+params;
	else
		params = '';
	window.open('/webhard/write.php'+params, 'webhard', 'width=860, height=800, top=0, left=0, scrollbars=yes');
}

function webhard_modify(params)
{
	if(params)
		params = '?'+params;
	else
		params = '';
	window.open('/webhard/modify.php'+params, '', 'width=860, height=800, top=0, left=0, scrollbars=yes');
}

function webhard_modify2(params)
{
	if(params)
		params = '?'+params;
	else
		params = '';
	window.open('datacopy.php'+params, '', 'width=1300, height=800, top=0, left=0, scrollbars=yes');
}

function webhard_modify3(params)
{
	if(params)
		params = '?'+params;
	else
		params = '';
	window.open('datacopy2.php'+params, '', 'width=1300, height=800, top=0, left=0, scrollbars=yes');
}

function OpenBuyitemWindow()
{
	window.open('/webhard/buy_item.php', 'buyitem', 'width=600, height=345');
}


function ViewContent(id)
{
	var c = document.getElementById('divContent' + id);
	var c2 = document.getElementById('divContent' + id + '_2');

	c.style.display = 'none';
	c2.style.display = '';
}

function ViewContent2(id)
{
	var c = document.getElementById('divContent' + id);
	var c2 = document.getElementById('divContent' + id + '_2');

	c.style.display = '';
	c2.style.display = 'none';
}

function ViewSubcategoryLayer(id)
{
	var spans = document.getElementById('allsubcategorylayer').getElementsByTagName('ul');

	for(var i = 0; i < spans.length; i++)
		spans[i].style.display = 'none';

	document.getElementById('subcategorylayer' + id).style.display = '';
}

function run_check()
{
	var c = document.getElementById('clickcheck');
	if (c)
	{
		if (c.value == 1)
		{
			alert('´Ù¿î·Îµå Ã³¸® ÁøÇàÁßÀÔ´Ï´Ù. Àá½Ã¸¸ ±â´Ù·ÁÁÖ½Ê½Ã¿ä.');
			return false;
		}
		else
		{
			c.value = 1;
		}
	}

	return true;
}

function clear_run_check()
{
	var c = document.getElementById('clickcheck');
	if (c)
	{
		c.value = 0;
	}
}

function cashdown(id)
{
	//alert('´Ù¿î·Îµå ¿äÃ»ÀÌ ¸¹½À´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ½ÃµµÇØÁÖ½Ê½Ã¿ä');
	//return;

	if (run_check() == false) return;
	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=cash&id=' + id);
}

function cashdown2(id)
{
	//alert('´Ù¿î·Îµå ¿äÃ»ÀÌ ¸¹½À´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ½ÃµµÇØÁÖ½Ê½Ã¿ä');
	//return;

	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=cash2&id=' + id);
}

function coupondown(id)
{
	//alert('´Ù¿î·Îµå ¿äÃ»ÀÌ ¸¹½À´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ½ÃµµÇØÁÖ½Ê½Ã¿ä');
	//return;
	
	if (run_check() == false) return;
	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=coupon&id=' + id);
}

function pointdown(id)
{
	//alert('´Ù¿î·Îµå ¿äÃ»ÀÌ ¸¹½À´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ½ÃµµÇØÁÖ½Ê½Ã¿ä');
	//return;
	
	if (run_check() == false) return;
	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=point&id=' + id);
}
function wishlist(id)
{
//    if (confirm('Âò ÇÏ½Ã°Ú½À´Ï±î?'))
    	ajax.loadXMLDoc('/webhard/ajax_wishlist.php?id=' + id);
}

function staticservice(id)
{
	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=usestatic&id=' + id);
}
function buy(id)
{
	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=usecash&id=' + id);
}
function coupon(id)
{
	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=usecoupon&id=' + id);
}
function point(id)
{
	ajax.loadXMLDoc('/webhard/ajax_downloadlogcheck.php?mode=usepoint&id=' + id);
}
function changeagent(id)
{
	ajax.loadXMLDoc('ajax_changeagent.php?agent=' + id);	
}


function chkMemoChange(obj, limit) 
{
	var result = true;
	if (lenByte(obj.value)>limit) 
	{
		alert(limit+"Byte±îÁö¸¸ ÀÔ·ÂÇÒ ¼ö ÀÖ½À´Ï´Ù. "); 
		obj.value=leftByte(obj.value, limit);
		result = false;
	} 
	return result;
}
function doMemoChange(limit) 
{
	var result = true;
	var f;
	for(i=0;i<document.forms.length;i++)
	{
		f = document.forms[i];
		if(f.content)
		{
			break;
		}
	}
	return chkMemoChange(f.content, limit);
}
function lenByte(str) {
	var wLen=0;
	for(i=0;i<str.length;i++) {
		ch=str.charAt(i);
		if (escape(ch).length > 4) wLen=wLen+2;
		else wLen=wLen+1;
	}
	return wLen;
}
function leftByte(str, len) {
	var wLen=0;
	var buffer="";
	for(i=0;i<str.length;i++) {
		ch=str.charAt(i);
		if (escape(ch).length > 4) wLen=wLen+2;
		else wLen=wLen+1;
		if (wLen>len) { break;	}
		else buffer += ch;
	}
	return buffer;
}


function OpenMegaboxWindow(id,url,domain)
{
	if(!id)
		url = 'random.php';
	if(!url)
		url = 'index.php';
	if(!domain)
		domain = '';
	var win = window.open(domain+'/megabox/'+url+'?mid=' + id, 'megabox_window', 'width=989, height=900, left=0, top=0, scrollbars=yes, resizable=yes, style=overflow-x:hidden;');
	win.focus();
}

function OpenBadReport(id)
{
	window.open('/webhard/badreport.php?id=' + id, '', 'width=600, height=600, scrollbars=yes');
}

function adultk_check(type)
{	
	document.location.href = '/main/index.php';
	if(confirm('¼ºÀÎÀÎÁõÀÌ ÇÊ¿äÇÕ´Ï´Ù.\n¼ºÀÎÀÎÁõ ÇÏ½Ã°Ú½À´Ï±î?'))
	{
		if( type == 'adultmodify' )
		{
			window.open('/mypage/adultcheck.php?type=adultmodify', 'adultmodify', 'width=600, height=290');
		}
		else
		{
			window.open('/mypage/adultcheck.php', 'adultcheck', 'width=600, height=290');
		}
	}

}

function adultblock_check(type)
{
	window.open('/webhard/children_safety_popup.php','children_safety_popup','width=460, height=300');
	//alert('È¸¿ø´Ô²²¼­´Â ¼ºÀÎÄÁÅÙÃ÷ Â÷´Ü¼³Á¤À» ÇÏ¼ÌÀ¸¹Ç·Î ¼ºÀÎÄ«Å×°í¸®¸¦\n\nÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.\n\n¹®ÀÇ»çÇ×Àº °í°´¼¾ÅÍ·Î ¿¬¶ôÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.');
	if( type == 'list' )
	{}
	else
	{
		document.location.href = '/main/index.php';
	}
}

function adultk_check2()
{		
	document.location.href = '/main/index.php';
	alert('È¸¿ø´Ô²²¼­´Â ¹Ì¼º³âÀÚÀÌ¹Ç·Î ¼ºÀÎÄ«Å×°í¸®¸¦ ÀÌ¿ëÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.\n\n¹®ÀÇ»çÇ×Àº °í°´¼¾ÅÍ·Î ¿¬¶ôÁÖ½Ã±â ¹Ù¶ø´Ï´Ù. °¨»çÇÕ´Ï´Ù.');
}


function hamtlayeroverList(id, no, userid)
{
	var obj = document.getElementById(id);
	obj.style.display='';
	
	var left_no	= event.x+15;
	var	top_no	= event.y+1 + document.body.scrollTop;
	
	obj.style.left = left_no;
	obj.style.top = top_no;

	var table;
	table = "<table border='0' cellspacing='0' cellpadding='0'>";
	table += "<tr height='27'>";
	table += "<td width='5' background='http://img.megafile.co.kr/images/board/user_menu_tit_01.gif'></td>";
	table += "<td width='90' background='http://img.megafile.co.kr/images/board/user_menu_tit_02.gif' align='center' style='font-size:10pt; color:white;'><b>"+userid+"</b></td>";
	table += "<td width='5' background='http://img.megafile.co.kr/images/board/user_menu_tit_03.gif'></td>";
	table += "</tr>";
	table += "<tr>";
	table += "<td colspan='3' height='24' background='http://img.megafile.co.kr/images/board/user_menu_megabox.gif' style='cursor:hand;' onclick='OpenMegaboxWindow("+no+");'></td>";
	table += "</tr>";
	table += "<tr>";
	table += "<td colspan='3' height='1' background='http://img.megafile.co.kr/images/board/user_menu_line.gif'></td>";
	table += "</tr>";
	table += "<tr>";
	table += "<td colspan='3' height='26' background='http://img.megafile.co.kr/images/board/user_menu_friend.gif' style='cursor:hand;' onclick='OpenFriendWindow(\""+userid+"\");'></td>";
	table += "</tr>";
	table += "<tr>";
	table += "<td colspan='3' height='1' background='http://img.megafile.co.kr/images/board/user_menu_line.gif'></td>";
	table += "</tr>";
	table += "<tr>";
	table += "<td colspan='3' height='25' background='http://img.megafile.co.kr/images/board/user_menu_paper.gif' style='cursor:hand;' onclick='send_paper(\""+userid+"\");'></td>";
	table += "</tr>";
	table += "</table>";

	document.getElementById('userbox').innerHTML = table;
}

function hamtlayeroutList(id)
{
	var obj = document.getElementById(id);
	obj.style.display = 'none';

	obj.style.left = -100;
	obj.style.top = -100;
}

document.onmouseup = function()
{	
	if(document.getElementById('box_div') && document.getElementById('box_div').style.display != 'none')
		hamtlayeroutList('box_div');
}

function setPng24(obj)
{	
	if(navigator.appVersion.indexOf('MSIE 6')>0)
	{
		obj.width=obj.height=1;
		obj.className=obj.className.replace(/\bpng24\b/i,'');
		obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
		obj.src='';
		return '';
	}
}



function overmenu(menu,type)
{
	if(type == 'over')
	{
		menu.src = menu.src.replace('.gif','_on.gif');
	}
	else if(type == 'out')
	{
		menu.src = menu.src.replace('_on.gif','.gif');
	}
}

function overtabmenu(menu,type,type2)
{
	if(type == 'over')
	{
		menu.id = menu.id.replace('_off','_on');
	}
	else if(type == 'out' && type2 == 'off')
	{
		menu.id = menu.id.replace('_on','_off');
	}
}