function  CheckForm()
{  
	var str = document.myform.key.value.replace( /^\s*/, "");
	if(str.length  ==  0 || str == "常见问题在线搜索")  {  
		alert("请填写搜索关键字！");
		document.myform.key.focus();
		return  false;
	}
	var ishave;
	ishave = CheckStr(str);
	if(!ishave) {alert('含非法字符！');return false;}
	return  true;
}

function clean() {
	document.getElementById("key").value=""
}

function add() {
	document.getElementById("key").value="常见问题在线搜索"
}


	function CheckStr(txtValue){
		var forbidChar = new Array("@", "#", "$", "%", "^", "&", "*", "……", "“", "'", "￥", "×", "\"", "<", ">", "’", "”","?","？","!","！");
        for (var i = 0; i < forbidChar.length; i++) {
            if (txtValue.indexOf(forbidChar[i]) >= 0) {
                return false;
            }
        }
        return true;
	}


 	

