function OpenPopup(url, width, height)
{
    var left = (screen.width - width) / 2;
    var top = (screen.height - height) / 2;
    var popUp = window.open(url,'name','height=' + height + ',width=' + width + ', left=' + left + ', top=' + top + ',resizable=no,scrollbars=no,toolbar=no,status=no');

    if (window.focus)
        popUp.focus();
}
