var doc = document // var d = document // if(doc.getElementById){var getE = document.getElementById} // var dom = (d.getElementById) ? true : false; var currentGroup = initialGroup; var currentButton = initialButton; function CC(clicked){ if((clicked)!= currentGroup){ currentGroup = clicked ChangeTax(); }else{ currentGroup = -1 ChangeTax(); } } function RadioClicked(group,button){ if(group == initialGroup && button == initialButton) { nexturl = window.location + "/formName=wnbinfo/formSval=" + group + ",-1,"; } else { nexturl = window.location + "/formName=wnbinfo/formSval=" + group + "," + button + "," + Tax[group].cat[button].catid; } window.location = nexturl; } function displayTax(){ //Write Out Tax var mins, plus d.write ('
') ChangeTax() RadioCheck() } function RadioCheck(){ // highlight the default or last clicked radio button if(currentButton >= 0){ var intRadio = eval("d.tfrm.taxRadio" + currentGroup + "[currentButton]") intRadio.checked = true } } function ChangeTax(){ //Highlights a particular Category based on "currentGroup" var iNeg = "";var iPos = "";var iTax = ""; for(var k = 0; k <= Tax.length -1; k++){ iNeg = "mins" + k;iPos = "plus" + k;iTax = "tax" + k //Hide all "-" if (d.all){ d.all[iNeg].style.display = "none"; d.all[iTax].style.display = "none"; d.all[iPos].style.display = "block"; }else if (getE){ d.getElementById(iNeg).style.display = "none"; d.getElementById(iTax).style.display = "none"; d.getElementById(iPos).style.display = "block"; } } if(currentGroup >= 0){ iPos = currentGroup;iPos = "plus" + iPos; iNeg = currentGroup;iNeg = "mins" + iNeg; iTax = currentGroup;iTax = "tax" + iTax; if (d.all){ d.all[iPos].style.display = "none"; d.all[iNeg].style.display = "block"; d.all[iTax].style.display = "block"; }else if (getE){ d.getElementById(iPos).style.display = "none"; d.getElementById(iNeg).style.display = "block"; d.getElementById(iTax).style.display = "block"; } }else{ if (getE){d.getElementById(iTax).style.display = "none";} } }