function ToggleDiv2(id, textid, ontext, offtext, count) {
    // IE
    if (document.all)
    {
             if (document.all[id].style.display == "none") {
                document.all[id].style.display = "block";
                document.all[textid].innerText = ontext;
            }
            else {
                document.all[id].style.display = "none";
                document.all[textid].innerText = offtext;
            }
	}
	else // FIREFOX compatibility
	{
            if (document.getElementById(id).style.display == "none") {
                document.getElementById(id).style.display = ""; // was "block" - but buggy in firefox
                document.getElementById(textid).textContent = ontext;
            }
            else {
                document.getElementById(id).style.display = "none";
                document.getElementById(textid).textContent = offtext;
            }
	  
	}
}

function ToggleDivOnOff(id, textid, ontext, offtext, isOn) {
    // IE
    if (document.all) {
        if (document.all[id] == null || document.all[textid] == null) {
            return;
        }
        if (isOn == true) {
            document.all[id].style.display = "block";
            document.all[textid].innerText = ontext;
        }
        else {
            document.all[id].style.display = "none";
            document.all[textid].innerText = offtext;
        }
    }
    else // FIREFOX compatibility
    {
        if (document.getElementById(id) == null || document.getElementById(textid) == null) {
            return;
        }
        if (isOn == true) {
            document.getElementById(id).style.display = ""; // was "block" - but buggy in firefox
            document.getElementById(textid).textContent = ontext;
        }
        else {
            document.getElementById(id).style.display = "none";
            document.getElementById(textid).textContent = offtext;
        }

    }
}
