<!--

  var layername = 'hy_layer_div'

	function hy_layer_action(name, status)
	{
		var obj = document.all[name];

		if (typeof(obj) == 'undefined') {
			return;
		}

		if (status) {
			obj.style.visibility = status;
		} else {
			if(obj.style.visibility == 'visible')
				obj.style.visibility='hidden';
			else
				obj.style.visibility='visible';
		}
	}


	function hy_memoLayer(id)
	{
		var obj = document.all[layername];
		var x, y;
		var body = "";
		var height = 0;

		x = event.clientX + document.body.scrollLeft - 20;
		y = event.clientY + document.body.scrollTop - 10;
		obj.style.posLeft = x;
		obj.style.posTop = y;

		if (id) {
			body += "<tr onmouseover=this.style.backgroundColor='#ffffff' onmouseout=this.style.backgroundColor='#e5e5e5' onmousedown=\"window.open('/HyAdmin/memo.php?mode=write&mo_recv_mb_id="+id+"', 'mbmemo', 'left=50,top=50,width=500,height=410,scrollbars=1');\"><td height=20>&nbsp;&nbsp;ÂÊÁöº¸³»±â&nbsp;&nbsp;</td></tr>";
			height += 20;
		}

		if (body) {
			var layer_body = "<table border=0 width=100%><tr><td colspan=3 height=10></td></tr><tr><td width=5></td><td bgcolor=222222 style='cursor:hand'><table border=0 cellspacing=0 cellpadding=3 width=100% height=100% bgcolor=e5e5e5>"+body+"</table></td><td width=10></td></tr><tr><td colspan=3 height=10></td></tr></table>";
			obj.innerHTML = layer_body;
			obj.style.width = 115;
			obj.style.height = height;
			obj.style.visibility='visible';
		}
	}
	
function hy_init_layer(layername)
	{
		document.writeln("<div id="+layername+" style='position:absolute; left:1px; top:1px; width:1px; height:1px; z-index:1000; visibility: hidden' onmousedown=\"hy_layer_action('"+layername+"', 'hidden')\" onmouseout=\"hy_layer_action('"+layername+"', 'hidden')\" onmouseover=\"hy_layer_action('"+layername+"', 'visible')\">");
		document.writeln("</div>");
	}
	
	hy_init_layer('hy_layer_div');
	
-->
