// OCX °ü·Ã °øÅë ½ºÅ©¸³Æ® ÆÄÀÏ


function PrintEmbed(EmbID) 
{ 
	var textareaObj = document.getElementById(EmbID);
//	if(textareaObj != null) 
	    document.write(textareaObj.value);
}


function insertFlash (sFileName, nWidth, nHeight) {
	var sWidth = "500";
	var sHeight = "100";

	if(nWidth != null) sWidth = nWidth + "";
	if(nHeight != null) sHeight = nHeight + "";

	var strFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+sWidth+"' height='"+sHeight+"' align='middle'>";
	strFlash += "<param name='allowScriptAccess' value='sameDomain' />";
	strFlash += "<param name='movie' value='" + sFileName + "' />";
	strFlash += "<param name='quality' value='high'/>";
	strFlash += "<param name='wmode' value='transparent'/>";
	strFlash += "<embed src='" + sFileName + "' quality='high' width='" + sWidth + "' height='" + sHeight + "' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' swliveconnect='true'/>";
	strFlash += "</object>";
//	alert("File : " + sFileName + " Width : " + sWidth + ", Height : "+ sHeight);
	document.write(strFlash);
}


// Flash publish
function swfprint(furl,fwidth,fheight,transoption)	{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ fwidth +'" height="' + fheight +'" align="middle">');
	document.write('<param name="movie" value="'+ furl +'"/>');
	if (transoption == "t")	{
		document.write('<param name="wmode" value="transparent"/>');
	} else if	(transoption == "o")	{
		document.write('<param name="wmode" value="opaque"/>');
	}
	document.write('<!-- Hixie method -->');
	document.write('<!--[if !IE]> <-->');
	document.write('<object type="application/x-shockwave-flash" data="'+ furl +'" width="'+ fwidth +'" height="' + fheight +'"');
	if (transoption == "t")	{
		document.write(' wmode="transparent"');
	} else if	(transoption == "o")	{
		document.write(' wmode="opaque"');
	}
	document.write('></object>');
	document.write('<!--> <![endif]-->');
	document.write('</object>');
}

function insertFlashWithVars (sFileName, nWidth, nHeight, sVars) {
	var sWidth = "500";
	var sHeight = "100";

	if(nWidth != null) sWidth = nWidth + "";
	if(nHeight != null) sHeight = nHeight + "";

	var strFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+sWidth+"' height='"+sHeight+"' align='middle'>";
	strFlash += "<param name='allowScriptAccess' value='sameDomain' />";
	strFlash += "<param name='movie' value='" + sFileName + "' />";
	strFlash += "<param name='quality' value='high'/>";
	strFlash += "<param name='wmode' value='transparent'/>";
	strFlash += "<param name='FlashVars' value='"+sVars+"'/>";
	strFlash += "<embed src='" + sFileName + "' quality='high' width='" + sWidth + "' height='" + sHeight + "' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' swliveconnect='true'/>";
	strFlash += "</object>";
//		alert("File : " + sFileName + " Width : " + sWidth + ", Height : "+ sHeight);
	document.write(strFlash);
}



function insertLoginFlash (sFileName) {
	var strFlash = "<div id='loginSwfDiv' style='position:absolute; left:100px;top:300px; width:200;height:200px; visibility:hidden'>";
	strFlash += "<table border='0' width='500' height='100'>";
	strFlash += "<tr>";
	strFlash += "<td>";
	strFlash += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='660' height='370' align='middle' id='_loginFlash'>";
	strFlash += "<param name='allowScriptAccess' value='sameDomain' />";
	strFlash += "<param name='movie' value='<%=CURRENT_IMAGE_SERVER%>/comm/logIn.swf' />";
	strFlash += "<param name='quality' value='high'/>";
	strFlash += "<param name='wmode' value='transparent'>";
	strFlash += "<embed id='_loginFlash' src='"+sFileName+"' quality='high' width='660' height='370' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' swliveconnect='true'/>";
	strFlash += "</object>";
	strFlash += "</td>";
	strFlash += "</tr>";
	strFlash += "</table>";
	strFlash += "</div>";
	document.write(strFlash);
}

