function on(imgName) {
	if (navigator.userAgent.indexOf("Mozilla/2.0") == -1) {
		imgOn = eval(imgName + "_on.src");
		document [imgName].src = imgOn;
	}       
}

function off(imgName) {
	imgOff = eval(imgName + "_off.src");
	document [imgName].src = imgOff;
	window.status=''; return true;
}

function openNewWindow(fileName,windowName,theWidth,theHeight,theScrollBar,resizable,location,status,menubar,toolbar) {
    if ((windowName == "newMessageWindow") || (windowName == "win1"))  {
      //generate random window ID
      windowName = new String(Math.round(Math.random() * 100000));
    }
	if (theHeight == 999)  
	{
		if (-1 == navigator.userAgent.indexOf("/3")) 
		{
	      //maximize height to fit the users screen
		  //will do this as long as we are not in a version 3 browser
		  //only versions 4 and up support this feature
		  //may not work with dual monitor setup - setting comes from primary screen
		  if (screen.availHeight > 500)
		  {
		  theHeight = screen.availHeight - 110 ;
		  }
		  else
		  {
		  //we are on a 640x480 screen resolution, make it as big as possible
		  theHeight = 452;
		  }
		}
		else
		{
		  //this is the default if the above conditions are not true
  		  theHeight = 452 ;
		}
    }
    if (theScrollBar != 1) theScrollBar = 0;
    if (resizable != 1) resizable = 0;
    if (location != 1) location = 0;
    if (status != 1) status = 0;
    if (menubar != 1) menubar = 0;
    if (toolbar != 1) toolbar = 0;
    return window.open(fileName,windowName,"toolbar="+toolbar+",location="+location+",directories=0,status="+status+",menubar="+menubar+",scrollbars="+theScrollBar+",resizable="+resizable+",width="+theWidth+",height="+theHeight)
}