function CheckForm()
{
	var content;
	if (document.getElementById("searchtext").value=='')
	{
		alert("Please input value!");
		document.getElementById("searchtext").focus();
		return false;
	}
	else
	{
		content=document.getElementById("searchtext").value;
		content=FilterStr(content);
		//form1.action="Search-"+content.replace(/(^\s*)|(\s*$)/g,"")+".aspx";
		form1.action="Search-"+content+".aspx";
		form1.submit();
	}
	function   FilterStr(str)   
	  {  
		var newstr="";
		var splitstr;
		for(var   i=0;i<str.length;i++)   
		{
			splitstr=str.charAt(i);
			if(splitstr.match(/\S/)!=null)   
			{
				if(/[a-zA-Z,0-9,\u4e00-\u9fa5]+/.test(splitstr)) 
					newstr+=str.charAt(i);
			}    
		}  
		return newstr
	  }
}
