

function Element(id) {
  return document.getElementById(id);
}

//HideShow
function HS(obj, t) {
  Element(obj).style.display = (t==true || t==1) ? 'block' : 'none';
}

function setNum(obj) {
  for (var i=1; i<=12; i++)
    HS('num'+i, obj.value >= i);
}

