function centeredPopUp_main(pPage) {
    var iMyWidth;
    var iMyHeight;
    //gets top and left positions based on user's resolution so hint window is centered.
    iMyWidth = (window.screen.width/2) - (200 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyHeight = (window.screen.height/2) - (130 + 30); //half the screen height minus half the new window height (plus title and 5 pixel bottom).
    var win2 = window.open(pPage,"Window2","status=no,height=320,width=400,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
    win2.focus();
}

function centeredPopUp_main2(pPage) {
    var iMyWidth;
    var iMyHeight;
    //gets top and left positions based on user's resolution so hint window is centered.
    iMyWidth = (window.screen.width/2) - (250 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyHeight = (window.screen.height/2) - (210 + 30); //half the screen height minus half the new window height (plus title and 5 pixel bottom).
    var win2 = window.open(pPage,"Window2","status=no,height=420,width=500,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
    win2.focus();
}

function centeredPopUp_print(pPage) {
    var iMyWidth;
    var iMyHeight;
    //gets top and left positions based on user's resolution so hint window is centered.
    iMyWidth = (window.screen.width/2) - (280 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyHeight = (window.screen.height/2) - (210 + 30); //half the screen height minus half the new window height (plus title and 5 pixel bottom).
    var win2 = window.open(pPage,"Window2","status=no,height=420,width=560,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
    win2.focus();
}

function centeredPopUp_film(pPage) {
    var iMyWidth;
    var iMyHeight;
    //gets top and left positions based on user's resolution so hint window is centered.
    iMyWidth = (window.screen.width/2) - (220 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyHeight = (window.screen.height/2) - (250 + 30); //half the screen height minus half the new window height (plus title and 5 pixel bottom).
    var win2 = window.open(pPage,"Window2","status=no,height=500,width=440,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");
    win2.focus();
}


 function showImage(s_path) {
         window.open('templates/img_popup.php?path=' + s_path, 'image', 'height=300,width=400');
      }





