function testframeset() {
	if ((self == top) || (self.name != "body")) {
		self.location.href = "/index.php?frame=" + escape(self.location.pathname);
	}
}

function testframesetnourl() {
	if (self == top) {
		self.location.href = "/index.php";
	}
}
