/*
 * imageclick
 *
 * Copyright (c) 2007 Mats Tande, G&R AS
 *
 */

function imageClick (imgUrl, w, h, objId)
   {
   var features = "toolbar=no,status=no,resizable=yes,width=" + w + ",height=" + h;
   var newWin = open ('', "NewWin"+objId, features);
   if (!newWin) return;
   newWin.document.writeln ('<HTML><HEAD><TITLE>Image window (click to close)</TITLE></HEAD>');
   newWin.document.writeln ('<BODY onClick="window.close();" STYLE="margin: 0; padding: 0">');
   newWin.document.writeln ('<IMG ALT="" TITLE="Click to close" SRC="' + imgUrl + '" WIDTH=' + w + ' HEIGHT=' + h + '>');
   newWin.document.writeln ('</BODY></HTML>');
   newWin.document.close();
   newWin.focus();
   }

