// called from single file to modify url for frame loading
function setFrameTarget(target)
{
	if (parent.frames.length == 0) //Gibt es eine Frameset?
	{
		Adresse = String(window.location);
	    Woerter = Adresse.split("/");
	    LastSegment = Woerter[Woerter.length-1];            // aktueller Dateiname
		if (LastSegment != "") {
			window.parent.location.href="index.html?" + target; 
		}
	}
}	

// called from menu to load frame if specified in URL
function loadFrame() 
{
	if (parent.frames.length > 0) 
	{
		Adresse = String(parent.location.href);
		if (Adresse.indexOf("?") >= 0) {
			Woerter = Adresse.split("?");
			LastSegment = Woerter[Woerter.length-1];
			parent.frmMain.location = LastSegment;
		}
	}
}

