//
// 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) {
  if (event) {
    event.cancelBubble = true;
    event.returnValue = false;
  }
  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; }
  var left = Math.ceil(screen.width/4);
  var top = Math.ceil(screen.height*0.1);
  var oTarget = window.open(link_url, "Additional", "height="+height+",width="+width+",scrollbars=1,left="+left+",top="+top);
  oTarget.focus();
  return false;
};

function MM_openBrWindow(theURL,winName,features) { //v2.0
var w;
 w=window.open(theURL,winName,features);
 w.focus();
}

function showDiv()
{
 var elem = document.getElementById("divSubmenu");
 elem.style.visibility = "visible";
 elem.style.display = "block";
 flag = true;
}

function hideDiv()
{
 if (flag == false)
 {
 hide();
 }
}
function hide()
{
 var elem = document.getElementById("divSubmenu");
 elem.style.visibility = "hidden";
 elem.style.display = "none";
}
function a(link)
{
 window.location.href=link;
}


