var HTMLFILEEXTENSION = ".html";

function LoadPage(SeiteURL, Rubrik) {
	var url = top.location.href;
	var regexp = "/(" + Rubrik + ").htm/g";
	if(url.search(eval(regexp))<0) {
		top.location.href = "../" + Rubrik + HTMLFILEEXTENSION + "?" + SeiteURL;
	}
	else top.OedpLiContentFrame.location.href = SeiteURL;
}

function LoadContent() {
	var args = top.location.search;
	var regexp = /\?(\w.+)/;
	regexp.exec(args);
	args = RegExp.$1;
	if(args != "") {
		// top.history.back();
		top.OedpLiContentFrame.location.href = "../content/" + RegExp.$1;
	}
}

function checkFrames() {
	// sind die Frames zum content vorhanden?
}

function checkFramesTop() {
	if(!eval(top.OedpLiContentFrame)) {
		top.location.href = "../";
	}
}
