
//my code [Galaxy Keon]
var browserName=navigator.appName;

function showInfo(text)
{
  if(text) 
   {
    if (browserName=="Microsoft Internet Explorer")
    {document.all.link_info.innerHTML = text;}
    else
    {document.getElementById('link_info').innerHTML=text;}
   }
}

function hideInfo() 
{
  if (browserName=="Microsoft Internet Explorer")
     { document.all.link_info.innerHTML = "&nbsp;";}
    else
     {document.getElementById('link_info').innerHTML="&nbsp;";}
}

//For lerarenhoek only (should be done via an additional argument, but no time now
function showInfo(text,div)
{
  if(text) 
   {
    if (browserName=="Microsoft Internet Explorer")
    { var location = eval("document.all." + div);
      location.innerHTML = text;}
    else
    {document.getElementById(div).innerHTML=text;}
   }
}

function hideInfo(text,div) 
{
   if (browserName=="Microsoft Internet Explorer")
     { var location= eval("document.all." + div);
       location.innerHTML = text;}
    else
     {document.getElementById(div).innerHTML=text;}
}

//function to popup a link in a new window with specific size

var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus)
{
 if(pos=="random")
   {myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
 if(pos=="center")
   {myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null)
   {myleft=40;mytop=60}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=yes,directories=yes,status=yes,menubar=yes,toolbar=yes,resizable=yes";  
win=window.open(mypage,myname,settings);
win.focus();
}

