function _getStyleIndex()
{
   var rgrp = document.forms[formName][sType];
   var i;
   for (i = 0; i < rgrp.length; i++)
   {
      if (rgrp[i].value == aType[i] && rgrp[i].checked)
      {
         return i;
      }
   }
   return -1;
}

// *****************************************************
// Event handlers
// *****************************************************

function fill()
{
   document.forms[formName][sSize].options.length = 1;
   document.forms[formName][sSize].options[0] = new Option(sChoose, -1, true, true);

   _reset();

   changeTypeRadio();
}

function changeTypeRadio()
{
   var arr = _getStyleArray();
   if (arr == null)
   {
      return;
   }
   // fill in the products (sizes) available to this style
   _setProductList(arr);
}


