<!--
	MODAL_LAYER = function(id)
	{
		var self = this;
		this.Create = function()
		{
			try
			{
				var div = document.createElement("DIV");
				var body = document.getElementsByTagName("BODY")[0];
				var contents = "";

				contents += "<table cellpadding=0 cellspacing=0 border=1 width='100%' height='100%'>";
				contents += "	<tr>";
				contents += "	<td align='center' valign='middle' >";
				contents += "	<div id='contentsframe' style='border:solid #FFFFFF 0px;display:block;position:absolute;z-index:1'>";
				contents += "	</div>";
				contents += "	</td>";
				contents += "	</tr>";
				contents += "</table>";

				with(div)
				{
					id = "screenLayer";
					style.backgroundImage = "url('/images/dob_bg4.gif')"; 
					//style.filter = "alpha(opacity:80)";
					style.position = "absolute";
					style.top = "0";
					style.left = "0";
					style.width = "100%";
					style.height = "100%";
					style.textAlign = "center";
					style.display = "none";
					innerHTML = contents;
				}
					
				body.appendChild(div);

				return div;
			}
			catch(e)
			{
				alert("¸ð´Þ¸®½º À©µµ¿ì ÄÁÅ×ÀÌ³Ê¸¦ »ý¼ºÇÏ´Âµ¥ ½ÇÆÐÇÏ¿´½À´Ï´Ù.  ERROR:"+e.description);
				return null;
			}
		}

		this.Get = function()
		{
			try
			{
				var scr = document.getElementById("screenLayer");
				if (scr==undefined)
				{
					return this.Create();
				}
				else
				{
					return scr;
				}
			}
			catch(e)
			{
				return this.Create();
			}
		}

		this.Open = function(src, w, h, point)
		{
			var screen = this.Get();
			if (screen==null)
			{
				alert("¸ð´Þ¸®½º À©µµ¿ì ÄÁÅ×ÀÌ³Ê¸¦ Ã£À» ¼ö ¾ø½À´Ï´Ù.   ");
				return;
			}

			try
			{
				with(screen)
				{
					style.width = document.body.scrollWidth;//screen.availWidth-10-10;
					style.height = document.body.scrollHeight;//screen.availHeight-48-10;
					style.display = "block";
				}

				var windowframe = document.getElementById("contentsframe");
				if (point!=undefined)
				{
					windowframe.style.left = point.x;
					windowframe.style.top = point.y;
					windowframe.style.width = w;
					windowframe.style.height = h;
					windowframe.style.overflow = "hidden"; 
				}
				else
				{
					windowframe.style.left = (document.body.clientWidth/2) - (w/2) + document.body.scrollLeft;
					windowframe.style.top = document.body.scrollTop+(parseInt(document.body.clientHeight)/2 - (h/2));
					windowframe.style.width = w;
					windowframe.style.height = h;
					windowframe.style.overflow = "hidden"; 
				}

				windowframe.innerHTML = src;
			}
			catch(e)
			{
				alert("Open ERROR "+e.description);
			}
		}

		this.Hidden = function(reflash)
		{
			var screen = this.Get();
			if (screen==null)
			{
				alert("¸ð´Þ¸®½º À©µµ¿ì ÄÁÅ×ÀÌ³Ê¸¦ Ã£À» ¼ö ¾ø½À´Ï´Ù.   ");
				return;
			}

			if(screen.style.display != "none")
			{
				var windowframe = document.getElementById("contentsframe");
				var nodes = windowframe.childNodes;
				for(var i=0; i<nodes.length; i++)
				{
					nodes[i].style.display="none";
				}
				screen.style.display = "none";
			}

			if (reflash!=undefined && reflash==true)
			{
				location.reload();
			}
		}

		this.Show = function(n,w, h, point)
		{
			var screen = this.Get();
			if (screen==null)
			{
				alert("¸ð´Þ¸®½º À©µµ¿ì ÄÁÅ×ÀÌ³Ê¸¦ Ã£À» ¼ö ¾ø½À´Ï´Ù.   ");
				return;
			}

			try
			{
				with(screen)
				{
					style.width = document.body.scrollWidth;//screen.availWidth-10-10;
					style.height = document.body.scrollHeight;//screen.availHeight-48-10;
					style.display = "block";
				}

				var windowframe = document.getElementById("contentsframe");
				if (point!=undefined)
				{
					windowframe.style.left = point.x;
					windowframe.style.top = point.y;
					windowframe.style.width = w;
					windowframe.style.height = h;
					windowframe.style.overflow = "hidden"; 
				}
				else
				{
					windowframe.style.left = (document.body.clientWidth/2) - (w/2) + document.body.scrollLeft;
					windowframe.style.top = document.body.scrollTop+(parseInt(document.body.clientHeight)/2 - (h/2));
					windowframe.style.width = w;
					windowframe.style.height = h;
					windowframe.style.overflow = "hidden"; 
				}

				var nodes = windowframe.childNodes;
				for(var i=0; i<nodes.length; i++)
				{
					try
					{
						if (n==i)
						{
							nodes[i].style.display="block";
						}
						else
						{
							nodes[i].style.display="none";
						}
					}catch(e){}
				}
			}
			catch(e)
			{
				alert("Open ERROR "+e.description);
			}				
		}

		this.ResizeShow = function(wnd, w, h, point)
		{
			this.Resize(w, h, point);
			var windowframe = document.getElementById("contentsframe");
			var nodes = windowframe.childNodes;
			for(var i=0; i<nodes.length; i++)
			{
				try
				{
					if (wnd==i)
					{
						nodes[i].style.display="block";
					}
					else
					{
						nodes[i].style.display="none";
					}
				}catch(e){}
			}
		}

		this.OpenScroll = function(src, w, h, point)
		{
			this.Open(src, w, h, point);

			var contentsarea = document.getElementById("contentsframe");
				contentsarea.style.overflow = "auto"; 
		}

		this.OpenEx = function(src, w, h, delay, point)
		{
			this.Open(src, w, h, point);
	
			setTimeout(this.timerFunc, delay);
		}

		this.timerFunc = function()
		{
			self.Close();
		}

		this.ResizeOpen = function(src, w, h, point)
		{
			this.Resize(w, h, point);
			var windowframe = document.getElementById("contentsframe");
			windowframe.innerHTML = src;
		}

		this.Resize = function(w, h, point)
		{
			if (point!=undefined)
			{
				var windowframe = document.getElementById("contentsframe");
				windowframe.style.left = point.x;
				windowframe.style.top = point.y;
				windowframe.style.width = w;
				windowframe.style.height = h;
			}
			else
			{
				var windowframe = document.getElementById("contentsframe");
				windowframe.style.left = (document.body.clientWidth/2) - (w/2) + document.body.scrollLeft;
				windowframe.style.top = document.body.scrollTop+(parseInt(document.body.clientHeight)/2 - (h/2));
				windowframe.style.width = w;
				windowframe.style.height = h;
			}
		}

		this.Close = function(reflash)
		{
			var screen = this.Get();
			if (screen==null)
			{
				alert("¸ð´Þ¸®½º À©µµ¿ì ÄÁÅ×ÀÌ³Ê¸¦ Ã£À» ¼ö ¾ø½À´Ï´Ù.   ");
				return;
			}

			if(screen.style.display != "none")
			{
				document.getElementById("contentsframe").innerHTML="";
				screen.style.display = "none";
			}

			if (reflash!=undefined && reflash==true)
			{
				location.reload();
			}
		}

		this.SetContents = function(src)
		{
			var contents = "";
			contents += "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'>";
			contents += "	<tr>";
			contents += "		<td width='16' height='17'><img src='/images/popwinA_01.gif' width='16' height='17' alt=''></td>";
			contents += "		<td height='16' background='/images/popwinA_02.gif'><img src='/images/spacer.gif' width='16' height='17' alt=''></td>";
			contents += "		<td width='15' height='17'><img src='/images/popwinA_03.gif' width='15' height='17' alt=''></td>";
			contents += "	</tr>";
			contents += "	<tr>";
			contents += "		<td width='16' background='/images/popwinA_04.gif'></td>";
			contents += "		<td bgcolor='#FFFFFF' align='center' valign='middle' >"+src+"</td>";
			contents += "		<td width='15' background='/images/popwinA_06.gif'></td>";
			contents += "	</tr>";
			contents += "	<tr>";
			contents += "		<td width='16' height='16'><img src='/images/popwinA_07.gif' width='16' height='16' alt=''></td>";
			contents += "		<td height='16' background='/images/popwinA_08.gif'><img src='/images/spacer.gif' width='16' height='16' alt=''></td>";
			contents += "		<td width='15' height='16'><img src='/images/popwinA_09.gif' width='15' height='16' alt=''></td>";
			contents += "	</tr>";
			contents += "</table>";
			return contents;
		}


	}

//-->