defaultStatus="BSK Sextanten";

function openImage(InName,X,Y) {
	var sw = screen.width;
	var iw = X;
	var sy = screen.height;
	var iy = Y;
	var resize = 'scrollbars=no,resizable=no,'
	var wid = '';
	if( sw < iw ){
	   iw = screen.width - 40;
	   resize = 'scrollbars=yes,resizable=yes,'
	   Y = Y + 140; 
	   var tmp = iw - 20;
	   wid = ' width=' + tmp;
	}
	
	if( sy < iy ){
	   iy = screen.height - 80; 
 	   resize = 'scrollbars=yes,resizable=yes,'
	}
	
	str = 'menubar=0,' + resize + ' width=' + iw +', height=' + iy
	NewWindow= open('','',str);
	
     	astr ='<HTML><HEAD><TITLE>Bildarkiv</TITLE>'     
	astr +='<link rel="stylesheet" href="../../style.css" type="text/css"></HEAD>'
	astr +='<body>'
	astr +='<img src=' + InName 
	astr += wid + '>'
	astr +='</BODY></HTML>' 
      	ndoc= NewWindow.document
     	ndoc.write(astr)     
	ndoc.close()     
	self.aNoteWin = NewWindow
}

function openInfo(sida,width,height) {
    var str='menubar=0,scrollbars=auto,resizable=yes,width=' + width + ',height=' + height;
    NewWindow=open(sida,'',str);
}

function openCv() { NewWindow=open('./CV/visa cv.htm','','menubar=0,scrollbars=yes,resizable=yes'); } 

function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
 // alert("      Sorry ");
  return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
