var imageLoc = "../images/";

function onColorIm(i, cformNum, fileN, cName)
{
  // i is the img number on the doc page starting with 0
  document.images[i].src = imageLoc + fileN + ".gif";
  if (cformNum == 1)
  {
    document.colorForm1.colorName.value = cName;
  }
  else document.colorForm2.colorName.value = cName;
}