function aprifoto(foto)
{
	img = new Image;
	img.src = foto;
	html = '<html>\n<head>\n<title>Président</title>\n<link href="css/stile.css" rel="stylesheet" type="text/css">\n</head>\n<body class="popup">\n<img src="' + foto + '" border=0 name=immagine onLoad="window.resizeTo(document.immagine.width+30,document.immagine.height+100)"><br><br><a href="javascript:window.close()">Close</a>\n</body>\n</html>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
 	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
};

function aprifile(file,w,h,s)
{
	 window.open(file,'',"height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars="+s);
};
	
function dammiElemID(str___id){
	try{
	   return document.getElementById(str___id);	
	}catch(ex){
	   try{
	       return document.all.item(str___id);
        }catch(exp){
    		gestErrCode(exp.number,exp.description);
	       	return null;
	   	}
   	}
}
