function openWindow(width, height, url) {
    if (screen) {
        x = (screen.availWidth - width)/2;
        if (screen.availWidth > 1800) {
            x = ( (screen.availWidth/2) - width )/2;
        }
        y = (screen.availHeight - height)/2;
    } else {
        x = (640 - width)/2;
        y = (480 - height)/2;
    }
    props = 'width=' + width + ', height=' + height;
    props += ', screenX='+ x +', screenY='+ y +', top='+ y +', left='+ x;
    props += ', toolbar=no, scrollbars=no, status=no, resizable=no, fullscreen=no';
    win = window.open(url, 'dummyLabel', props);
    win.focus();
}



