
function search() {
    var url = "";
    if (document.getElementById('searchContent').value != "") {
        url = baocuo_dir+'search.asp?key=' + escape(document.getElementById('searchContent').value) + '&ty1=' + document.getElementById('searchChannel').value;
    }
    else {
        url=baocuo_dir+'search.asp?q=1';
    }
    var formId = "searchForm";
    var form = document.getElementById(formId);
    form.setAttribute("method", "get");
    form.setAttribute("target", "_blank");
    form.setAttribute("action", url);
    form.submit();
}


function KeyDown(e) {
    return false;
    if (window.event) // IE   
    {
        keynum = e.keyCode;
    }
    else if (e.which) // Netscape/Firefox/Opera   
    {
        keynum = e.which;
    }
    if (keynum == 13) {
        e.keyCode ? e.keyCode = 9 : e.which = 9;
       // search();
    }
}


function fEvent(sType, oInput) {
    switch (sType) {
        case "focus":
            oInput.isfocus = true;
            oInput.style.backgroundColor = '#FFFFD8';
        case "mouseover":
            oInput.style.borderColor = '#99E300';
            break;
        case "blur":
            oInput.isfocus = false;
            oInput.style.backgroundColor = "";
        case "mouseout":
            if (!oInput.isfocus) {
                oInput.style.borderColor = '#A1BCA3';
            }
            break;
    }    
}
function movei_list_nav_list(v){
	if(v!=""){
		document.getElementById("movei_list_nav_list").innerHTML="<ul><li>搜索关键词：<font color=red>"+v+"</font></li></ul>"
		Get_Index_(10001)
	}
}

function Get_Index_(v){
	var ii
	for(var i=0;i<document.getElementById("nav_list_menu").childNodes.length;i++){
		ii=	document.getElementById("nav_list_menu").childNodes[i].childNodes[0];
		ii.className=""
	}
	var s=document.getElementById("headli_ndtv_"+v)
	if(s)
		document.getElementById("headli_ndtv_"+v).childNodes[0].className="current"
}
function $_(id){return document.getElementById(id)}
var IsLong=false;
function isLock(){
	if (!IsLong){
	   $_("button1").innerHTML="...<a href=\"javascript:isLock();\"><font color=\"blue\"><u>收缩剧情</u></font></a>";
	   $_("plot_movie_k_Id").innerHTML=$_("plot_movie_k_Id2").innerHTML+'<span id="button1"><a href="javascript:isLock();"><font color="blue"><u>收缩剧情</u></font></a></span>';
	   IsLong=true;
	}else{
	   $_("button1").innerHTML="<a href=\"javascript:isLock();\"><font color=\"blue\"><u>详细剧情</u></font></a>";
	   $_("plot_movie_k_Id").innerHTML=$_("plot_movie_k_Id2").innerHTML.substr(0,220)+"..."+'<span id="button1"><a href="javascript:isLock();"><font color="blue"><u>详细剧情</u></font></a></span>';
	   IsLong=false;
	}
}
