

function check_search(){
	if(document.fs.key.value==""||document.fs.key.value=="请输入电影名称"){
		alert("请输入影片名字");
		document.fs.key.value=""
		document.fs.key.focus()
		return false;	
	}
	return true;
}
function openplay(skin,id,id1,id2,playid,filename,flag,Realurl){
	
	var widthv,heightv,xposition,yposition
	widthv = "500";
	heightv = "465";
	xposition = (screen.width - widthv)/2;
	yposition = (screen.height - heightv)/2;	
	window.open('../../look/PlayList/Play.asp?skin='+skin+'&id='+id+'&id1='+id1+'&id2='+id2+'&playid='+playid+'&filename='+escape(filename)+'&flag='+flag+"&Realurl="+escape(Realurl),'play','toolbar=no,Directories=no,location=no,Status=no,,menubar=no,resizable=no,scrollbars=no,width='+widthv+',height='+heightv+',left='+xposition+',top='+yposition)
}
//window.status=""


function showIndexCate(cataId,objId,tabObj)
{
obj=document.getElementById(objId);
catas=obj.getElementsByTagName("ul");
for(i=0;i<catas.length;i++)
{
catas[i].style.display="none";
}
document.getElementById(cataId).style.display="block";
tabs=tabObj.parentNode.getElementsByTagName("span");
for(i=0;i<tabs.length;i++)
{
tabs[i].className="tab";
}
tabObj.className="event_tab";
}

function selectTag(showContent,selfObj){
var tag = document.getElementById("tags").getElementsByTagName("li");
var taglength = tag.length;
for(i=0; i<taglength; i++){
tag[i].className = "";
}
selfObj.parentNode.className = "selectTag";
for(i=0; j=document.getElementById("tagContent"+i); i++){
j.style.display = "none";
}
document.getElementById(showContent).style.display = "block";
}


var IsLong=false;
function isLock(){
if (!IsLong){
   button1.innerHTML="...<a href=\"javascript:isLock();\"><font color=\"blue\"><u>收缩剧情</u></font></a>";
   contentshow.innerHTML=content.innerHTML;
   IsLong=true;
}else{
   button1.innerHTML="<a href=\"javascript:isLock();\"><font color=\"blue\"><u>详细剧情</u></font></a>";
   contentshow.innerHTML=content.innerHTML.substr(0,220)+"...";
   IsLong=false;
}
}
function tt(){
	if(document.form1.n1[0].checked)
		return true
	else{
		if(document.form1.key.value=="")
			ke="蝙蝠侠"
		else
			ke=document.form1.key.value
		window.open('http://movie.gougou.com/search?id=20116&search='+ke)
		return false
	}
	
}
