// JavaScript Document

function display(myimage) {
	 html = "<HTML><HEAD><TITLE>Screenshot</TITLE>" +
	  "</HEAD><BODY LEFTMARGIN=0 " 
	  + "MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER>" 
	  + "<IMG SRC='" + myimage + "' BORDER=0 NAME=image " 
	  + "onload='window.resizeTo(document.image.width,document.image.height)'>"
	  + "</CENTER>" 
	  + "</BODY></HTML>";
	 popup= window.open('','image','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	 popup.document.open();
	 popup.document.write(html);
	 //popup.document.focus();
	 //popup.document.close();
}



<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function openshot(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
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 +20;
	altez=foto1.height +20;
	l=18;
	t=18;
	l=(screen.availWidth - largh)/2;
	t=(screen.availHeight - altez)/2;
  stringa= "left="+l+",top="+t+ ",width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
//  End -->



function resizeiframe(){
	//alert(document.body.scrollHeight);
	parent.window.document.getElementById("news_in").height = document.body.scrollHeight;
}
