function d2h(d) {return d.toString(16);}
function ranHexN()
{
  var hexnum=d2h(Math.floor(Math.random()*256))
    if (hexnum.length < 2)
    {
      hexnum = "0" + hexnum;
    }
  return hexnum;
}
function ranHexC()
{
  hexc = "#" + ranHexN() + ranHexN() + ranHexN();
  return hexc;
}
function setColor(hexc)
{
  document.body.style.backgroundColor = hexc;
}
