/*** 3 different scripts to show 3 different tops: location bar; location and menubar and tool bars; none ***/
/*** new script would be needed to have different width and height windows, such as leftPos550, heightPos550, function openWindow550, etc ***/

/*** basic open new window with location bar only ***/

leftPos = 0
heightPos = 0
if (screen) {
leftPos = screen.width-760
heightPos = screen.height-560
}

function openWindow(url) {
    mapwindow = window.open(url, "newwindow", 
        "width=750,height=480,left="+leftPos+",top="+heightPos+",location=yes,scrollbars=yes,resizable=yes,status=yes");
        mapwindow.focus();
}


/*** open new window with location bar, menu bar and tool bar ***/
leftPoschrome = 0
heightPoschrome = 0
if (screen) {
leftPoschrome = screen.width-760
heightPoschrome = screen.height-560
}

function openWindowchrome(url) {
    mapwindow = window.open(url, "newwindow", 
        "width=750,height=480,left="+leftPoschrome+",top="+heightPoschrome+",menubar=yes,location=yes,toolbar=yes,scrollbars=yes,resizable=yes,status=yes");
        mapwindow.focus();
}

/*** open new window with no location or tool bars ***/
/*** the width and height are 600 x 390 ***/
leftPosnone = 0
heightPosnone = 0
if (screen) {
leftPosnone = screen.width-630
heightPosnone = screen.height-490
}

function openWindownone(url) {
    mapwindow = window.open(url, "newwindow", 
        "width=600,height=390,left="+leftPosnone+",top="+heightPosnone+",scrollbars=yes,resizable=yes,status=yes");
        mapwindow.focus();
}


/*** open new window with no location or tool bars ***/
/*** the width and height are 700 x 450 ***/
leftPosnone = 0
heightPosnone = 0
if (screen) {
leftPosnone = screen.width-730
heightPosnone = screen.height-550
}

function openWindownone700(url) {
    mapwindow = window.open(url, "newwindow", 
        "width=700,height=450,left="+leftPosnone+",top="+heightPosnone+",scrollbars=yes,resizable=yes,status=yes");
        mapwindow.focus();
}


/*** basic open new window with location bar only and width 800***/

leftPos = 0
heightPos = 0
if (screen) {
leftPos = screen.width-810
heightPos = screen.height-600
}

function openWindow800(url) {
    mapwindow = window.open(url, "newwindow", 
        "width=800,height=520,left="+leftPos+",top="+heightPos+",location=no,scrollbars=no,resizable=no,status=no");
        mapwindow.focus();
}



function popup(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';

 newwin=window.open(url,'windowname4', params);
 if (window.focus) {newwin.focus()}
 return false;
}

















