var calledAtLeastOnce = 0;
function updateMenu(newBtn) {
    if ((calledAtLeastOnce == 0) && (newBtn != "")) {
        if (parent) {
/*            alert("has 1st parent"); */
	        if (parent.oben) {
/*	            alert("has oben-Frame in 1st parent"); */
                if (parent.oben.setAktBut) {
		            parent.oben.setAktBut(newBtn);
                }
		        parent.hasfocus=true;
	        } else {
		        if (parent.parent) {
/*       	            alert("has 2nd parent"); */
			        if (parent.parent.oben) {
/*	       	           alert("has oben-Frame in 2nd parent"); */
		               if (parent.parent.oben.setAktBut) {
			              parent.parent.oben.setAktBut(newBtn);
			           }
			           parent.parent.hasfocus=true;
			        }
		        }
	        }
	        calledAtLeastOnce = 1;
        }
    }
}
