
function skjuladr(navn, dom, vist)
{
fremvist = (typeof(vist)=="undefined") ? navn+"@"+dom : vist
document.write('<a href=mailto:'+ navn + '@' + dom + '>' + fremvist + '</a>');
}

function mymail(navn, dom, vist)
{
fremvist = (typeof(vist)=="undefined") ? navn+"@"+dom : vist
document.write('<a href=mailto:'+ navn + '@' + dom + '>' + fremvist + '</a>');
}

function closeviewsite()
{
  if (!anotherwindow)          
    return;                
  if (anotherwindow.closed)   
    return;                
  anotherwindow.close();
}

function closepopup()
{
  if (!subwindow)          
    return;                
  if (subwindow.closed)   
    return;                
  subwindow.close();
}

function popupwindow(popupfilename)
{
  closepopup()  
  subwindow=window.open(popupfilename,"popup",wattributes);
  subwindow.moveTo(10,50); 
}

function normalwin(someurl)
{
  closeviewsite()  
  anotherwindow=window.open(someurl,"viewsite",nwattributes);
}

function hov(loc,cls)
{
   if(loc.className)
      loc.className=cls;
}
var phplform;
var wattributes="location=no,menubar=no,toolbar=no,status=no";
wattributes+=",resizable=yes,scrollbars=yes,width=450,height=240";
var subwindow=0;
function infowin(popupfilename)
{
popupwindow(popupfilename);
}
