
function showandcenter(obj,rel) {
	obj.style.position = "absolute";
	obj.style.display = "block";

	width = parseInt(obj.clientWidth);
	height = parseInt(obj.clientHeight);
		
	var w, ycorrection;
	var h = document.documentElement.clientHeight;
	if (rel) {
		w = rel.clientWidth;
		ycorrection = rel.clientTop;
		if (!ycorrection)
			ycorrection = rel.offsetTop;
		if (!ycorrection)
			ycorrection = 0;
	} else {
		rel = document.documentElement;
		w = document.documentElement.clientWidth;
		ycorrection = 0;
	}
	obj.style.left = (parseInt(w)/2 - parseInt(width)/2 + parseInt(document.documentElement.scrollLeft))+"px";
	obj.style.top = (parseInt(h)/2 - parseInt(height)/2 + parseInt(document.documentElement.scrollTop) - ycorrection)+"px";
}



function dropElement(e) {
	if (!e)
		return;
	if (!e.parentNode)
		return;
	if (e.id)
		gebicache[e.id] = null;
	e.parentNode.removeChild(e);
}


function MydropAllElements(e) {
	if (!e)
		return;
	var l = e.childNodes;
	while (l.length) {
		MydropAllElements(l[0]);
		dropElement(l[0]);
	}
}
