function checkFrameExistance() {
	if (parent.frames.length == 0) {
		if (arguments.length == 0) {
			location.href = "index.php?page=" + location.href.substr(location.href.lastIndexOf("/") + 1);
		} else {
			location.href = "index.php?page=" + arguments[0];
		}
	}
}
