
function popup(filNavn,imagetekst) { 

imageWin=window.open("", "imageWin", filNavn, "width=100,height=100"); 
imageWin.document.open(); 
imageWin.document.write(
'<html>'+ 
'<head>'+ 
'<title>' + imagetekst + '</title>'+ 
'<\script language="JavaScript">'+

'function myResize() {'+ 
'var NS = (navigator.appName=="Netscape")?true:false;'+

'bred = (NS)?window.innerWidth:document.body.clientWidth;'+
'hoj = (NS)?window.innerHeight:document.body.clientHeight;'+
'bred = document.images[0].width - bred +0;'+
'hoj = document.images[0].height - hoj +0;'+
'window.resizeBy( bred, hoj );'+
'self.focus();'+
'};'+
'<\/script>'+ 
'<style type="text/css">'+
' body { margin-left: 0%; margin-right: 0%; margin-top: 0%; margin-bottom: 0%;'+
'        left-margin: 0%; right-margin: 0%; top-margin: 0%; bottom-margin: 0% }'+
'</style>'+
'</head>'+ 
'<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="myResize();">'+ 

'<img src="' + filNavn + '" NAME="pic" border=0 alt="' + imagetekst + '">'+ 

'</body>'+ 
'</html>' ); 
imageWin.document.close(); 
} 
