function OpenWindow(obj, w, h) {
  var width = w == null ? 800 : w;
  var height = h == null ? 600 : h;
  var left = (screen.width - width) / 2;
  var top = (screen.height - height) / 2;
	var scrollbars = h == null ? "yes" : "no";
	var resizable = h == null ? "yes" : "no";
	var toolbar = h == null ? "yes" : "no";
  var props = "width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",toolbar=" + toolbar;
  var newwindow = window.open(obj.href, "_new", props);
  if (newwindow == null)
    return true;
  else
    return false;
}
