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

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

function poppup(page) {
  popUpWin = window.open(page,'PopWin','scrollbars=yes,resizable=yes,top=0,left=0,width=270,height=400');
}

function explanation(page) {
  popUpWin = window.open(page,'PopWin','scrollbars=yes,resizable=yes,top=0,left=0,width=270,height=135');
}

function email(page) {
  page = "/email.php?from=" + page;
  popUpWin = window.open(page,'PopWin','resizeable=no,scrollbars=yes,top=0,left=0,width=450,height=450');
}

function spoon(page) {
  page = "pop.php?mov=" + page;
  popUpWin = window.open(page,'PopWin','resizeable=no,scrollbars=yes,top=0,left=0,width=400,height=610');
}

function enlarge(page) {
  page = page + "_enlargement.jpg";
  popUpWin = window.open(page,'PopWin','resizeable=yes,scrollbars=yes,top=0,left=0,width=400,height=1000');
}

function leaveSite(site) {
  if (confirm('You are now leaving the BaySystems site and moving to an\nexternal site independently operated and not managed by Bayer \nMaterialScience. Bayer MaterialScience assumes no responsibility for the site. \nIf you do not wish to leave this site, click Cancel. Click OK to leave.') == 1) {
    window.open(site);
  }
}

function writeDate() {
  document.write(new Date().getFullYear());
}

function writeUpdate() {
  document.writeln(document.lastModified);   
}
