if (self.parent.frames.length == 0 && document.title != "xxx"){
	var loc = document.location.href;
	pDir = loc.split("/");
	var file = pDir.pop();
	if(file == "index.php" || file == "" || file.substr(0,1) == "#" || file == "teilnahme.php" || file == "anmelden.php"){
		pDir.pop();
	}
	pUrl = pDir.join("/")+"/";
	//alert(pUrl);
	self.parent.location=pUrl+"?popurl="+escape(document.location);
}
