function check(tf)
{
  var o = document.forms['checkboxes'].elements;
  if (o)
  {
    for (i=0; i<o.length; i++)
    {
      if (o[i].type == 'checkbox')
      {
       o[i].checked =tf;
      }
    }
  }
}

function init()
{
  document.main.q.focus();
}
