<!--
var popWindowRef;
var bermudaURL = "http://www.lookbermuda.net/";


function popOpen(url,name,attributes,id) {
    if (typeof popWindowRef == 'undefined' || popWindowRef.closed) { popWindowRef = window.open(url,name,attributes); }
    if (window.focus) { popWindowRef.focus(); document.getElementById("iframe").src = bermudaURL + "localConnection.htm?mapid="+id; }
}


// doesn't use the local object, simply refreshes the popup window
function refreshOpen(url,name,attributes,id) {
    if (typeof popWindowRef == 'undefined' || popWindowRef.closed) { popWindowRef = window.open(url,name,attributes); }
    if (window.focus) { popWindowRef.focus(); popWindowRef.location.href = url; }
}




function openMap(mapid, client) {
    if (typeof mapid== 'undefined' || mapid == '' )
        mapid = "8000";


    var url = bermudaURL + "bermuda.aspx?id=" + mapid + "&client=" + client;
    //http://www.lookbermuda.net/point.aspx?id=
    if( typeof client == 'undefined' || client == '' )
        refreshOpen(url,'map','toolbar=no,resizable=yes,scrollbars=auto,left=0,top=0,screenX=0,screenY=0,width='+1020+',height='+725+'',mapid)
    else
        popOpen(url,'map','toolbar=no,resizable=yes,scrollbars=auto,left=0,top=0,screenX=0,screenY=0,width='+1020+',height='+725+'',mapid)
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}
// -->




