// clear inherited frames
if (parent != self) {
	top.location=self.document.location;
}

// NS4 BROWSER SAFETY
        if (document.layers) {origWidth = innerWidth; origHeight = innerHeight; onresize = reDo;}
        function reDo() {if (innerWidth != origWidth || innerHeight != origHeight) location.reload();}

// POPUP WINDOW CONTROLS
function popcustom(file,title,x,y,sx,sy) {
        popup = window.open(file,title,'width=' + x + ',height=' + y + ',menubar,resizable,scrollbars,screenX=' + sx + ',screenY=' + sy + '');
        if (document.images) {popup.focus();}
}