
function toggleLayer(whichLayer) {
    var style2;
    if (document.getElementById) { // this is the way the standards work        
        style2 = document.getElementById(whichLayer).style;
    } else if (document.all) { // this is the way old msie versions work        
        style2 = document.all[whichLayer].style;
    } else if (document.layers) { // this is the way nn4 works        
        style2 = document.layers[whichLayer].style;
    }
    style2.display = style2.display? "":"block";
}

function showOrHideLayer(whichLayer, shouldShow) {
    var style2;
    if (document.getElementById) { // this is the way the standards work        
        style2 = document.getElementById(whichLayer).style;
    } else if (document.all) { // this is the way old msie versions work        
        style2 = document.all[whichLayer].style;
    } else if (document.layers) { // this is the way nn4 works        
        style2 = document.layers[whichLayer].style;
    }
    style2.display = shouldShow ? "block" : "";
}

function openBrWindow(theURL,winName,features) { //v2.0
    var newWindow = window.open(theURL,winName,features);
    newWindow.focus();
}

function showLargeImage(name) {
    document.largeImage.src = 'photos/' + name + '.jpg';
}

var noSpam = function() {
    if (document.getElementById("noSpam")) {        
        a = document.getElementById("noSpam");
        if (isNaN(a.value) == true) {
            a.value = 0;
        } else {
            a.value = parseInt(a.value) + 1;
        }
    }
    setTimeout("noSpam()", 1000);
}
