function goto_page(id) {
	document.location.href="?id="+id;
}
function goto_url(url) {
	document.location.href=url;
}
function goto_popup(loc) {
	if(loc.search(/\?/) == -1) {
		var url = loc;
		var pars = 'popup=true';
	} else {
		var arr = loc.split(/\?/);
		var url = arr[0];
		var pars = arr[1] + '&popup=true';
	}

	window.open(url + '?' + pars, '');
}
function goto_quicksearch(url, elm) {
    goto_element( url + '&quicksearch=1', $(elm));
}
function goto_search(start, url, elm) {
    document.location.hash = '#'+start;
    goto_element( url + '&ajaxsearch=1', $(elm));
}
function goto_element(url, elm) {
    $(elm).set('html', '<center><img src="res/images_hbi/indicator.gif" style="margin-top:40px;margin-bottom:40px; border:0px;" /></center>');
    $(elm).load($('base').href + url);
    return;
    new Request.HTML({
    	url: $('base').href + url,
    	method: 'post',
    	update: elm,
    	onSuccess: function() {
    	// $(elm).highlight('#EEE');
    	}
    }).send();
}