function updateDiv(source, div, blankValue){      var value = document.getElementById(source).value;        var array = div.split(",");
    var count = 0;
    while (count < array.length)
    {
        if (value.length == 0)            document.getElementById(array[count]).innerHTML = blankValue;        else            document.getElementById(array[count]).innerHTML = value;        count+=1;
    }}function showHideControls(noneBlock, controls){    var array = controls.split(",");
    var count = 0;
    while (count < array.length)
    {
        document.getElementById(array[count]).style.display = noneBlock;        count+=1;
    }}function showHideControls2(textValue, controls, divs){    var arrControls = controls.split(",");
    var arrDivs = divs.split(",");
    var count = 0;
    while (count < arrControls.length)
    {
        if (document.getElementById(arrControls[count]).value == textValue)
            document.getElementById(arrDivs[count]).style.display = 'block';        else            document.getElementById(arrDivs[count]).style.display = 'none';        count+=1;
    }}