function popUp(v_url, v_win_name, v_width, v_height, v_scroll, v_resize) {
  var winTop          = ((screen.height - 44) - v_height) / 2;
  var winLeft         = (screen.width - v_width) / 2;

  // Set the popup windows options
  var popUpOptions = "scrollbars=" + v_scroll +
                     ",resizable=" + v_resize +
                     ",top=" + winTop +
                     ",left=" + winLeft +
                     ",width=" + v_width +
                     ",height=" + v_height;
                     
  // Create the window
  popUpWin = window.open(v_url, v_win_name, popUpOptions);

  // If the window exists, then just make it the focus
  if (parseInt(navigator.appVersion) >= 4) {
    popUpWin.window.focus();
  }

  return popUpWin;
}