if (top.frames.length!=0) {
	if (window.location.href.replace) {
		// if framed
		window.location.replace('<?php echo HTTP_SERVER . HTTP_ROOT; ?>/errors/?mode=hijack');
	} else {
		top.location.href=self.document.href;
	}
}
