
//This function should be used for all rollover changes on images.
//  The two input values required are:
//    imageTagName- The name of the image being replaced
//    imageFileName- The path and name of the replacement image

function rollOver(imageTagName, imageFileName)
{
  document.images[imageTagName].src=imageFileName;
}
    

//This function should be used to open any popup windows.
//  The three required input values are:
//    url- The path/url of the page to be displayed in the new window
//    h- The height of the popup window
//    w- The width of the popup window
//    tb- whether the toolbar should display. options: yes no
//
//  Note: The function evaluates for Netscape browsers and automatically
//        pads 50 pixels to both the height and width to account for browser
//        differences.
//

function openWindow(url, h, w, tb)
{
  isNav=(navigator.appName=="Netscape")?true:false;
  isIE=(navigator.appName.indexOf("Microsoft") != -1)?true:false;

  if (isNav)
  {
    h=h+50;
    w=w+50;
  }

  x=screen.width;
  y=screen.height;
  sX=(x/2)-(w/2);
  sY=(y/2)-(h/2);
  features='scrollbars,resizable,menubar=no,status=no,location=no,directories=no,';
  features+='toolbar='+tb+',';

  if (isNav)
    features+='outerHeight='+h+',outerWidth='+w+',screenX='+sX+',screenY='+sY;
  else
    features+='height='+h+',width='+w+',left='+sX+',top='+sY;

  newWin=window.open(url,"POPUP_WINDOW",features);
}


//This function should be used to set cookies
//  The two required input values are:
//    name- The name of the new cookie
//    value- The value associated with that name
//
//CHANGES:
//    Date     Initials   Changes made
//  ----------|--------|-----------------------------------------
//   6/6/2003 |   alf  |  Initial Release.
//
function setCookie(name,value)
{

  var today = new Date();
  var expires = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000); // plus 28 days

  //alert(name+"="+value);
  //alert(document.cookie);
  document.cookie = name+"="+value+";expires="+expires.toGMTString()+";path=/";
  //alert(document.cookie);
}