
self.name = "Main"

/* function openNewWindow(URLtoOpen, windowName, windowFeatures) {
    newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
} */

function NewWindow( mypage, myname, w, h, scroll ) {
    var winl = ( screen.width - w ) / 2;
    var wint = ( screen.height - h ) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
    win = window.open( mypage, myname, winprops )
    popup = 1
    if ( parseInt( navigator.appVersion ) >= 4 ) { win.window.focus(); }
}

/* function popWin(url, name){
	win = window.open (url, name,"width=800,height=500,scrollbars=yes,toolbar=yes,location=yes,menubar=yes,resizable=yes,status=yes");
	popup = 1
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
} */

/* function CloseWindow() {
    // javascript is so roynel... no isset??? WTFIUWT?
    var popup = 0; // until I can get the CloseWindow() calls out of the body tags...
    if ( popup == 1 ) {
        win.close();
    }
} */

/* var newwin; */

/* function launchwin(winurl,winname,winfeatures)  {
    // This launches a new window and then
    // focuses it if window.focus() is supported.
    newwin = window.open( winurl, winname, winfeatures );
    if( javascript_version > 1.0 )  {
        // delay a bit here because IE4 encounters errors
        // when trying to focus a recently opened window
        setTimeout( 'newwin.focus();', 500 );
    }
} */

