    <!--
txtImage=null; popUpImage=null; stext="";

function closeWindow(windowName){ eval('if (('+windowName+'!=null) &&  !'+windowName+'.closed){'+windowName+'.close()};');}

function ShowImage(imageName, text){
  stext=text;
  myImage = new Image();
  myImage.src = imageName;
  myImage.onLoad = openWindow1();

}

function openWindow1()
{
 if (!myImage.complete) {setTimeout("1000,openWindow1()");}
 else
 {
  setTimeout("1000,openWindow()");
 }
}


function openWindow()
{
  closeWindow('popUpImage');
  popUpImage = open( "", "popUpImage",  "resizable=yes,toolbar=no,scrollbars=yes,width=200,height=80,left=1,top=1");  
  pattern = /<(.*)>/;
  popUpImage.document.write( '<HTML><HEAD><TITLE>'+ stext.replace(pattern, "")+'</TITLE></HEAD><body  leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"><CENTER><IMG id="img" style="margin: 10px 10px;" SRC="'+myImage.src+'"><br><br><div style="width:300px">'+stext+'</div></CENTER></BODY></HTML>' );

  strok=(popUpImage.document.images[0].width*0.125);
  s = Math.round(stext.length/strok);
  if (s==0) s=15; else s=s*25;
  if(popUpImage.document.images[0].width<500){
  	width = 500;
  }else{
  	width = popUpImage.document.images[0].width;
  }
  if((width+40)>screen.width)
  	width = screen.width;
  else
  	width =width +100;
  if((popUpImage.document.images[0].height+s+100)<screen.height)
	  height = (popUpImage.document.images[0].height+s+100);
  else
	  height = screen.height;
  popUpImage.resizeTo(width, height);


}
    //-->

