<!--
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);
}

function openPopup(URL, windowName, width, height, resize, scrollbar, toolbar, menubar, status, left, top){
	if (scrollbar == null || scrollbar == 'undefined'){scrollbar=1;}
	if (left==null || left == 'undefined'){left = (screen.availWidth/2) - (width/2)}
	if (top==null || top == 'undefined'){top = (screen.availHeight/2) - (height/2)}
	var Win = window.open(URL, windowName,'width=' + width + ',height=' + height + ',resizable=' + resize + ',scrollbars=' + scrollbar + ',toolbar=' + toolbar + ',menubar=' + menubar + ',status=' + status + ',left=' + left + ',top=' + top);
	Win.focus();
}

// -->