function __imageViewLink(imgUrl,title,backColor,cssFile,reuseWindow)
{
  var sTarget = '_viewLink';
  if (reuseWindow !=null && !reuseWindow)
    sTarget = '_blank';
  var pWin = window.open('',sTarget,'top=20,left=20,channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0');
  if (pWin)
  {
    pWin.focus();
    pWin.document.open();
    pWin.document.writeln('<html>');
    pWin.document.writeln('  <head>');
    pWin.document.writeln('    <meta http-equiv="Page-Exit" content="RevealTrans(Duration=0.3,Transition=12)" />'); 
    pWin.document.writeln('    <meta http-equiv="Imagetoolbar" content="no" />');
    pWin.document.writeln('    <meta http-equiv="MSThemeCompatible" content="no" />');
    pWin.document.writeln('    <meta name="MSSmartTagsPreventParsing" content="true" />');
    pWin.document.writeln('    <meta name="AutoSize" content="Off" />');
    if (title != null && title.length > 0)
      sTitle = title;
    pWin.document.writeln('    <title>'+sTitle+'<\/title>');
    var sBackColor = '#ffffff';
    if (backColor != null && backColor.length > 2)
      sBackColor = backColor;
    if (cssFile != null && cssFile.length > 5)
    {
      pWin.document.writeln('    <link href="' + cssFile + '" rel="StyleSheet" type="text/css" media="Screen"><\/link>');
      if (backColor != null && backColor.length > 2)
        bodyStyle = ' style="background: ' + sBackColor + ';"';
    }
    else
    {
      bodyStyle = ' style="background: ' + sBackColor + '; padding:4px; margin:10px 0px 0px 0px; overflow:auto; cursor:pointer;"';
      if (navigator.appName=='Microsoft Internet Explorer')
      bodyStyle += ' height:100%;';
      divStyle = ' style="width:100%;text-align:center;"';
      imgStyle = ' style="border:0px outset;"';
    }
    pWin.document.writeln('  <\/head>');
    pWin.document.writeln('  <body' + bodyStyle + ' onclick="window.close();" onload="window.resizeTo(document.getElementById(\'Image\').width+39,document.getElementById(\'Image\').height+109);">');
    pWin.document.writeln('    <div' +divStyle + '><img id="Image" src="' + imgUrl + '" alt="" title="&times;"' + imgStyle + ' /><\/div>');
    pWin.document.writeln('  <\/body>');
    pWin.document.write('<\/html>');
    pWin.document.close();
  }
  return pWin;
}
