function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

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 s_on(i) {
  if (document.images) { 
    if (document[i].src.indexOf("down") < 0) {
      document[i].src = "images/" + i + "_over.gif"; 
    }
  }
}

function s_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','resizeable=no,scrollbars=yes,top=0,left=0,width=220,height=350');
}

function poppup2(page) {
  popUpWin = window.open(page,'PopWin','status=1,toolbar=1,location=1,menubar=1,resizeable=1,scrollbars=1,top=0,left=0,width=575,height=450');
}

function poppup2(page) {
  popUpWin = window.open(page,'PopWin','status=1,toolbar=1,location=1,menubar=1,resizeable=1,scrollbars=1,top=0,left=0,width=575,height=450');
}

function open_window(url){
  demo=window.open(url,"demo","width=500,height=400,toolbar=yes,directories=0,status=0,menubar=yes,resizable=yes,scrollbars=yes");
} 

function leaveSite(site) {
   if (confirm('You are now leaving the Rothman Gordon Web site and moving to an\nexternal Web site independently operated and not managed by Rothman \nGordon. Rothman Gordon 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, 'Untitled','toolbar=yes,width=600,height=400,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes')
      //window.open(site)
   }
}

function writeDate() {
  theDate = new Date();
  var yearLocation=12;
  if (theDate.getDate() < 10) {
   yearLocation=yearLocation-1
  }
  var theGMTYear = theDate.toGMTString();
  var theYear = theGMTYear.substring(yearLocation,yearLocation+5);
  document.write(theYear);
}
