﻿function outage(url) {
    description = window.open(url, 'outageWin', 'width=280,height=350,location=0,status=0,toolbar=0,resizable=0,scrollbars=0,directories=0,copyhistory=0');
    var h = (document.layers) ? (screen.height / 2) - 175 : (screen.availHeight / 2) - 175;
    var w = (document.layers) ? (screen.width / 2) - 140 : (screen.availWidth / 2) - 140;
    description.moveTo(w, h);
}

// function that displays status bar message
function dm(msgStr) {
    document.returnValue = false;
    if (document.images) {
        window.status = msgStr;
        document.returnValue = true;
    }
}

var showMsg = navigator.userAgent != "Mozilla/4.0 (compatible; MSIE 4.0; Mac_PowerPC)";

function dmim(msgStr) {
    document.returnValue = false;
    if (showMsg) {
        window.status = msgStr;
        document.returnValue = true;
    }
}

function helpWindow() {
    x = window.open('/support/sendHelp.htm', 'newwin', 'width=445,height=295,location=0,status=yes,toolbar=no,resizable=no,scrollbars=no,directories=no,copyhistory=no')
}

function openVideoWindow(url) {
    features =
		        'toolbar=no,location=no,directories=no,status=no,menubar=no,' +
		        'scrollbars=no,resizable=yes,width=1000,height=800';
    // url += '&preview=true';
    window.open(url, "", features);
}

function showTable(obj) {
    var table = document.getElementById(obj);
    if (table.style.display != 'none') {
        table.style.display = 'none';
    }
    else {
        table.style.display = '';
    }
}

function displaytable(obj1, obj2) {
    var table1 = document.getElementById(obj1);
    var table2 = document.getElementById(obj2);
    if (table1.style.display == 'block') table1.style.display = 'none';
    else if (table1.style.display == 'none') table1.style.display = 'block';
    if (table2.style.display == 'block') table2.style.display = 'none';
    else if (table2.style.display == 'none') table2.style.display = 'block';
}