﻿function CheckBoxReview() {
    document.getElementById("TextBoxCounter").value = 0
    for (i = 0; i < 200; i++) {
        if (document.getElementById("CheckBox" + i)) {
            if (document.getElementById("CheckBox" + i).checked) {
                document.getElementById("TextBoxCounter").value = 1 + document.getElementById("TextBoxCounter").value
            }
        }
    }
}

var previousPanel = 'Panel0'

function ob(elmnt, deflt) {
    if (elmnt.value == '') {
        elmnt.value = deflt;
        elmnt.style.color = '#999999';
    }
    if (elmnt.value == 'Expected Entry Date') {
        elmnt.style.color = '';
    }
    elmnt.style.backgroundColor = ''
}

function of(elmnt, deflt) {
    elmnt.style.color = 'black';
    if ((elmnt.value == deflt) && (deflt != 'Expected Entry Date')) {
        elmnt.value = ''
    }
    elmnt.style.backgroundColor = '#FFFFCC'
}

function programHover(elmnt, id) {
    if (id != 0) {
        elmnt.style.color = 'black';
        elmnt.style.backgroundColor = '#DFD29D';
    }
    document.getElementById(previousPanel).style.display = 'none'
    document.getElementById('Panel' + id).style.display = ''
    previousPanel = 'Panel' + id
}

function programLeave(elmnt, id) {
    elmnt.style.backgroundColor = '';
    elmnt.style.color = ''
}

