

var current_list = "";

function display_trustee(htmltext, target){
	var x = htmltext.indexOf("<body");
	x = htmltext.indexOf(">", x);    
	var y = htmltext.lastIndexOf("</body>"); 
	htmltext = htmltext.slice(x + 1, y);
	if (typeof target == "string") target = document.getElementById(target);
	target.innerHTML =  htmltext;
}


function get_trustee(url, target){
// alert(url + " " + target);
	if (typeof target == "string") target = document.getElementById(target);
	target.innerHTML = "";
	var request = HTTP.newRequest();
	request.onreadystatechange = function() {
		if (request.readyState==4) { 
			if (request.status == 200){
				display_shop(request.responseText, target);
			}
		}
	}
	request.open("GET", url, true);
	request.setRequestHeader("User-Agent", "XMLHttpRequest");
	request.send(null);
	return(false);
}

var current_pop = '';

function ShowPopout(id){
return(Popout(id, '-200px'));
}

function ShowPopout2(id){
return(Popout(id, '-25px'));
}


function HidePopout(id){
	document.getElementById(id).style.position="absolute";
	document.getElementById(id).style.top="1px";
	document.getElementById(id).style.display="none";
	current_pop = "";
return(false);
}


function Popout(id, top){
	if (current_pop != '') { 
		HidePopout(current_pop); 
	}
	document.getElementById(id).style.position="relative";
	document.getElementById(id).style.top=top;
	document.getElementById(id).style.display="block";
	current_pop = id;
return(false);
}



