function getColorValuesByFactk(index){
    var sColorValues = aColorValues[index];
    return sColorValues.split(",");
}
function MkColorValues(index){
    var aCurrColorValues = getColorValuesByFactk(index);
    var nCurrColorValuesCnt = aCurrColorValues.length;
    var oColorList = document.getElementById('selcol');
    var oColorListOptionsCnt = oColorList.options.length;
    oColorList.length = 0;
    for (i = 0; i < nCurrColorValuesCnt; i++){
        if (document.createElement){
            var newColorListOption = document.createElement("OPTION");
            newColorListOption.text = aCurrColorValues[i];
            newColorListOption.value = aCurrColorValues[i];
            (oColorList.options.add) ? oColorList.options.add(newColorListOption) : oColorList.add(newColorListOption, null);
        }else{
            oColorList.options[i] = new Option(aCurrColorValues[i], aCurrColorValues[i], false, false);
        }
    }
}

function showhide(id)
{
  var head = document.getElementById(id);
  if (head.style.display == "none")
  head.style.display = "block";
  else
  head.style.display = "none";
  
  var ttl = document.getElementById(id + "-ttl");
  if (ttl.className == "header")
  ttl.className = "header-open";
  else
  ttl.className = "header";
}

