var newW=null
var img=null
function OpenImgWindow(imageName,alt,posLeft,posTop,aw,ah) 
{
  img=new Image()
  img.src=imageName
  if (aw != null)
    w=aw
  else
    w=img.width
  if (ah != null)
    h=ah
  else
    h=img.height
  if (posLeft == null)
    posLeft=0
  if (posTop == null)
    posTop=0
  if(newW != null) 
    if(!newW.closed) 
      newW.close()

  //newW= window.open("","newW","width="+w+",height="+h+",left="+posLeft+",top="+posTop)
  newW= window.open("","newW","width="+w+",height="+h)
  newW.document.open()
  newW.document.writeln('<html><title>'+alt+'</title><body bgcolor="#004a98" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">') 
  newW.document.writeln('<img src='+imageName+' alt='+alt+'>') //' width='+w+' height='+h+
  newW.document.write('</body></html>')
  newW.document.close()
  img=null
  newW.focus()
}

function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=0,scrollbars=0")')
}