function OpenComments (c) {
    window.open(c,
                    'comments',
                    'width=480,height=480,scrollbars=yes,status=yes');
}



function image_window (aname, imgname, width, height, title, caption)
{
 	realheight = height-(-40);
 	var picture = window.open ("", aname, "toolbar=no,width=" + width +",height=" + realheight +",directories=no,status=no,scrollbars=yes,resize=no,menubar=no");
	picture.document.open ("text/html");
	picture.document.write ('<html>');
	picture.document.write ('<head><title>' + title + '</title>');
	picture.document.write ('<link rel=stylesheet href="def.css" type="text/css"></head>');
	picture.document.write ('<body>');
	picture.document.write ('<div class="image"><img src=images/' + imgname + '></div>');
	picture.document.write ('<div class="caption">' + caption + '</div>');
	// picture.document.write ('<div class="closewindow"><a href="#" onclick="window.close()" onfocus="this.blur()">close window</a></div>');
	picture.document.write ('</body></html>');
	picture.document.close();
}