<!--
function ShowDetail_rl(FilmName)
{
    //top.location = "detail" + nFilmId + ".html"
	top.location = "http://221.208.76.29:5678/tv/movie_search.aspx?Type=0&Key=" + EnCode(FilmName) ; 
	//top.location = "http://202.97.214.111/project2005/tv/movie_search.aspx?Type=0&Key=" + FilmName; 
}
function ShowDetail(nFilmId, nChannelId)
{
    top.location = "Detail" + nFilmId + ".html"; 

    if(nChannelId=="70")
    {
        top.location= "http://kdhlj.bbvod.net/tv/Detail"+ FilmId +".html"; 
    }
    if(nChannelId=="67")
    {
        top.location= "http://hltv.megajoy.com/Detail"+ FilmId +".html"; 
    }
    if(nChannelId=="77")
    {
        top.location= "http://hljtv.51tv.net/Detail"+ FilmId +".html"; 
    }

    if(nChannelId=="88")
    {
	top.location="http://hlj.snet.tv/html/detail"+FilmId+".html";
    }
    if(nChannelId=="91")
    {
	top.location="http://221.208.76.12:8080/voole/lastPage.do?" +       	"method=getLastPage&film_Id="+nFilmId+"&film_Channel="+nChannelId;
    }
}
function ShowDetailTV(nFilmId, nChannelId)
{
    top.location = "../tv/detail" + nFilmId + ".html"
	//top.location = "MovieInfo.aspx?FilmId=" + nFilmId + "&ChannelId=" + nChannelId; 
}
function ShowMovie(nFilmId, strContentId, nChannelId, FilmName)
{
	window.open("pop/pop.htm", "player", "toolbar=0,width=450,height=306,top=5,left=5");
		
		
		window.location = "http://202.97.214.111/project2005/CNC_play/player/temp.aspx?Filmid=" + nFilmId + "&ChannelType=1&ContentId=" + strContentId + "&ChannelId=" + nChannelId + "&FilmName=" + FilmName + "&back_url=" + window.document.location.href;
		//window.location = "http://221.208.76.45:8000/web/tvb/player/temp.aspx?Filmid=" + nFilmId + "&ChannelType=1&ContentId=" + strContentId + "&ChannelId=" + nChannelId + "&FilmName=" + FilmName + "&back_url=" + window.document.location.href;
}

function ShowFreeMovie(nFilmId, strContentId, nChannelId)
{
		window.open("../player/playFree.aspx?Filmid=" + nFilmId + "&ContentId=" + strContentId + "&ChannelId=" + nChannelId, "player", "toolbar=0,width=450,height=306,top=5,left=5");
}
function ShowPraise(nFilmId,strChannelName,nFilmName)
{
		window.open("http://210.76.63.26:8000/praise_add.asp?Filmid=" + nFilmId + "&ChannelName=" + strChannelName +"&FilmName=" + nFilmName, "praise","width=585,height=250");
}

function TestMovieInfo(item) {
	   var str = /.+MovieInfo.aspx\?FilmId.+/
       if(str.test(item)) return true;
       else return false;
   }
			
function SelectMovie(cmb)
{
	var boxLength		= cmb.length;
	var selectedItem	= cmb.selectedIndex;
	if(cmb.selectedIndex == 0)
		return;
	var selectedText	= cmb.options[selectedItem].text;
	var selectedValue	= cmb.options[selectedItem].value;
	var vals = selectedValue.split(",");
	ShowMovie(vals[0], vals[1], vals[2]);
}	
		
//下载
function SelectDrm(cmb)
{
	var boxLength		= cmb.length;
	var selectedItem	= cmb.selectedIndex;
	if(cmb.selectedIndex == 0)
		return;
	var selectedText	= cmb.options[selectedItem].text;
	var selectedValue	= cmb.options[selectedItem].value;
	var vals = selectedValue.split(",");
	ShowDrm(vals[0], vals[1], vals[2]);
}	

function ShowDrm(nFilmId, strContentId, nChannelId)
{
		window.open("../player/DownloadMovie.aspx?Filmid=" + nFilmId + "&ContentId=" + strContentId + "&ChannelId=" + nChannelId, "drm", "toolbar=0,width=450,height=306,top=5,left=5");	
}

//播放器控制
function ShowFull()
{	
	var obj = MediaPlayer1;
	if(typeof(obj) != "undefined")
	{
		obj.DisplaySize="3";
	}
}
function ShowPlay()
{
	var obj = MediaPlayer1;
	if(typeof(obj) != "undefined")
	{
		obj.play();
	}		
}

function ShowPause()
{
	var obj = MediaPlayer1;
	if(typeof(obj) != "undefined")
	{
		obj.pause();
	}		
}

function ShowStop()
{
	var obj = MediaPlayer1;
	if(typeof(obj) != "undefined")
	{
		obj.stop();
	}		
}

function TurnPage(strCatg,nTypeNo,nPageNo)
{
    self.location="List"+strCatg+nTypeNo+"P"+nPageNo+".html";
/*
//	alert(" i love you");
	MovieChannel.lblPageNo.value     = nPageNo;
//	alert(nPageNo);
//	alert(MovieChannel.lblPageNo.value);
	MovieChannel.submit();				
*/	
}

function TurnPageSearch(strUrl,nPageNo)
{
   self.location=strUrl + "&PageNo=" + nPageNo;
}


//进行查询的函数
function Search()
{
    strVal = MovieSearch.ucSearchForm_srchKey.value;
	
	if(strVal.length == 0)
	{alert("请输入关键字!");MovieSearch.ucSearchForm_srchKey.focus();return;
	}
	document.location = "SearchRslt.aspx?Type=" + MovieSearch.ucSearchForm_srchType.value + "&Key=" + EnCode(strVal) + "&ChannelId=" + MovieSearch.ucSearchForm_srchChannel.value;
}
//蒙一个查询
function Search_meng()
{
    strVal = MovieSearch.ucSearchForm_srchKey.value;
	
	document.location = "SearchRslt.aspx?Type=" + MovieSearch.ucSearchForm_srchType.value + "&Key=" + EnCode(strVal) + "&ChannelId=" + MovieSearch.ucSearchForm_srchChannel.value + "&meng=1";
}


function EnCode(strIn)
{
	strOut = "";
	for(nI=0; nI < strIn.length; nI++)
	{
		switch(strIn.charAt(nI))
		{
			case " ":
				strOut += "%20";
				break;
			case "\"":
				strOut += "%22";
			case "#":
				strOut += "%23";
				break;
			case "%":
				strOut += "%25";
				break;							
			case "&":
				strOut += "%26";
				break;							
			case "+":
				strOut += "%2B";
				break;							
			case ",":
				strOut += "%2C";							
				break;							
			case "/":
				strOut += "%2F";							
				break;							
			case ":":
				strOut += "%3A";
				break;
			case ";":
				strOut += "%3B";
				break;							
			case "<":
				strOut += "%3C";
				break;							
			case "=":
				strOut += "%3D";
				break;							
			case ">":
				strOut += "%3E";
				break;							
			case "@":
				strOut += "%40";
				break;							
			case "`":
				strOut += "%60";
				break;							
			case "\\":
				strOut += "%5C";
				break;							
			case "|":
				strOut += "%7C";
				break;							
			default:
				strOut += strIn.charAt(nI);
		}
	}
	return strOut;
}
-->