function open_calendar(unit_nm)
{	
	yymmdd = unit_nm
	FR = parent.document.all.div_cal;
  var point = fGetXY(unit_nm);
  with (parent.div_cal.style)
  {
  	left = point.x;
	top  = point.y+unit_nm.offsetHeight+1;
	visibility = 'visible';
  }
}

function xy(a,b)
{	
  var point = fGetXY(a);
  with(b.style)
  {
  	left = point.x;
	top  = point.y+a.offsetHeight;
	display = "block";
  }
}

function fGetXY(aTag){
  var oTmp = aTag;
  var pt = new Point(0,0);
  do {
  	pt.x += oTmp.offsetLeft;
  	pt.y += oTmp.offsetTop;
  	oTmp = oTmp.offsetParent;
  } while(oTmp.tagName!="BODY");
  return pt;
}

function Point(iX, iY)
{
	this.x = iX;
	this.y = iY;
}

function divcenter(lay,h,v)
{

		lay.style.left = (screen.Width/2)-h;
		lay.style.top = (screen.Height/2)-v;
		lay.style.display = "block";
}

function add_list(unit)
{
	if(unit.selectedIndex==1)
	{
		//guk = prompt("ÀÔ·ÂÇØ ÁÖ¼¼¿ä","")
		guk = prompt(".....","")
		if(guk == null)
		{
			unit.selectedIndex = 0
			return;
		}
		if(guk != "" && guk != null)
		{
			Noption=new Option(guk);
			unit.options[unit.length-1]=Noption;
			unit.selectedIndex = unit.length-1;
		}
	}
}

function flash(source,width,height)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'">      <param name="movie" value="' + source + '"><param name="quality" value="high"><param name="wmode" value="transparent"><embed src="' + source + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed></object>');
}