function modhelp(hid) {
    var hdiv = document.getElementById(hid)
    if (hdiv) {
        if (hdiv.style.display == "none") {
            hdiv.style.display = "block";
        } else {
            hdiv.style.display = "none";
        }
    }
}

function ShowPopup(item, popup, path)
{
    var hitem = document.getElementById(item);
    var hp = document.getElementById(popup);

    // Set position of hover-over popup
    hp.style.top = (hitem.offsetTop + 18) + "px";
    hp.style.left = (hitem.offsetLeft + 20) + "px";

    // set the content and the path
    var content = document.getElementById(popup + "_fill");
    content.innerHTML = "<iframe src='" + path + "'></iframe>";

    // Set popup to visible
    hp.style.visibility = "visible";
}

function ShowPopupWithSize(item, popup, path, width, height)
{
    var hitem = document.getElementById(item);
    var hp = document.getElementById(popup);

    // Set position of hover-over popup
    hp.style.top = (hitem.offsetTop + 18) + "px";
    hp.style.left = (hitem.offsetLeft + 20) + "px";

    // set the content and the path
    var content = document.getElementById(popup + "_fill");
    content.innerHTML = "<iframe src='" + path + "' style='width:" + width + "px;height:" + height + "px;'></iframe>";

    // Set popup to visible
    hp.style.visibility = "visible";
}

function HidePopup(popup)
{
    var hp = document.getElementById(popup);
    hp.style.visibility = "hidden";
}