function openBrWindow(theURL,winName,features) {
  var replacedURL = theURL;
  replacedURL = replacedURL.replace(/\./, "_");
   replacedURL = replacedURL.replace(/\//, "_");
   replacedURL = replacedURL.replace(/\-/, "_");
  winName = winName + "_" + replacedURL;
  newwindow = window.open(theURL,winName,features);
}


function openBrWindow2(theURL,winName, features, wid, hei) {
  features = features + ",width="+wid+",height="+hei;
  newwindow = window.open(theURL,winName,features);
  newwindow.resizeTo(wid,hei);
  newwindow.focus();
}
