//°¡¿îµ¥ popup
function CPopup_Window(purl,pname,pwidth,pheight,ptoolbar,plocation,pstatus,pmenubar,pscrollbars,presizable) {
	var window_left = (screen.width - pwidth) / 2;
	var window_top = (screen.height - pheight) / 2;
	winprops = 'top='+window_top+',left='+window_left+',height='+pheight+',width='+pwidth+',toolbar='+ptoolbar+',location='+plocation+',status='+pstatus+',menubar='+pmenubar+',scrollbars='+pscrollbars+',resizable='+presizable;
	win = window.open(purl, pname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//0,0ÁÂÇ¥¿¡ popup
function LPopup_Window(purl,pname,pwidth,pheight,ptoolbar,plocation,pstatus,pmenubar,pscrollbars,presizable) {
	var window_left = 0;
	var window_top = 0;
	pwidth = pwidth - 10;
	pheight = pheight - 25;
	
	winprops = 'top='+window_top+',left='+window_left+',height='+pheight+',width='+pwidth+',toolbar='+ptoolbar+',location='+plocation+',status='+pstatus+',menubar='+pmenubar+',scrollbars='+pscrollbars+',resizable='+presizable;
	win = window.open(purl, pname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// ¸ð´ÞÃ¢
function Modal_Window(purl,pname,ptop,pleft,pwidth,pheight,phelp,presizable,pstatus,pscroll,pcenter) { 
	if(pcenter=="yes"){
		var pleft = (screen.width - pwidth) / 2;
		var ptop = (screen.height - pheight) / 2;
	}
winprops = 'dialogTop:'+ptop+'px; dialogLeft:'+pleft+'px; dialogWidth:'+pwidth+'px;dialogHeight:'+pheight+'px; help:'+phelp+'; resizable:'+presizable+'; status:'+pstatus+'; scroll:'+pscroll+'; center:'+pcenter+';';
showModalDialog(purl, pname, winprops); 
} 

function swfView(width, height, url){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("width='"+width+"' height='"+height+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' /> ");
	document.write("<param name='movie' value='"+url+"' /> ");
	document.write("<param name='quality' value='high' /> ");
	document.write("<param name='wmode' value='transparent'> ");
	document.write("<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

/*
	-- ÆÄ¶ó¹ÌÅÍ Á¤º¸ --

	width : °¡·ÎÅ©±â
	height : ¼¼·ÎÅ©±â
	url : ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
	fvalues : ÆÄ¶ó¹ÌÅÍ °ª
*/

function swfView2(width, height, url, fvalues){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("width='"+width+"' height='"+height+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' /> ");
	document.write("<param name='movie' value='"+url+"' /> ");
	document.write("<param name='quality' value='high' /> ");
	document.write("<param name='wmode' value='transparent'> ");
	document.write("<param name='flashVars' value='"+fvalues+"'/> ");  
	document.write("<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}
