function r_on(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "images/" + i + "_over.gif"; 
    }
  }
}

function r_off(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "images/" + i + ".gif"; 
    }
  }
}

function writeDate() {
  var today = new Date();
  var year = today.getFullYear();
  document.write(year);
}

function leaveSite(site) {
  if (confirm('You are now leaving this web site.\nIf you do not wish to leave this site, click Cancel. Click OK to leave.') == 1) {
    window.open(site, 'Untitled','toolbar=yes,width=750,height=500,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes')
  }
}

function popUp(page) {
  popup_window = window.open(page,'popup','location,menubar,resizable,scrollbars,status,toolbar,width=680,height=400');
}

function popUp2(page) {
  popup_window = window.open(page,'popup','location,menubar,resizable,scrollbars,status,toolbar,width=680,height=520');
}

function writeDate() {
  var today = new Date();
  var year = today.getFullYear();
  document.write(year);
}


function toggle(i) {
  a = document.getElementById("disclaimer");
  b = document.getElementById("disclaimer1");
  c = document.getElementById("disclaimer2");
  d = document.getElementById("disclaimer3");
  e = document.getElementById("disclaimer4");
  f = document.getElementById("disclaimer5");
  g = document.getElementById("disclaimer6");
  a.style.display = "none";
  b.style.display = "none";
  c.style.display = "none";
  d.style.display = "none";
  e.style.display = "none";
  f.style.display = "none";
  g.style.display = "none";
  j = i.split(",");
  for (x = 0; x < j.length; x++) {
    //alert(j[x]);
    if (j[x] != "") {
      y = document.getElementById(j[x]);
      y.style.display = "block";
    }
  }
}

//function toggle(i,show) { 
//   x = document.getElementById(i);
//   x.style.display = show;
//}
