function showCalculator(val)
{
    // Open the Mortgage Calculator in a new window
	var iLeft, iTop;
    iLeft = (window.screen.width - 600) / 2;
    iTop = (window.screen.height - 400) / 2;
    val=0.00;
    window.open("Calculator.aspx?Cost=" + val, "MortgageCalculator", "toolbar=no, directories=no, location=no, status=no, scrollbars=yes, menubar=no, resizable=no, width=500, height=250, screenX=" + iLeft + ", screenY=" + iTop + ", left=" + iLeft + ", top=" + iTop, false);
    return false;
}

function showBuilding(url)
{
    // Open the larger Building JPG in a new window
	var iLeft, iTop;
    iLeft = (window.screen.width - 600) / 2;
    iTop = (window.screen.height - 400) / 2;
    window.open(url, "Building", "toolbar=no, directories=no, location=no, status=no, scrollbars=yes, menubar=no, resizable=no, width=500, height=500, screenX=" + iLeft + ", screenY=" + iTop + ", left=" + iLeft + ", top=" + iTop, false);
    return false;
}

function escClose(PeKey)
{
    // If the Escape Key is pressed, close the window
    if (PeKey.keyCode == 27)
    {
        window.close();
    }
}

function showFloorplan(URL) {
	window.open(URL, 'Floorplan', 'scrollbars=no,resizable=no,menu=no,width=620,height=445,top=25,left=25');
}

function showFloorplansPopup(URL) {
	window.open(URL, 'Panoramic', 'scrollbars=no,resizable=no,menu=no,width=620,height=595,top=25,left=300');
}