function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindowCenter(theURL,winName,features, w, h) { //v2.0

 var winleft = (screen.width - w) / 2 ;
 var winUp = (screen.height - h) / 2 ;
 if (! window.focus)return true;
  var href;
  if(typeof(theURL) == 'string')
    href=theURL;
  else
    href=theURL.href;
    
  window.open(href, winName, 'top='+((screen.height - h) / 2)+',left='+((screen.width - w) / 2)+'+,toolbar=0 status=0,resizable=0,Width=' + w + ',height=' + h + ',scrollbars=0');
    
 //return false;
  //window.open(theURL,winName,features);
}

function MM_openBrWindowCenterWithScrollbars(theURL,winName,features, w, h) { //v2.0

 var winleft = (screen.width - w) / 2 ;
 var winUp = (screen.height - h) / 2 ;
 if (! window.focus)return true;
  var href;
  if(typeof(theURL) == 'string')
    href=theURL;
  else
    href=theURL.href;
    
  window.open(href, winName, 'top='+((screen.height - h) / 2)+',left='+((screen.width - w) / 2)+'+,toolbar=0 status=0,resizable=1,Width=' + w + ',height=' + h + ',scrollbars=1');
    
 //return false;
  //window.open(theURL,winName,features);
}

function MM_openBrWindowCenterWithoutScrollbars(theURL,winName,features, w, h) { //v2.0

 var winleft = (screen.width - w) / 2 ;
 var winUp = (screen.height - h) / 2 ;
 if (! window.focus)return true;
  var href;
  if(typeof(theURL) == 'string')
    href=theURL;
  else
    href=theURL.href;
    
  window.open(href, winName, 'top='+((screen.height - h) / 2)+',left='+((screen.width - w) / 2)+'+,toolbar=0 status=0,resizable=0,Width=' + w + ',height=' + h + ',scrollbars=0');
    
 //return false;
  //window.open(theURL,winName,features);
}
