﻿function popUp(url) {
    newWindow(url, 'popupwindow', 150, 150, 'no', 'no');
}

function imagePopUp(url) {
    newWindow(url, 'imagepopup', 800, 730, 'no', 'no');
}

function printPopUp(url) {
    newWindow(url, 'printversion', 640, 400, 'yes', 'no');
}

function fckPopUp(url) {
    newWindow(url, 'fck', 640, 700, 'yes', 'no');
}

function txtPopUp(url) {
    newWindow(url, 'txt', 640, 600, 'yes', 'no');
}

function colorPopUp(url) {
    newWindow(url, 'color', 288, 350, 'no', 'no');
}

function newWindow(mypage, myname, w, h, scroll,resize) {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable=' + resize;
    win = window.open(mypage, myname, winprops);
    win.window.focus(); 
}

