﻿var txtSearch = "请输入搜索内容";
function txtFocus(input)
{
	if(input.value == txtSearch)
	{
		input.value="";
	}
}
function txtBlur(input)
{
	if(input.value=="")
	{
		input.value = txtSearch;
	}
}
function topOnSearchCheckAndSubmit(){
        var topKeyword = document.getElementById("topKeyword").value;
        if (topKeyword == "" || topKeyword == null || topKeyword=="请输入搜索内容") {
            alert("请填写您想搜索的关键词");
			document.getElementById("topKeyword").focus();
            return false;
        }
        else {        
            var nodeSel = document.getElementById("topnodeId");
            var topFieldOptionSel = document.getElementById("topFieldOption");
            window.location.href = "/search.aspx?searchtype=0&Keyword=" + escape(topKeyword);
        }
    }

function jump(aa){
	var str=aa;
	 window.location.href = "/search.aspx?searchtype=0&Keyword=" + escape(aa);
	}

function enterPress(e) { 
if (e.keyCode == 13) { 
login(); 
} 
} 
function login(){ 
//登录验证等 
document.getElementById("topSubmit").click();   
} 

//屏蔽js错误
function ResumeError() {
 return true;}
window.onerror = ResumeError;
