function window_open_featureslist(site)
{
 var a2=screen.height-160;
 var wname="newWin"+(Math.round(Math.random()*1000000));
 var url="/featureslist/";
     if(site)  {url+="?site="+site;}
  wname = window.open(url,wname," resizable=yes,width=1000,height="+a2+",scrollbars=no,top=60,left=100");
  wname.focus();
  return wname;
}
function window_open_api()
{       
var text;
text="/flash/api.jsp";
var wname="newWin"+(Math.round(Math.random()*1000000));
window.open(text,wname,"resizable=no,width=813,height=527,scrollbars=no,top=60,left=100");
}
function window_open_qt()
{
var text;
text="/flash/quick_tour.jsp";
window.open(text,""," resizable=no,width=790,height=545,scrollbars=no,top=60,left=100");
}

function page_select_region(){
 if (document.forms.form_region.sel_field.value != 1) {
      document.location.href=document.forms.form_region.sel_field.value;  }
 }

function openWindow(url,width,height,returnRef)
{
  var windowname="newWin"+(Math.round(Math.random()*1000000));
  //self.name = "mainWindow"; // names current window as "mainWindow"
  newWindow = window.open(url,windowname,'status=yes,toolbar=no,scrollbars=yes,resizable=yes,width='+width+',height='+height);
  newWindow.focus();
  if(returnRef) return newWindow;
}
