
function check_g(){
  if (document.pbcf_add_subj.grw.checked == 0) {
     document.pbcf_add_subj.gr.disabled = 0;
   }

  if (document.pbcf_add_subj.grw.checked) {
     document.pbcf_add_subj.gr.checked = 1;
     document.pbcf_add_subj.gr.disabled = 1;
   }

  if (document.pbcf_add_subj.gr.checked == 0) {
     document.pbcf_add_subj.grw.disabled = 1;
   }

  if (document.pbcf_add_subj.gr.checked == 1) {
     document.pbcf_add_subj.grw.disabled = 0;
   }
}



function check_u(){
  if (document.pbcf_add_subj.urw.checked == 0) {
     document.pbcf_add_subj.ur.disabled = 0;
   }

  if (document.pbcf_add_subj.urw.checked) {
     document.pbcf_add_subj.ur.checked = 1;
     document.pbcf_add_subj.ur.disabled = 1;
   }

  if (document.pbcf_add_subj.ur.checked == 0) {
     document.pbcf_add_subj.urw.disabled = 1;
   }

  if (document.pbcf_add_subj.ur.checked == 1) {
     document.pbcf_add_subj.urw.disabled = 0;
   }
}

function gogo(){
     document.pbcf_add_subj.ur.disabled = 0;
     document.pbcf_add_subj.urw.disabled = 0;
     document.pbcf_add_subj.fr.disabled = 0;
     document.pbcf_add_subj.frw.disabled = 0;
     document.pbcf_add_subj.gr.disabled = 0;
     document.pbcf_add_subj.grw.disabled = 0;
}

function rights_help(){
var width = 620;
var height = 400;
window.open('/help/rights','rights', config='toolbar=no,location=no,resizable=no,menubar=no,scrollbars=yes,width=' + width + ',height=' + height)
}

