//open a large pic within win
function fechaMyWin()
{
//script
  //script
  if (MyWin!=null)
  {
     if (!MyWin.closed)
     {
        MyWin.close();
     }
  }
  else
  {
     MyWin=null;
  }

}

//script
function ir_image_gr(indice)
{

  //script
  imageWidth=imageGr[indice].width;
  imageHeight=imageGr[indice].height;
  
  if (imageWidth == 0)
  {
     imageWidth = 500;
  }
  
  if (imageHeight == 0)
  {
     imageHeight = 500;
  }
    
  fechaMyWin();
    
  //script
  MyWin=window.open("","ImgGr"+indice,"width="+imageWidth+",height="+imageHeight);
  
  MyWin.document.open();  
  MyWin.document.write('<HEAD> <STYLE> BODY {margin:0px; position:ABSOLUTE; TOP:Opx;LEFT:0px;} </STYLE><BODY><IMG SRC="'+imageGr[indice].src+'"></BODY>')
  MyWin.document.close();

  MyWin.status = "ImgGr"+indice;
  MyWin.document.title = "-";
    
  //script
  MyWin.focus();
  
}

