
function ShowDetail(nFilmId, nChannelId)
{
	window.open("MovieInfo.aspx?FilmId=" + nFilmId + "&ChannelId=" + nChannelId);
}
function ShowMovie(nFilmId, strContentId, nChannelId)
{
	var l,t,w,h;
	w=450;
	h=300;
	l=(screen.width-w)/2;
	t=(screen.height-h)/2;
	window.open("../player/selectplayer.aspx?Filmid=" + nFilmId + "&ContentId=" + strContentId + "&ChannelId=" + nChannelId, "player", "toolbar=0,resizable=yes,width="+w+",height="+h+",top="+t+",left="+l);
        //window.open("../player/play.aspx?Filmid=" + nFilmId + "&ContentId=" + strContentId + "&ChannelId=" + nChannelId, "player", "toolbar=0,width=510,height=310,top=5,left=5,resizable=yes");
}
function SelectMovie(obj)
{
	var parvalue=obj.value.split(',');
	ShowMovie(parvalue[0],parvalue[1],parvalue[2]);
}
function moviesearch()
{
  var strVal =  document.getElementById("searchkey").value;
  if(strVal.length == 0)
  {
    alert("请输入查询的关键字!");
	document.getElementById("searchkey").focus();
    return false;
  }
  
  //document.location = "../movie/searchrslt.aspx?type=" + document.getElementById("searchtype").value+ "&key=" + escape(strVal);
}
function CheckForm(obj) {
  function trim(str) {
        var str;
        return str.replace(/(^\s*)|(\s*$)/g, "");
   }
   function empty(item) {
       return (item.length==0);
   }
   if(empty(trim(obj.username.value))) {
       alert('请填写用户名');
     return false;
   }
   if(empty(trim(obj.password.value))) {
       alert('请填写密码');
       return false;
   }  
   if(empty(trim(obj.fcode.value))) {
       alert('请填写验证码');
     return false;
   }
   return true;
}