function checkurl(neueSprache) {
	var url = parent.frames[1][0].location.pathname;
	var urlTeile = url.split("/");
	if(urlTeile.length == 2) { // das müßte die Hauptseite sein
		if(urlTeile[1] == "mainbody.html") { // das IST die Hauptseite :)
			mainpage = neueSprache+"/index.php";
			parent.frames[1].location.href = mainpage;
		}
	} else if(urlTeile.length == 3) { // eine Sprache ist bereits in den Frames geladen
		if(urlTeile[1] == neueSprache) return false;
		neuePage = neueSprache+"/"+urlTeile[2];
		naviPage = neueSprache+"/bottom.html";
		parent.frames[1][0].location.href = neuePage;
		parent.frames[1][1].location.href = naviPage;
		return false;
	}
	return false;
}

function checkFrameset() {
	if(!parent.lmain) {
		url = location.pathname;
		urlTeile = url.split("/");
		sprache = urlTeile[1];
		seite = urlTeile[2];
		location.href="/index.php?lang="+sprache+"&seite="+seite;
	}	
}
