function tinyPopup(URL,TARGET){
    var w, h;
    var popW = 500;
    var popH = 300;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no");
}
function lilPopup(URL,TARGET){
    var w, h;
    var popW = 715;
    var popH = 550;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no");
}

function medPopup(URL,TARGET){
    var w, h;
    var popW = 715;
    var popH = 675;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    var p = window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no");
	p.focus();
}

function ctaPopup(URL,TARGET){
    var w, h;
    var popW = 715;
    var popH = 675;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    var p = window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no," + "scrollbars=1");
	p.focus();
}

function legalPopup(URL,TARGET){
    var w, h;
    var popW = 715;
    var popH = 675;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    var p = window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no," + "scrollbars=1");
	p.focus();
}

function ucPopup(URL,TARGET){
    var w, h;
    var popW = 950;
    var popH = 720;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    var p = window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no," + "scrollbars=1");
	p.focus();
}

function ucMedPopup(URL,TARGET){
    var w, h;
    var popW = 715;
    var popH = 675;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    var p = window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no," + "scrollbars=1");
	p.focus();
}

function assessmentPopup(URL,TARGET){
    var w, h;
    var popW = 715;
    var popH = 725;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    var p = window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no," + "resizable=1," + "scrollbars=1");
	p.focus();
}

function file(URL){
    var w, h;
    var TARGET = "file";
    var popW = 400;
    var popH = 300;
    w = screen.availWidth;
    h = screen.availHeight;
    var leftPos = (w-popW)/2, topPos = (h-popH)/2;
    window.open(URL,TARGET,"menubar=no,width=" + popW + ",height=" + popH + ",top=" + topPos + ", left=" + leftPos + "toolbar=no," + "resizable=yes");
}

function hideMaintenanceLevel(action){
// maintenanceLevel
    if(action =='show'){
    document.getElementById('maintenanceLevel').style.display = '';

    }
    if(action =='hide'){
    document.getElementById('maintenanceLevel').style.display = 'none';

    }

}
