﻿
function openPopup(url) {
    window.open(url, 'Info', 'scrollbars=yes,resizable=yes,status=no,width=450,height=300,dependent=yes>');
}

// function to show the different content areas
function flipContent(strArea, iHeight) {

    //then flip the relevant section
    if (document.all) {
        //IE version
        if (document.all[strArea].style.visibility == "visible") {
            document.all["arrow_" + strArea].src = "img/arrow-off.gif";
            document.all[strArea].style.height = "1px";
            document.all[strArea].style.visibility = "hidden";
        } else {
            document.all["arrow_" + strArea].src = "img/arrow-on.gif";
            document.all[strArea].style.height = iHeight;
            document.all[strArea].style.visibility = "visible";
        }
    } else {
        //mozilla version
        divArea = document.getElementById(strArea);
        plusName = document.getElementById("arrow_" + strArea);
        if (divArea.style.visibility == "visible") {
            plusName.src = "img/arrow-off.gif";
            divArea.style.height = "1px";
            divArea.style.visibility = "hidden";
        } else {
            plusName.src = "img/arrow-on.gif";
            divArea.style.height = iHeight;
            divArea.style.visibility = "visible";
        }
    }
}


function ShowHide(id) {
    var e = document.getElementById(id);
    if(e.style.display == 'block')
    e.style.display = 'none';
    else
    e.style.display = 'block';
}


