_GET=document.location.href.split("#");
_URL=_GET[0];

_SETHASH=new Object();

if(_GET[1]){
	_GET=_GET[1].split("&");
	for(i=0;i<_GET.length;i++){
		vars=_GET[i].split("=");
		if(vars[0]){
			if(vars[1]==null){
				value=1;
			}
			else {
				value=vars[1];
			}
			_SETHASH[vars[0]]=vars[1];
		}
	}
}
_GET=_SETHASH;

function setJSGET(varname,value){
	url=document.location.href.split("#");
	url=url[0]+"#";
	
	_GET[varname]=value;

	for(i in _GET){
		url+=i+'='+_GET[i]+'&';
	}
	if(url[(url.length-1)]=='&'){
		url=url.substr(0,(url.length-1));
	}
	document.location.href=url;	
}
