<!--
var mainList = null;
// text for each item in main list
var mainTexts = ["Systems Furniture"];
  
// hyperlinks for each item in sub list
var subValues = new Array();
subValues[0] = ["original-post-system.asp", "panel-panel-system.asp", "transform.asp"];

// text for each item in sub list
var subTexts = new Array();
subTexts[0] = ["Solutions - Original Post System", "Spaces - Panel to Panel System", 
	"Transform - Desk Based System"];

function buildMainList()
{
	// populate the main list from the mainTexts array
	mainList = document.SmartSelectForm.MainList;
 	for (var i=0; i<mainTexts.length; i++)
  	mainList.options[i+1] = new Option(mainTexts[i], i+1);
  
  // see if a valid query string exists
  var queries = location.search.substr(1).split("=")
  for (i=0; i<queries.length; i++)
  {
  	if (queries[i].indexOf("choice") != -1)
    {
    	mainList.selectedIndex = queries[i+1];
      buildSubList(queries[i+1]);
    }
  }
}

function buildSubList(num)
{
	// populate the sub list from the given numbered subValues and subTexts arrays
	var subList = document.SmartSelectForm.SubList;
 	subList.options.length = 0;
  if (num == 0)
  {
    subList.options[0] = new Option("-Choose a Category-", "");
    subList.selectedIndex = 0;
    return;
  }
  for (var i=0; i<subValues[num-1].length; i++)
  	subList.options[i] = new Option(subTexts[num-1][i], subValues[num-1][i]);
  subList.selectedIndex = 0;
}

function goLink()
{
	// follow hyperlink that's currently selected in the sub list
	var subList = document.SmartSelectForm.SubList;
  var selItem = subList.options[subList.selectedIndex].value;
	if (selItem == "")
  	alert("Please select a valid item.");
  else
		document.location.href = selItem + "?choice=9";
//		document.location.href = selItem + "?choice=" + mainList.selectedIndex;
}
//-->
