function gup(name){
	name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+name+"=([^&#]*)";
	var regex = new RegExp(regexS);
	var results = regex.exec(window.location.href);
	if(results == null) return "";
	else return results[1];
}
function f(){
	//window.open("message.html", "message", "status=1, height=300, width=300, resizable=0");
	
	if(!navigator.javaEnabled()){
		parent.frames["thinkmap"].location="nojava.html";
	}else{
		var query = gup('q');//alert('q: '+window.location.href);
		var ws = gup('s');
		var u = "";
		if(query != ''){
			u = "?q="+query;
			if(ws != ''){
				u = u+"&s="+ws;
			}
		}else if(ws != ''){
			u = "?s="+ws;
		}//alert('u: '+u);
		if(u != ''){parent.frames["thinkmap"].location="tb.jsp"+u;}
	}
}
