﻿function popUp(url) {
    newWindow(url,'popupwindow',150,150,'no','no');
}

function imagePopUp(url) {
    newWindow(url,'imagepopup',800,730,'no','no');
}

function cropPopUp(url) {
    newWindow(url, 'crop', 800, 600, 'no', 'no');
}

function printPopUp(url) {
    newWindow(url, 'printversion', 665, 400, 'yes', 'no');
    return false;
}

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)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


