<!--

function openNewWindow(url) 
{ 
  var w = screen.availWidth;
  var h = screen.availHeight;
  newWindow = window.open(url, 'window', 'width=' + w + ',height=' + h + ',left=0,top=0,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,status=yes');
  if (window.focus) 
    newWindow.focus();
}  

function openPopUp(url) 
{ 
  var popUpWidth = 765;
  var popUpHeight = 600;
  var screenWidth = screen.availWidth;
  var x = screenWidth / 2 - popUpWidth / 2;
  var y = screen.availHeight / 2 - popUpHeight / 2;
  if (screenWidth < 800)
  {	x = 0;
    y = 0;
  }
  newPopUp = window.open(url, 'popup', 'width=' + popUpWidth + ',height=' + popUpHeight + ',left=' + x + ',top=' + y + ',resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,status=no');
  if (window.focus) 
    newPopUp.focus();
}  

function loadFormUrl(form) 
{
  var url = form.list.options[form.list.selectedIndex].value;
  if (url != '') 
    location.href = url;
  return false;
}

function preloadImages() 
{ 
  if (document.images) 
  { var imgFiles = preloadImages.arguments;
    if (document.preloadArray == null) 
      document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j = 0; j < imgFiles.length; j++) 
    if (imgFiles[j].charAt(0) != "#")
    { preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
    }
  }
}

// -->

