function flashview (dirNswf,fwidth,fheight,params) {
 var flashobjec="";
 flashobjec+="		<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\' width=\'"+fwidth+"\' height=\'"+fheight+"\'>";
 flashobjec+="      <param name=\'movie\' value=\'"+dirNswf+"\'>";
 flashobjec+="      <param name=\'quality\' value=\'high\'>";
 flashobjec+="      <param name=\'menu\' value=\'false\'>";
 flashobjec+="      <embed src=\'"+dirNswf+"\' width=\'"+fwidth+"\' height=\'"+fheight+"\' quality=\'high\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\' type=\'application/x-shockwave-flash\' menu=\'false\'></embed>";
 flashobjec+="    </object>";

 document.write(flashobjec);
}

// µÚ°¡ ºñÄ¡´Â Åõ¸í¹öÁ¯
function flashview_trans (dirNswf,fwidth,fheight,params) {
 var flashobjec="";
 flashobjec+="		<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\' width=\'"+fwidth+"\' height=\'"+fheight+"\'>";
 flashobjec+="      <param name=\'movie\' value=\'"+dirNswf+"\'>";
 flashobjec+="      <param name=\'wmode\' value=\'transparent\'>";
 flashobjec+="      <param name=\'quality\' value=\'high\'>";
 flashobjec+="      <param name=\'menu\' value=\'false\'>";
 flashobjec+="      <embed src=\'"+dirNswf+"\' width=\'"+fwidth+"\' height=\'"+fheight+"\' quality=\'high\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\' type=\'application/x-shockwave-flash\' menu=\'false\'></embed>";
 flashobjec+="    </object>";

 document.write(flashobjec);
}


function test(){
alert("js ÆÄÀÏ °æ·Î ¸ÂÀ½");
}

function resizeIframe(name)
{     
    try
    {
		var frmMinWidth;
		var frmMinHeight;
		var applyMinSize = false;
		// iframe resize½Ã ÃÖ´ë width, height
		var frmMaxWidth;
		var frmMaxHeight;
		var applyMaxSize = false;

		var NS4;
		var IE4;
		if (document.all)
		{
			IE4 = true;
			NS4 = false;
		}
		else
		{
			IE4 = false;
			NS4 = true;
		}

		if (name == null || name == "")
		{
			name = "imain";
		}
        if (IE4)
            var oBody   = document.frames(name).document.body;
        else
            var oBody = document.getElementById(name).contentDocument.body;
        var oIFrame = document.getElementById(name);
		oBody.setAttribute("topMargin",0);
		oBody.setAttribute("leftMargin",0);

        var frmWidth  = oBody.scrollWidth;
        var frmHeight = oBody.scrollHeight;

        if (applyMinSize)
        {
            frmWidth  = Math.max(frmWidth, frmMinWidth);
            frmHeight = Math.max(frmHeight, frmMinHeight);
        }
        if (applyMaxSize)
        {
            frmWidth  = Math.min(frmWidth, frmMaxWidth);
            frmHeight = Math.min(frmHeight, frmMaxHeight);
        }

        oIFrame.style.height = frmHeight;
        //oIFrame.style.width = frmWidth;
    }
    catch (e) {
		alert(e.description);
	}

	if(top.document.getElementById("Frame2") && document.getElementById("ifrm"))
	{
		try
		{
			var frmMinWidth;
			var frmMinHeight;
			var frmMaxWidth;
			var frmMaxHeight;

			var NS4;
			var IE4;
			if (document.all)
			{
				IE4 = true;
				NS4 = false;
			}
			else
			{
				IE4 = false;
				NS4 = true;
			}

			if (IE4)
				var oBody   = document.body;
			else
				var oBody = document.contentDocument.body;

			var oIFrame = top.document.getElementById("Frame2");
			oBody.setAttribute("topMargin",0);
			oBody.setAttribute("leftMargin",0);

			var frmHeight = oBody.scrollHeight;
		
			oIFrame.style.height = frmHeight;
			//alert(oIFrame);
		}
		catch (e) {
			//alert(e.description);
		}
	}
}
