
//调用播放页面代码
function OpenWindow(htmurl,widths,heights)
{
	//alert(htmurl);
   //var paramet = 'toolbar=no,resizable=no,scrollbars=no,width='+ widths + ',height=' + heights;
   //newWindow = window.open(htmurl,"yule21",paramet);
   //newWindow.focus();
}

function getCookie(Name)
{ 
	var search = Name + "="; 
	if(document.cookie.length > 0)
	{ 
		offset = document.cookie.indexOf(search); 
		if(offset != -1)
		{ 
			offset += search.length; 
			end = document.cookie.indexOf(";", offset); 
			if(end == -1) end = document.cookie.length; 
				return unescape(document.cookie.substring(offset, end)); 
		} 
		else return(''); 
	} 
	else return(''); 
}

function play(id)
{
	IEver=navigator.appVersion.substring(navigator.appVersion.indexOf('MSIE')+5,navigator.appVersion.indexOf(';',17));
	if(IEver=="6.0")
    {
      ie6 = true;
      width_add = 10; 
      height_add = 29;
      hand_add = -14;
    }
	else
    {
      ie6 = false;
      width_add = 10;
      height_add = 29;
      hand_add = 14;
    }
	
	if (ie6)
		newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=-1');
	else
		newwindow=window.open('','','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=-1');

	if(getCookie("lookpass")=="")
	{
		//window.resizeTo(440+width_add,428+height_add+hand_add);
		newwindow.resizeTo(800,700);
		newwindow.moveTo((screen.width-800)/2, (screen.height-700)/2);
	}
	else
	{
		//window.resizeTo(440+width_add,428+height_add+hand_add);
		newwindow.resizeTo(660,580);
		newwindow.moveTo((screen.width-600)/2, (screen.height-700)/2);
	}
	newwindow.focus();
	//newwindow.location='playfree.aspx?id1='+id;原来
	//2007-5-30测试  url.asp是新添加的测试页面
	//newwindow.location='url.aspx?id1='+id;  
newwindow.location="http://vod.fj.chinavnet.com/epg/sites/movie/pm_XKLX/spplay.jsp?content_id="+id;
}
}