function showThumb(pFileName,pTitle,pWidth,pHeight)
{
  var sW = parseInt(screen.availWidth/2);
  var sH = parseInt(screen.availHeight/2);
  var iW = parseInt( pWidth /2);
  var iH = parseInt( pHeight /2);
  
  var left = parseInt(sW - iW);
  var top = parseInt(sH - iH);
  var windowFeatures = "left=" +left+ ",top=" +top+ "screenX=" +left+ ",screenY=" +top+",toolbars=no,location=no,directories=no,status=no,menubar=no";
	
  var win = window.open("","win",windowFeatures);
  
  with (win.document)
  {
   open("text/html", "replace");
   
   write('<html><head><title>' +pTitle+ '</title><link rel="stylesheet" type="text/css" href="css/enlarge.css" /><script language="javascript">');
   write('function changeScreenSize(w,h) {window.resizeTo(w,h)} </script');
   write('></head><body oncontextmenu="return false;" onload="changeScreenSize(' +pWidth+ ',' +pHeight+ ')">');
   write('<a href="javascript:void(0)" onclick="window.close()"><img src="' +pFileName+ '" border="0" align="top"></a></body></html>');
   
   close();	
  }
}


