function openWindow(url, wname, ht, wd, style) {
//  if (url.indexOf('=') > 0) url += '&' + (new Date()).getTime();
//  else                      url += '?' + (new Date()).getTime();
  var h  = (screen.availHeight - ht) / 2;
  var w  = (screen.availWidth - wd) / 2;

  if (style == 'noscroll') {
    newwin = top.open('/blank.htm',wname,'width='+wd+',height='+ht+',screenX='+w+',screenY='+h+',left='+w+',top='+h+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,titlebar=0,alwaysRaised=1');
    newwin.focus();
    newwin = top.open(url,wname,'width='+wd+',height='+ht+',screenX='+w+',screenY='+h+',left='+w+',top='+h+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,titlebar=0,alwaysRaised=1');
  }
  else {
    newwin = top.open('/blank.htm',wname,'width='+wd+',height='+ht+',screenX='+w+',screenY='+h+',left='+w+',top='+h+',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,titlebar=yes');
    newwin.focus();
    newwin = top.open(url,wname,'width='+wd+',height='+ht+',screenX='+w+',screenY='+h+',left='+w+',top='+h+',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,titlebar=yes');
  }
//  newwin.opener = self;
//  newwin.moveTo(w, h)
}

function LoadFrame ()
{
  args  = LoadFrame.arguments; 
  for (var i=0; i<args.length; i++,i++) {
    open (args[i+1], args[i]); 
  }
}

function bookmarkSite(title, url){
if (document.all){
window.external.AddFavorite(url, title);
}else if (window.sidebar){
window.sidebar.addPanel(title, url, "");
}else{
alert("Sorry! Your browser doesn't support this function."); 
} 
}

