function IE_HtmlRewrite(objParent) {
	if (window.ActiveXObject && objParent) {
		objParent.innerHTML = objParent.innerHTML;
	}
}

function AutoResize(att){
  tmpatt = att;
  foto1= new Image();
  foto1.src=(tmpatt);
  Controlla(tmpatt);
}

function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}

 function viewFoto(img){
  largh=foto1.width;
  altez=foto1.height;
  stringa="width="+largh+",height="+altez+",scrollbars=yes";
  finestra=window.open("/share/imgresize.asp?img="+ img,"orgview",stringa);
  finestra.focus();
 }
