function openBilder(img,title,foto,w,h) {
var day = new Date();
var id = day.getTime();
var ww = w+75; // Make room for scrollbars
var wh = h+130; // and a close button
var left = (screen.width/2)-(ww/2);
var top = (screen.height/2)-(wh/2);
var params = 'width='+ww+',height='+wh+',scrollbars,resizable="no",toolbar="no",statusbar="no",location="no",copyhistory="no",top='+top+',left='+left+'';

// Build the output and store it all in msg
var msg='<html>\n<head>\n<title>Bilder</title>\n<link rel="stylesheet" href="/css/open.css" type="text/css">\n</head>\n\n<body>\n'+
'<table width="100%" border="0" cellpadding="0" cellspacing="0">\n'+
'<tr>\n<td><h2>'+title+'</h2></td>\n</tr>\n'+
'<tr>\n<td align="center"><img src="'+img+'" width="'+w+'" height="'+h+'" border="0" alt="" title="Foto: '+foto+'"></td>\n</tr>\n'+
'<tr>\n<td align="center" id="copyright">&copy; Song Records Norway</td>\n</tr>\n'+
'<tr align="center">\n<td align="center"><br><form><input type="button" onClick="javascript:window.close();" value="Lukk vinduet"></form></td>\n</tr>\n</table>\n'+
'</body>\n\n</html>\n';

// Write it all out
var win = open('',id,params);
win.document.write(msg);
win.document.close();
}
