function centerPositions(w,h){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
return 'left='+LeftPosition+', top='+TopPosition;
}
function openBrWindow(theURL,winName,features,width,height) { //v2.0
  myPosition = centerPositions(width,height);
  myFeatures = features +', width='+width+', height='+height+', '+ myPosition;
  newWindow = window.open(theURL,winName,myFeatures);
  newWindow.focus();
}
