function OpenWindow(theURL, winName, features) {
  var win = window.open(theURL, winName, features);
  if (window.focus) win.focus();
}

