﻿//Open a popup window for the editor
function openPopup(url) {
    width = 520;
    height = 450;
    x = parseInt(screen.width / 2.0) - (width / 2.0);
    y = parseInt(screen.height / 2.0) - (height / 2.0);

    var win = window.open(url, "editorPopup", "top=" + y + ",left=" + x + ",scrollbars=no,dialog=yes,minimizable=no,modal=yes,width=" + width + ",height=" + height + ",resizable=no");
}

        function changeImg(img) {
            document.getElementById("ctl00_pageText_mainimage").src = img;
            images = document.getElementsByTagName('img');
            for (var i = 0; i < images.length; i++) {
                if (images[i].className == "thumb") {
                    images[i].style.border = '1px solid #a3a66d';
                }
            }
        }
