//
// Creates new window from link
// Parameters:
// Link - link to show in window
// Effect:
// Opens a window with name "Additional" and shows needed link in it.
//
function linkWindow(link_url, width, height) {
//  if (event) {
//    event.cancelBubble = true;
//    event.returnValue = false;
//  }
  if (typeof(width) == "undefined" && typeof(height) == "undefined") {
    var width = Math.ceil(screen.width/2);
    var height = Math.ceil(screen.height*0.6);
    if (width < 600) { width = 600; }
    if (height < 400) { height = 400; }
  } else {
    if (width > 800) { width = 800; }
    if (height > 600) { height = 600; }
//    width = width + 20;
//    height = height + 5;
  }
  var left = Math.ceil(screen.width/4);
  var top = Math.ceil(screen.height*0.1);
  var oTarget = window.open(link_url, "wpcworld", "height="+height+",width="+width+",scrollbars=0,left="+left+",top="+top);
  oTarget.focus();
  return false;
};
