<!-- Hide

function replaceImg (ImgObject,NewImage)
{
  ImgObject.src = NewImage.src;
}

function PopupWindow( URL, WindowName, MenuOption, WindowHeight, WindowWidth )
{
  AVAIL_WINDOW_HEIGHT = screen.availHeight;
  AVAIL_WINDOW_WIDTH = screen.availWidth;

  if ( WindowWidth > AVAIL_WINDOW_WIDTH ) 
  {
    xcoord=1; ycoord=1;
  }
  else
  {
    ycoord=(AVAIL_WINDOW_HEIGHT-WindowHeight)/2 - 50;
    xcoord=(AVAIL_WINDOW_WIDTH-WindowWidth)/2;
  }
  
  WindowOptions = 'dependent,scrollbars,resizable,toolbar=no,menubar=' + MenuOption + ',height=' + WindowHeight + ',width=' + WindowWidth + ',left=' + xcoord + ',top=' + ycoord;
  n = window.open(URL,WindowName,WindowOptions);
  n.focus();  
}


function PopupW( URL, WindowName, MenuOption, WindowHeight, WindowWidth )
{
  AVAIL_WINDOW_HEIGHT = screen.availHeight;
  AVAIL_WINDOW_WIDTH = screen.availWidth;

  if ( WindowWidth > AVAIL_WINDOW_WIDTH ) 
  {
    xcoord=1; ycoord=1;
  }
  else
  {
    ycoord=(AVAIL_WINDOW_HEIGHT-WindowHeight)/2 - 50;
    xcoord=(AVAIL_WINDOW_WIDTH-WindowWidth)/2;
  }
  
  WindowOptions = 'dependent,scrollbars,resizable,toolbar=no,menubar=' + MenuOption + ',height=' + WindowHeight + ',width=' + WindowWidth + ',left=' + xcoord + ',top=' + ycoord;
  n = window.open(URL,WindowName,WindowOptions);
  n.focus();  
}

function PicWindow( URL, WindowName, MenuOption, WindowHeight, WindowWidth )
{
  AVAIL_WINDOW_HEIGHT = screen.availHeight;
  AVAIL_WINDOW_WIDTH = screen.availWidth;

  if ( WindowWidth > AVAIL_WINDOW_WIDTH ) 
  {
    xcoord=1; ycoord=1;
  }
  else
  {
    // Adjust height for smaller than actual.
    if ( WindowHeight > 500 )
    {
      ycoord = 1;
    }
    else
    {
      ycoord=(AVAIL_WINDOW_HEIGHT-WindowHeight)/2 - 50;
    }
    
    xcoord=(AVAIL_WINDOW_WIDTH-WindowWidth)/2;
  }
  
  WindowOptions = 'dependent,scrollbars=no,resizable=no,status=no,toolbar=no,menubar=' + MenuOption + ',height=' + WindowHeight + ',width=' + WindowWidth + ',left=' + xcoord + ',top=' + ycoord;
  n = window.open(URL,WindowName,WindowOptions);
  n.focus();  
}

function isEmailAddr( EmailAddress )
{
  var theStr = new String( EmailAddress );
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
    {
      return true;
    }
  }
  return false;
}

// -->