String.prototype.trim= function()  
{  
    return this.replace(/(^\s*)|(\s*$)/g, "");  
}
function fy(s)
{
	if(s.indexOf(".html")==-1)location.href="?page="+s;
	else location.href=s;
}
function tz(s)
{
	if(s=="")return;
	location.href=s;
}
function check_form()
{
	var key=(document.getElementById("key").value).trim();
	var sb=(document.getElementById("sb").value).trim();
	if(key=="")
	{
		alert('请输入搜索关键字!');
		return false;
	}
	location.href="/search.aspx?key="+encodeURI(key)+"&sb="+sb;
	return true;
}
