var infoWin = null;
function closeInfo() {
    if (infoWin != null) {
        if (!infoWin.closed) {
            infoWin.close();
        }
        infoWin = null;
    }
}
function openInfo(url, winName, flex) { // flex is "yes" or "no" for whether to allow scolling & resising.
    closeInfo();
    infoWin = window.open(url, winName,
        "status=no,width=700,height=480,resizable=" + flex + ",directories=no,scrollbars=" + flex + ",menubar=no,toolbar=no");
}
