function writeObject(obj_file,width,height,wmode)
{
    var obj_src = "";
    obj_src += "<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+"\">\n";
    obj_src += "  <param name=\"movie\" value=\""+obj_file+"\">\n";
    if(wmode!="")
    {
        obj_src += "  <param name=\"wmode\" value=\""+wmode+"\">\n";
    }
    obj_src += "  <param name=allowScriptAccess value=sameDomain>\n";
	obj_src += "  <param name=\"menu\" value=\"false\">\n";
    obj_src += "  <param name=\"quality\" value=\"high\">\n";
    obj_src += "  <embed src=\""+obj_file+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\"></embed>\n";
    obj_src += "</object>\n";
    
    document.write(obj_src);
}



// È­¸éÁß¾Ó¿¡ »õÃ¢¶ç¿ì±â ÇÔ¼ö
function new_window(url, name, option, width, height, left, top)
{
	var win_width;
	var win_height;

	// »õÃ¢À» À§ÇÑ ÁÂÇ¥°ªÀ» ±¸ÇÑ´Ù.
	if(screen.width < width)
	{
		win_width = 0;
		width = screen.width;
	}
	else
	{
		win_width = (screen.width - width) / 2;
	}

	if(screen.height < height)
	{
		win_height = 0;
		height = screen.height;
	}
	else
	{
		win_height = (screen.height - height) / 2;
	}

	// ¿É¼ÇÃ³¸®
	if(!option)
	{
		option = "resizable=no,scrollbars=yes,menubar=no,status=no";
	}

	if(left)
		win_width = left;

	if(top)
		win_height = top;

	// »õÃ¢À» ¶ç¿î´Ù.
	window.open(url,name,option+',width='+width+',height='+height+',left='+win_width+',top='+win_height);
}


function fn_ShowEmbedObject(OBJ_ELEMENT_ID) {
    //alert(OBJ_ELEMENT_ID.text);
    document.write(OBJ_ELEMENT_ID.text);
    OBJ_ELEMENT_ID.id = "";
}
