﻿function openTextHTMLLink(URLPath)
{
    var iMyWidth;
    var iMyHeight;
    //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyWidth = (window.screen.width/2) - (300 + 10);
    //half the screen height minus half the new window height (plus title and status bars).
    iMyHeight = (window.screen.height/2) - (350 + 50);
    //Open the window.
    var win2 = window.open(URLPath,'_blank',"width=600,height=700,toolbar=no,statusbar=no,menubar=no,scrollbars=yes,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",location=no,directories=no");
    win2.focus();
}
function openVideoLink(URLPath)
{
    var iMyWidth;
    var iMyHeight;
    //half the screen width minus half the new window width (plus 5 pixel borders).
    iMyWidth = (window.screen.width/2) - (500 + 10);
    //half the screen height minus half the new window height (plus title and status bars).
    iMyHeight = (window.screen.height/2) - (450 + 50);
    //Open the window.
    var win3 = window.open(URLPath,'_blank',"width=600,height=450,toolbar=no,statusbar=no,menubar=no,scrollbars=yes,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",location=no,directories=no");
    win3.focus();
}