﻿// JScript File
function showAlertBox() {
    document.getElementById('alertBox').style.display = "";

    return true;
}

function hideAlertBox() {
    document.getElementById('alertBox').style.display = "none";

    return false;
}

function showLoading() {
    document.getElementById('loadingBox').style.display = "";

    return true;
}

function launchSearch() {
    searchWindow = window.open('http://www.fideliscare.org/apps/providersearch/', 'fcnyProviderSearch', 'location=1,status=1,scrollbars=1,menubar=1,resizable=1,width=780,height=500');
}

function launchEDI() {
    ediWindow = window.open('http://www.fideliscare.org/apps/ediRequest/', 'fcnyEDIRequest', 'location=1,status=1,scrollbars=1,menubar=1,resizable=1,width=780,height=500');
}

function checkHeights(div1,div2) {
    var vDiv1 = $(div1).height();
    var vDiv2 = $(div2).height();
    var vHeight = 0;

    if (vDiv1 > vHeight) {
        vHeight = vDiv1;
    }

    if (vDiv2 > vHeight) {
        vHeight = vDiv2;
    }

    $(div1).height(vHeight);
    $(div2).height(vHeight);
}