function popImage(image,title) {
	title=title || 'Vestertruck';
	tcp=window.open('','tc','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=100,height=100');
	tcp.document.open();
	tcp.document.write('<html><head><title>'+title+'</title><script src="js/prototype.js"></script><script src="js/common.js"></script></head><body onLoad="resizeWin(self,$(\'pic\').width,$(\'pic\').height)" style="padding: 0px; margin: 0px; background-color: white;"><img id="pic" src="'+image+'" onClick="self.close()" style="cursor: hand"></body></html>')
	tcp.document.close();
}

function resizeWin(win,w,h) {
	iWidth = win.innerWidth?win.innerWidth:win.document.body.clientWidth;
	iHeight = win.innerHeight?win.innerHeight:win.document.body.clientHeight;
	iWidth = w - iWidth;
	iHeight = h - iHeight;
	win.resizeBy(iWidth, iHeight);
	win.focus();
}
