
	//去掉字符串的空格
  	String.prototype.Trim = function(){
  	
  		return this.replace(/(^\s*)|(\s*$)/g, ""); 
    }  
    
    function checkSearch(){
    	if(document.getElementById("query").value.Trim() == null || document.getElementById("query").value.Trim() == ""){
    		alert("请输入有效的关键字");
    		document.getElementById("query").focus();
    		return false;
    	}
    	document.getElementById("searchForm").submit();
    }