// EXTERNAL LINKS CALL WITH REL=EXTERNAL
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

// POPUP WINDOW CALL WITH OPENNEW(URL,WIDTH,HEIGHT)
//This is one of many scripts which are available at:
//http://www.JavaScript.nu/javascript
//This script is FREE, but you MUST let these lines
//remain if you use this script.
function opennew(url,width,height)
{
egenskaper="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no";

egenskaper+=",width="+width;
egenskaper+=",height="+height;
unik=new Date();
unik=unik.getSeconds()+"_"+unik.getMinutes()+"_"+unik.getHours();
window.open(url,unik,egenskaper);
}

// POPUP IMAGE CALL WITH IMAGE(FILENAME,TITLE)
function image(filename,winTitle)
{
var myImage = new Image();
myImage.src=filename;
properties='height=0,width=0';
var imgWindow = window.open('','','egenskaper');
html = '<html>';
html += '<head>';
html += '<title>'+myImage.src+'</title>';
html += '<style type=text/css> body {overflow:hidden;} </style>';
html += '</head>';
html += '<body onBlur="window.close()" topmargin="0" leftmargin="0" >';
html += '<img src="'+myImage.src+'" onLoad="resizeTo (document.bild.width+10,document.bild.height+35); moveTo(100,50);" name="bild" onmouseover=this.style.cursor="hand" onblur="window.close()" onClick="window.close()">';
html += '</body>';
html += '</html>';
imgWindow.document.write(html);
}