if( window.top != window ) window.top.location = window.location;

function checkframe(frameObj)
{
	if(document.URL.indexOf("?") != "-1")
	{
		maintarget = document.URL.split("?");
		if (frameObj.src == 'startseite.html' ) {
			frameObj.src = 'http://' + maintarget[1];
		}
	}
}