function checkframes()
{
	if (top.location == self.location)
	{ 
		top.location.replace("http://"+location.hostname+"/index.php?page="+
			escape(self.location.pathname+self.location.search));
		top.location.replace("http://"+location.hostname+"/");
	}
}

window.onload=checkframes;
