function openWindow(url, width, height, scrollbars, wname,
 top, left) {
         var scrW = window.screen.availWidth;
         var scrH = window.screen.availHeight;
         var w, h, sb, wnm;
         if (!(w = width)) w = 640;
         if (!(h = height)) h = 480;
         if (!(sb = scrollbars)) sb = '1';
         var l = (left ? left : Math.round((scrW - w) / 2));
         var t = (top ? top : Math.round((scrH - h) / 2) - 20);
         if (!(wnm = wname)) wnm = '_blank';
 
         var sFeatures = "toolbar=0"
                 + ", directories=0"
                 + ", status=0"
                 + ", menubar=0"
                 + (", scrollbars=" + sb)
                 + ", resizable=1"
                 + (", width=" + w)
                 + (", height=" + h)
                 + (", left=" + l)
                 + (", top=" + t);
 
         var newWin = window.open(url, wnm, sFeatures);
         newWin.status = "";
         newWin.focus();
 }               
 
 
 
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
} 