function printFlashObject(flash_src,name,width,height,option_param_tag)
{
  obj_html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>\
  <param name='allowScriptAccess' value='always' />\
  <param name='movie' value='"+flash_src+"' />\
  <param name='quality' value='high' />\
  <param name='wmode' value='transparent'>\
  <param name='menu' value='false'>";

  obj_html = obj_html + option_param_tag;

  obj_html = obj_html + "<embed src='"+flash_src+"' wmode='transparent' quality='high' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='"+name+"' align='middle' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
  </object>";

  document.write(obj_html);
}

function collService(url,param,reFunc){ 
var xmlHttp;
 /* Create a new XMLHttpRequest object to talk to the Web server */
 /*@cc_on @*/
 /*@if (@_jscript_version >= 5)
 try {
   xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
   try {
  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
   } catch (e2) {
  xmlHttp = false;
   }
 }
 @end @*/
 if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
 }
 xmlHttp.open("POST", url, true);

 xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=euc-kr");
 xmlHttp.onreadystatechange = function(){
	 if(xmlHttp.readyState==4&&xmlHttp.status==200){
		var reXML=xmlHttp.responseText;
		reFunc(reXML);
	}
 };
 xmlHttp.send(param);
}

function confirmUpdate(){
	if(xmlHttp.readyState==4&&xmlHttp.status==200){
		var reXML=xmlHttp.responseXML;
		
		return reXML;
	}else {
		alert(11);
		return false;
	}
}


function bluringFCOM(){ if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") event.srcElement.blur(); } 
document.onfocusin=bluringFCOM;

function writeDoc(str) {
	document.write(str);
}


function OpenWin() {
window.open('/new2/main.asp','name','channelmode=yes,scrollbars=yes');
//window.open('/new2/main.asp');
//location.href="/new2/main.asp";
//window.open('new2/main.asp', 'tv', 'width=720,height=486,resizable=no,scrollbars=no,status=no');
}
