<!-- Begin
function CaricaFoto(img,description){
  if(img!="image/none")
  {
     foto1= new Image();
     foto1.src=(img);
     Controlla(img,description);
  }
}

function Controlla(img,description){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img,description);
  }
  else{
    funzione="Controlla('"+img+"','"+description+"')";
    intervallo=setTimeout(funzione,20);
  }
}

function viewFoto(img,description){
  largh=foto1.width;
  altez=foto1.height+20;

//  alert(' ' + largh + ' '+ altez +'.');

  stringa="width="+largh+"',height="+altez;

//  alert(' ' + stringa + ' '+ altez +'.');

  if(foto1.width>750 || foto1.height>550)
  {
//  alert("test");
	finestra=window.open ('', 'newwindow', config='height=500,width=750, toolbar=no, menubar=yes, scrollbars=yes, resizable=yes,location=no, directories=no, status=no')
  }
  else
  {
  	finestra=window.open("","",stringa);
  }

  finestra.document.write("<html>");
  finestra.document.write("<head>");
  finestra.document.write("<title>Resimler</title>");
  finestra.document.write('<style>');
  finestra.document.write('body {margin: 0;}');
  finestra.document.write('#Header {background-color: #ECECF4; border-bottom: 1px solid black; height: 30px; width: '+foto1.width+'px;}');
  finestra.document.write('.CloseButton {position: relative; top: 0px; left: 0px; border: none;}');
  finestra.document.write('</style>');
  finestra.document.write("</head>");
  finestra.document.write("<body>");
  finestra.document.write("</div>");
  finestra.document.write("<div align='center'><a href='javascript:window.close();'><img src='"+img+"' border='0'></a></div></body></html>");
  -->
}


//  End -->
// resim linki asagidaki gibi olacak.
// javascript:CaricaFoto('resim.jpg')