
function openPopup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function moviePlayer(name,url,wid,hei)
{
	document.write('<OBJECT classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 id='+name+' name='+name+' width='+wid+' height='+hei+' type=application/x-oleobject standby=Loading Windows Media Player components...>')
	document.write('<PARAM NAME=FileName VALUE='+url+'>')
	document.write('<PARAM NAME=ShowControls VALUE=0>')
	document.write('<PARAM NAME=ShowStatusBar VALUE=0>')
	document.write('<PARAM NAME=AutoRewind VALUE=0>')
	document.write('<PARAM NAME=ShowDisplay VALUE=0>')
	document.write('<PARAM NAME=DefaultFrame VALUE=Slide>')
	document.write('<PARAM NAME=Autostart VALUE=0>')
	document.write('<PARAM NAME=SendMouseClickEvents VALUE=1>')
	document.write('<PARAM NAME=EnableContextMenu value=false>')
	document.write('<PARAM NAME=TransparentAtStart value=-1>')
	document.write('<PARAM NAME=AnimationAtStart value=1>')
	document.write('</object>')
}


function moviePlayerStart(name,url,wid,hei)
{
	document.write('<OBJECT classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 id='+name+' name='+name+' width='+wid+' height='+hei+' type=application/x-oleobject standby=Loading Windows Media Player components...>')
	document.write('<PARAM NAME=FileName VALUE='+url+'>')
	document.write('<PARAM NAME=ShowControls VALUE=0>')
	document.write('<PARAM NAME=ShowStatusBar VALUE=0>')
	document.write('<PARAM NAME=AutoRewind VALUE=1>')
	document.write('<PARAM NAME=ShowDisplay VALUE=0>')
	document.write('<PARAM NAME=DefaultFrame VALUE=Slide>')
	document.write('<PARAM NAME=Autostart VALUE=1>')
	document.write('<PARAM NAME=SendMouseClickEvents VALUE=1>')
	document.write('<PARAM NAME=EnableContextMenu value=false>')
	document.write('<PARAM NAME=TransparentAtStart value=-1>')
	document.write('<PARAM NAME=AnimationAtStart value=1>')
	document.write('</object>')
}


function flashview(url,wid,hei)
{


	document.write('<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='+wid+' height='+hei+' align=middle>')
	document.write('<param name=allowScriptAccess value=sameDomain />')
	document.write('<param name=movie value='+url+' />')
	document.write('<param name=quality value=high />')
	document.write('<param name=bgcolor value=#ffffff />')
	document.write('<embed src='+url+' quality=high bgcolor=#ffffff width='+wid+' height='+hei+' align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer />')
	document.write('</object>')


}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function sitesearchSubmitCheck() {

	var q = document.sitesearch;

	if(q.SiteSearchName.value.length < 2) {
		alert('°Ë»ö³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');		
		q.SiteSearchName.focus();
		return false;
	}
		return true;
}


function searchSubmitCheck() {

	if(document.searchbd.searchName.value.length < 2) {
		alert('°Ë»ö³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');		
		document.searchbd.searchName.focus();
		return false;
	}
		return true;
}

