//<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
//lion制作于2005.5.12

//按次播放
function vod_single_open(Node_Id,Channel_Id,Program_Id,Volume_Id)
{
    window.open("http://play.city.megajoy.com/player/vod_play.aspx?Promotion_Id=single&Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id + "&Volume_Id=" + Volume_Id ,"影片播放","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=800,height=650,top=10,left=10");
}

//播放
function vod_play_open(Node_Id,Channel_Id,Program_Id,Volume_Id)
{
	window.open("http://x.city.megajoy.com/player/vod_play.aspx?Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id + "&Volume_Id=" + Volume_Id+"&Node_Id="+Node_Id,"版权说明","width=700,height=600,location=yes");
	//window.open("http://play.citycnc.joy.cn/player/banquan.aspx?Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id + "&Volume_Id=" + Volume_Id+"&Node_Id="+Node_Id+"&domain="+document.domain,"版权说明","width=700,height=600,location=yes");
    
}

function vod_play_banquan(Volume_Id,Program_Id,Channel_Id,Node_Id,domain)
{
	window.open("http://x.city.megajoy.com/player/vod_play.aspx?Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id + "&Volume_Id=" + Volume_Id ,"影片播放","toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=1,resizable=1,copyhistory=no,top=10,left=10");
	//window.open("http://play.citycnc.joy.cn/player/vod_play.aspx?Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id + "&Volume_Id=" + Volume_Id+"&domain="+domain ,"影片播放","toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=1,resizable=1,copyhistory=no,top=10,left=10");
}

function vod_play_open_free(Node_Id,Channel_Id,Program_Id,Volume_Id)
{
    window.open("/player/vod_play_free.aspx?Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id + "&Volume_Id=" + Volume_Id ,"影片播放","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=1,resizable=1,copyhistory=no,top=10,left=10");
}

//下载
function vod_down_open(Node_Id,Channel_Id,Program_Id,Volume_Id)
{
    //window.open("/player/vod_down.aspx?Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id + "&Volume_Id=" + Volume_Id ,"影片下载","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1,copyhistory=no,top=10,left=10");
}

//剧情介绍
function vod_tele_Brief_open(Program_Id,page)
{
    window.open("/player/vod_tele_brief.aspx?Program_Id=" + Program_Id + "&page=" + page ,"剧情介绍","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=516,height=625,top=10,left=10");
}

//添加收藏夹
function vod_favorite_open(Channel_Id,Program_Id)
{
    window.open("/player/vod_favorite.aspx?Channel_Id=" + Channel_Id + "&Program_Id=" + Program_Id,"添加收藏夹","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=516,height=625,top=10,left=10");
}

//我要包月
function vod_bao_open()
{
    window.open("http://61.155.39.111:8888/PayByJdkp.aspx" ,"我要包月","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1,copyhistory=no,top=10,left=10");
}

//我要包月24小时免费
function vod_bao_24_open()
{
    window.open("/player/vod_ding_24.aspx" ,"我要包月","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=800,height=520,top=10,left=10");
}

//取消订购
function vod_cancel_open()
{
    window.open("http://61.155.39.111:8080/VnetLogin.aspx?ReturnUrl=http%3a%2f%2fjdtv.chinavnet.com%2f%2fplayer%2fvod_ding.aspx%3fcancel%3dyes" ,"退定","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=800,height=520,top=10,left=10");
}

//验证用户名是否存在
function vod_check_user()
{
	if (frmpost.UserName.value!="")
	{
        window.open("zhuce_user_yz.aspx?UserName=" + frmpost.UserName.value,"用户名验证","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=300,height=200,top=10,left=10");
	}
}

//获得焦点
function vod_button_focus(this_button) 
{ 
    var k = event.keyCode; 
    if (k == 13) 
    { 
		var str = "document.all." + this_button;
		var button_now = eval(str)
        button_now.click(); 
        event.cancelBubble = true; 
        event.returnValue = false; 
    } 
} 

//投票
function vod_vote_dvcool(Program_Id)
{
    window.open("/dvcool/s_vod_vote.aspx?Program_Id=" + Program_Id ,"dvcool投票","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=150,top=10,left=10");
}

//首页弹出提示
function open_help()
{
    //window.open("/other/info/info_2.htm","提示","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=473,height=331,top=10,left=10");
}

//搜索
function search_List(channel_Id)
{ 
	for(i=0;i<3;i++)
	{
		if(document.all.where[i].checked==true)
		{
		 	where=document.all.where[i].value;
		}
	} 
if(where==1&&document.all.keyword.value.length<1)
{
  alert("请填写影片名称");
  document.all.keyword.focus();
  return;
}
else if(where==2&&where==1&&document.all.keyword.value.length<2)
{
  alert("人名必须两个字以上");
  document.all.keyword.focus();
  return;
}
else if(where==3&&where==1&&document.all.keyword.value.length<2)
{
  alert("关键字必须两个字以上");
  document.all.keyword.focus();
  return;
}
	var fold="film";
	switch (channel_Id)
	{
		case "1":
		fold="film";
		break;
		case "2":
		fold="newsreal";
		break;
		case "3":
		fold="teleplay";
		break;
		case "5":
		fold="cartoon";
		break;
		case "6":
		fold="sexlogy";
		break;
		case "8":
		fold="dvcool";
		break;
		case "9":
		fold="free";
		break;
		case "15":
		fold="law";
		break;
		case "18":
		fold="ent";
		break;
		default:
		break;
	}
	if(channel_Id=="0")
	{
	window.location.href='/search/Search_List_Pic.aspx?Channel_Id='+channel_Id+'&where='+where+'&keyword='+document.all.keyword.value;
	}
	else
	{
		window.location.href='/'+fold+'/vod_list_search_result.aspx?Channel_Id='+channel_Id+'&where='+where+'&keyword='+document.all.keyword.value;
	}
	return false;
}