function checkFrameset() {

	

	var rootFolder = "/";			// falls index.php nicht direkt in Root liegt: "/ordner/" eintragen

	

	/*alert("host: " + location.host);

	alert("hostname: " + location.hostname);

	alert("href: " + location.href);

	alert("pathname: " + location.pathname);*/

	var site = location.pathname.replace(rootFolder, "");

	//alert ("pathname: " + location.pathname + " | replace >" + rootFolder + "< --> var site: " + site );
	
	
	if(window == top){

		location.href= "http://" + location.hostname + rootFolder + "index.php?page=" + site;

		}

	}