function openEdit(url){
  window.open(url,'edit','height=700,width=1000,scrollbars=yes,directories=no,toolbar=no,location=no');
}
function openPrint(url){
  window.open(url,'edit','height=822,width=595,scrollbars=yes,directories=no,toolbar=yes,location=no');
}
function openPop(url){
  window.open(url,'edit','height=400,width=300,scrollbars=yes,directories=no,toolbar=no,location=no');
}

var N4 = document.layers;
var IE = document.all;
var N6 = document.getElementById && !IE;

function display(layername) {
if (N4) {
document[layername].visibility = "show";
} else if (IE) {
document.all[layername].style.visibility = "visible";
} else if (N6) {
document.getElementById(layername).style.visibility = "visible";
}
}


function hide(layername) {
if (N4) { 
document[layername].visibility = "hide";
} else if (IE) {
document.all[layername].style.visibility = "hidden";
} else if (N6) {
document.getElementById(layername).style.visibility = "hidden";
}
}


function toggle(chk)
{
  if (chk != null)
  {
    chk.checked = !chk.checked;
    for (i = 0; i < chk.length; i++)
    {
      chk[i].checked = !chk[i].checked;
    }
  }
}

