/*
Added by David Ray
This code simply takes a click from an image of a colour swatch and sets the currently selected attribute
in the combo box.
*/

function selectAttributeInCombo(comboId, varname)
{
  var str='';
  var theCombo = document.getElementById(comboId);
  
  if (theCombo == undefined) {
    return true;
  }
  
  for (i=0;i<theCombo.length;i++)
  {
    str=theCombo.options[i].text;
    if (str.replace(/'/, "")==varname)
    {
      theCombo.selectedIndex=i;
    }
  }
}
