// generic header JS

window.onerror = null;

// simple load check

function doneLoad() {
        window.status='Design Interact'; return true
        }


// for Netscape window resize bug

var Ver4 = parseInt(navigator.appVersion) >= 4;
var Nav4 = ((navigator.appName == "Netscape") && Ver4);
var IE4 = ((navigator.userAgent.indexOf("MSIE") != -1) && Ver4);

if (Nav4) {
         var origWidth = window.innerWidth;
         var origHeight = window.innerHeight;
}

function restorePage() {
        if (Nav4) {
                 if (origWidth != window.innerWidth || origHeight != window.innerHeight) {
                        top.location.reload();
                }
        }
}
window.onResize = restorePage;

// generic popup window function

function remWin(url,name,parms) {

     var remote = window.open(url,name,parms);
     if (!remote.opener) 
			remote.opener = self;
	 if (window.focus)
     		remote.focus();	 
}
