function free(uid,bid)
{
	if((uid==0)||(uid==""))
	{
		alert("您还没有登陆，请登陆后再操作!");	
		return false;
	}
	window.open('/gurubear-cn/engbook_content_movie.php?pId='+bid, '', 'width=970, height=710, scrollbars=yes');
}
function read(uid,bid,tid)
{
	
	if(tid == 1)
	{
		if((uid==0)||(uid==""))
		{
			alert("您还没有登陆，请登陆后再操作!");	
			return false;
		}
		var url = "/ebook_content_movie.php?read=2&pId="+bid;
		window.open(url, '', 'width=970, height=710, scrollbars=yes');
	}
	else if(tid == 4)
	{
		if((uid==0)||(uid==""))
		{
			alert("您还没有登陆，请登陆后再操作!");	
			return false;
		}
		var url = "/engbook_content_movie.php?read=2&pId="+bid;
		window.open(url, '', 'width=970, height=710, scrollbars=yes');
	}
	else if(tid == 10)
	{
		var url = "/mp3_content_movie.php?read=2&pId="+bid;
		window.open(url, '', 'width=300, height=70,scrollbars=yes');
	}
	
}
function read_free(uid,bid,tid)
{
	if(tid == 1)
	{
		if((uid==0)||(uid==""))
		{
			alert("您还没有登陆，请登陆后再操作!");	
			return false;
		}
		var url = "/ebook_content_movie.php?pId="+bid;
		window.open(url, '', 'width=970, height=710, scrollbars=yes');
	}
	else if(tid == 4)
	{
		if((uid==0)||(uid==""))
		{
			alert("您还没有登陆，请登陆后再操作!");	
			return false;
		}
		var url = "/engbook_content_movie.php?pId="+bid;
		window.open(url, '', 'width=970, height=710, scrollbars=yes');
	}
	else if(tid == 10)
	{
		var url = "/mp3_content_movie.php?pId="+bid;
		window.open(url, '', 'width=300, height=70, scrollbars=yes');
	}
	
}
function read_free_30(uid,bid,tid)
{
	if((uid==0)||(uid==""))
	{
		alert("您还没有登陆，请登陆后再操作!");	
		return false;
	}
	if(tid == 1)
	{
		var url = "/ebook_content_movie.php?pId="+bid;
	}
	else if(tid == 4)
	{
		var url = "/engbook_content_movie_30.php?pId="+bid;
	}
	window.open(url, '', 'width=720, height=486, scrollbars=yes');
}
function monthly(uid,bid,tid)
{
	if((uid==0)||(uid==""))
	{
		alert("您还没有登陆，请登陆后再操作!");	
		return false;
	}
	if(tid == 1)
	{
		var url = "/ebook_content_movie.php?read=3&pId="+bid;
	}
	else if(tid == 4)
	{
		var url = "/engbook_content_movie.php?read=3&pId="+bid;
	}
	window.open(url, '', 'width=970, height=710, scrollbars=yes');
}
function _gObj(id)
{
	return document.getElementById(id);
}


//tom 合作修改js
function read_free_tom(bid,tid)
{
	if(tid == 1)
	{
		var url = "/ebook_content_movie_tom.php?pId="+bid;
	}
	else if(tid == 4)
	{
		var url = "/engbook_content_movie_tom.php?pId="+bid;
	}
	else if(tid == 7)
	{
		var url = "/animebook_content_movie_tom.php?pId="+bid;
	}
	window.open(url, '', 'width=970, height=710, scrollbars=yes');
}
