function filt(v,on) { //alert('msk:'+v+','+on); t=document.form.filtmask.value; if( on ) t|=v; else t&=~v; document.form.filtmask.value=t; }