function MM_findObj(n, d) 
{ 

  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); return x;
}

function MM_showHideLayers() { 
 var i,p,v,obj,args=MM_showHideLayers.arguments;
 for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
   obj.visibility=v; }
}

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 MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function MM_swapImgRestore() 
{ 

  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 openPOP(url)
{
    window.open(url,'','top=30,left=50,width=458,height=560');
}



function go()
{

	var frm = document.login;
	if ( frm.log_id.value == "" ){
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.log_id.focus();
		return false;
	}else if ( frm.log_pass.value == "" ){
		alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");
		frm.log_pass.focus();
		return false;
	}else{
		frm.action="/main/login_action.php";
	}
}

function go1()
{

	if(login.log_id.value == '' || login.log_pass.value == '')

	{

		alert('¾ÆÀÌµð³ª ÆÐ½º¿öµå¸¦ ³Ö¾îÁÖ½Ê½Ã¿À');
	
		document.login.log_id.focus();
	
		return false;
	
	}
	
	else
	
	{
	
	login.action="./login_action1.php";
	
	}
}

function OpenTV(mode,dir,sub,file,user,id_dum)
{

	var dir;

	var file;
	var id = id_dum;
	var url = "/vod/fi_tv.html?av="+mode+"&bi="+sub+"&cd=c&df=d&dir="+dir+"&file="+file+"&ss_u_id="+user+"&id="+id;
	open(url,"showtv","resizable=yes,scrollbars=no,width=540,height=400");



}

function IOpenTV(mode,dir,sub,file)
{

	var dir;

	var file;

	var url = "http://www.kofam.org/vod/fi_tv.html?av="+mode+"&in=ok&bi="+sub+"&cd=c&df=d&dir="+dir+"&file="+file;

	open(url,"showtv","resizable=no,scrollbars=no,width=550,height=410");

}

function Seargo()
{
	if(SearchFRM.q_sk.value=="°Ë»ö¾îÀÔ·Â"){
		SearchFRM.q_sk.value="";
	}

	//SearchFRM.action="./index1.html?file=pds&fla=fla7&sear=aa&subfile=index.php";
	SearchFRM.action="/pds/notes/index.php";

}

function boseargo()
{

	SearchBook.action="./index1.html?file=mall&fla=fla4&sear=ok&subfile=index.php";

}

function MM_openBrWindow1(theURL) { //v2.0

		window.open(theURL,"pop4","scrollbars=yes, scrolling=yes,width=507,height=300");

}

function MM_openBrWindow(theURL) { //v2.0

		window.open(theURL,"pop5","scrollbars=no ,scrolling=no,width=400,height=460");

}

function MM_openBrWindow22(theURL) { //v2.0

		window.open(theURL,"pop6","scrollbars=no ,scrolling=no,width=450,height=240");

}

function indexpop1(theURL) { //v2.0

		window.open(theURL,"pop1","resizable=no,scrolling=yes,width=500,height=600");
}
function indexpop4(theURL) { //v2.0

		window.open(theURL,"pop3","resizable=no, scrolling=auto, scrollbars=yes, width=567,height=600");

}
function indexpop2() { //v2.0

		window.open('hongbo.html',"pop2","resizable=no,scrolling=yes,width=300,height=400");

}

function  OepnGuidePop(Urlval)
			
{

		window.open(Urlval,'GuidePOPUP','scrollbars=yes,scrolling=yes,width=507,height=440');

}

function  indexpop3(Urlval)
			
{

		window.open(Urlval,'GuidePOPUP','scrollbars=yes,scrolling=yes,width=700,height=600');

}

function enter()
{

	key = event.keyCode;

	if(key == 13)

	{

		go();
	
	}
}

function playIt()
{	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) 
	{	
		MPlayerradio.Play();	
		play.style.visibility = "visible";
		pause1.style.visibility = "hidden";
		stop.style.visibility = "hidden";
		imsi.style.visibility = "hidden";


	} 
	else 
	{	document.MPlayerradio.Play();
		play.style.visibility = "visible";
		pause1.style.visibility = "hidden";
		stop.style.visibility = "hidden";
		imsi.style.visibility = "hidden";
	}
}

  
function pauseIt()
{	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) 
	{	if (MPlayerradio.PlayState == 2)
		{	
			MPlayerradio.pause();
			pause1.style.visibility = "visible";
			play.style.visibility = "hidden";
			stop.style.visibility = "hidden";
		}
	} 
	else 
	{	if (document.MPlayerradio.GetPlayState() == 2)
		{	
			document.MPlayerradio.Pause();
			pause1.style.visibility = "visible";
			play.style.visibility = "hidden";
			stop.style.visibility = "hidden";
		}		
	}
}

function stopIt()
{	if ((navigator.userAgent.indexOf('IE') > -1) && (navigator.platform == "Win32")) 
	{	MPlayerradio.Stop();
		MPlayerradio.currentPosition = 0;
		stop.style.visibility = "visible";
		pause1.style.visibility = "hidden";
		play.style.visibility = "hidden";
		imsi.style.visibility = "hidden";
	} 
	else 
	{	document.MPlayerradio.Stop();
		document.MPlayerradio.CurrentPosition=0;
		stop.style.visibility = "visible";
		pause1.style.visibility = "hidden";
		play.style.visibility = "hidden";
		imsi.style.visibility = "hidden";
	}
}

