// Compatibile con XHTML 1.1
//For more scripts visit http://www.netpedia.com 


var width,height
var image,ext
var cond1,cond2,scroll
function transferview(image,width,height) {
        if (width==0) cond1=" "
                else cond1="width="+(width+20)+"";
        if (height==0) {cond2=" ";
                        scroll="yes"}
                else {cond2="height="+(height+70)+"";
                      scroll="no"};

        var s0 ="<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'"
		var s01 ="'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>"
        var s02 ="<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='it' lang='it'>"

		var s1 ="<head><title>Immagine ingrandita</title>"
        var s15=""
        var s2 ="</head><body><div style='text-align:center'><img src='"+image+"' style='border-width:0' />"
        var s3 ="<form action=""><input type='button' value='Chiudi la finestra'"+
                " onClick='self.close()' />"
        var s4 ="</form></div></body>"

        ImageWindow=window.open("", "newwin"+width,
"toolbar=no,scrollbars="+scroll+",menubar=no,"+cond1+","+cond2);
        ImageWindow.document.write(s0+s01+s02+s1+s15+s2+s3+s4);
        ImageWindow.document.close();
}
