function GetQueryValue(name)
{   
	var reg=new   RegExp("(^|&)"+ name +"=([^&]*)(&|$)");   
	var r=window.location.search.substr(1).match(reg);   
	if (r!=null)   return   unescape(r[2]);   
	return ""; 
}
function showOrHind(id)
{
	var obj=document.getElementById(id);
	if(obj.style.display=="block")
		obj.style.display="none";
	else
		obj.style.display="block";
}
function slect(val1,val2)
{
	document.getElementsByName("m")[0].value=val1;
	document.getElementById("searchtype").innerHTML=val2;
	document.getElementById("submoney").style.display="none";
}
document.writeln('<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\">')
document.writeln('<form id=\"SearchForm\" name=\"SearchForm\" method=\"Get\" action=\"/plus/search/\">')
document.writeln('<input type=\"hidden\" name=\"m\" value=\"0\" />')
document.writeln('<tr><td>')
document.writeln('<div class=\"searchtype\" id=\"searchtype\" onclick=\"showOrHind(\'submoney\');\">全部</div>')
document.writeln('<div class=\"s_list t_width\" id=\"submoney\" onmouseover=\"this.style.display=\'block\'\" onmouseout=\"this.style.display=\'none\'\">')
document.writeln('<dl onmouseover=\"this.className=\'dl\'\" onmouseout=\"this.className=\'\'\" onclick=\"slect(\'0\',\'全部\')\">全部</dl>')
if (str!=""){
var arr=str.split(",");
for(var i=0;i<arr.length;i++){
document.writeln('<dl onmouseover=\"this.className=\'dl\'\" onmouseout=\"this.className=\'\'\" onclick=\"slect(\''+arr[i].split("|")[0]+'\',\''+arr[i].split("|")[1]+'\')\">'+arr[i].split("|")[1]+'</dl>')}
}
document.writeln('</div>')
document.writeln('</td><td><input name=\"key\" type=\"text\" class=\"keyword_box\" value=\"请输入关键字\" onBlur=\"javascript:if(this.value==\'\'){this.value=\'请输入关键字\'\;}\" onFocus=\"javascript:if(this.value==\'请输入关键字\'){this.value=\'\'\;}\" /></td><td>')
document.writeln('<input type=\"submit\" class=\"search_bn\" name=\"Submit1\" value=\"\" />')
document.writeln('</td></tr>')
document.writeln('</form>')
document.writeln('</table>')
