function showImage(s_path) {
         window.open('<?=$website_www;?>/templates/img_popup.php?path=' + s_path, 'image', 'height=300,width=480,scrollbars=yes');
      }
      
    function centeredPopUp_basic(pPage,Wwidth,Wheight) {
    var iMyWidth;
    var iMyHeight;
    //gets top and left positions based on user's resolution so hint window is centered.
    iMyWidth = (window.screen.width/2) - (Wwidth/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyHeight = (window.screen.height/2) - (Wheight/2 + 10); //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=" + Wheight + ",width=" + Wwidth + ",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
    win2.focus();
}


      
      

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_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) - (240 + 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=480,width=440,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");
    win2.focus();
}






 
 


