function displayimage(file,width,height) {
	winwidth = Math.min(screen.width-30,width+30);
	winheight = Math.min(screen.height-60,height+70);
			
	window.open('image.html?file=' + file + '&width=' + width + '&height=' + height,'ImageViewer','width=' + winwidth + ',height=' + winheight + ',resizable=yes,dependent=yes,menubar=no,status=no,toolbar=no');
}

