//验证首页搜索时，是否有非法字符
function textIsNull(str){   
var patrnn=/['|*|%]/; 
if (!patrnn.exec(str)) return false 
return true
} 

//验证首页搜索
function topcheack(){
var text=document.topform;	
if (text.keytext.value.replace(/ /g,"")=="请输入要搜索的信息"){
	alert("请输入要搜索的信息");
	text.keytext.focus();
	return false;
	}
if (text.keytext.value.replace(/ /g,"")==""){
	alert("搜索内容不能为空,请输入搜索内容");
	text.keytext.focus();
	return false;
	}
if (text.keytext.value.replace(/ /g,"").length < 2){
	alert("搜索内容太少了");
	text.keytext.focus();
	return false;
	}
if (text.keytext.value.replace(/ /g,"").length > 50){
	alert("搜索内容有点长了,为了方便准备的搜索出您所想要的信息,请正确输入搜索内容");
	text.keytext.focus();
	return false;
	}	
if (textIsNull(text.keytext.value)){
	alert("搜索内容有非法字符，请正确输入您要搜索的内容");
	text.keytext.focus();
	return false;
	} 

return true;	
}

function pinlungai(object){
	var form = document.quitform;
	form.re_plgai.value = object;
}

function gs(objid,fonts){
	var objSize=document.getElementById(objid);
	objSize.style.fontSize=fonts+"px";
}

function displays(objid){
	document.getElementById("xs_"+objid).style.display = "block";
}

function nones(objid){
	document.getElementById("xs_"+objid).style.display = "none";
}