worked up this bit and hope it might help someone down the line.

function hideDiv(elementName)
{
for(i=1;i<=13;i=i+1)
{
var formField = elementName+i;
valuated = eval(document.getElementById(formField).style.display == "none");
if(valuated == false)
lastDisplay = i;
}
document.getElementById(elementName+lastDisplay).style.display='none';
}
function showDiv(elementName)
{
for(i=1;i<=13;i=i+1)
{
var formField = elementName+i;
valuated = eval(document.getElementById(formField).style.display == "none");
if(valuated == false)
lastDisplay = i+1;
}
if(navigator.appName == 'Microsoft Internet Explorer')
document.getElementById(elementName+lastDisplay).style.display='block';
else
document.getElementById(elementName+lastDisplay).style.display='table-row';
}


Thanks!