function SearchGo(obj)
{
	if(document.getElementById("tags").value=="")
	{
	    alert("填写关键字\n by YtDotNetCms");
	    document.getElementById("tags").focus();
	    return false;
	}
	if(obj.chid.value==""||isNaN(obj.chid.value))
	{
	    window.location.href='/Search.html?type='+document.getElementById("type").value +'&tags='+escape(obj.tags.value);
	}
	else
	{
	    window.location.href='/Search.html?type='+document.getElementById("type").value +'&ChID='+escape(obj.chid.value)+'&tags='+escape(obj.tags.value);
	}
}

function CheckUrl(obj,ShowInfo)
{
	var url = window.location.href;
	tempstring = url.split("/")
	
	needstring = url.replace(tempstring[tempstring.length -1],"");
	
	if(obj.href==needstring)
	{
		alert(ShowInfo);
		return false;
	}
	
}

