if (document.forms[0].Section.value != "") {
sectStr = document.forms[0].SectionItems.value;
subsectStr = document.forms[0].SubsectionItems.value;
var sectionList = sectStr.split('; ');
var subsectionList = subsectStr.split('; ');
var currentSection = document.forms[0].Section.value;
var currentSubsection = document.forms[0].Subsection.value;
var currentCount = 20;
document.write('
');
for (var i = 0; i < sectionList.length; i ++)
{
thisSection = sectionList[i];
nospaceSection = thisSection.replace(/%20/ig, "+");
if ( sectionList[i] == currentSection )
{
for (var j = 0; j < subsectionList.length; j++)
{
var thisSubsectionList = new Array();
thisSubsectionList = subsectionList[j].split(escape('>'));
if (thisSubsectionList[0] == currentSection )
{
nospaceSubsection0 = thisSubsectionList[0].replace(/%20/ig, "+");
nospaceSubsection1 = thisSubsectionList[1].replace(/%20/ig, "+");
var thisLink = "index?open&type=Subsections&cat=" + nospaceSubsection0 + ">" + nospaceSubsection1 + "&count=" + currentCount;
document.write('