function rollover(imgname, imgfile)
{   
  if (document.images)
  {
	eval("document."+imgname+".src = imgfile");
  }
  return;
}

//yes / no script
function jsConfirm(message,url) 
{
  if (confirm(message))
  {
    document.location = url;
  }
}

function JumpToIt(list)
{
  var newPage = list.options[list.selectedIndex].value
  if (newPage != "None")
  {
    location.href=newPage
  }
}

function popup_window(mypage,myname,w,h,scroll,resizable,center,extendedsettings)
{
  if(w == "max")w = (screen.width-50);
  if(h == "max")h = (screen.height-50);
  
  if(w == "large")w = (screen.width-50);
  if(h == "large")h = (screen.height-250);
  
  var win= null;
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  
  if(h >= 600) wint = wint - 50;
  
  //try and compensate for menubar
  if(extendedsettings.indexOf("menubar=yes") == 0)
  {
    wint = wint - 65;
  }
  
  //try and compensate for toolbar
  if(extendedsettings.indexOf("toolbar=yes") == 0)
  {
    wint = wint - 65;
  }
  
  //try and compensate for status bar
  if(extendedsettings.indexOf("status=yes") == 0)
  {
    wint = wint - 55;
  }
  
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable='+resizable+',';
	  settings +=''+extendedsettings+',';
  if(center == 'yes')
  {
    settings +='top='+wint+',';
    settings +='left='+winl+',';
  }
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}