	var	HeightFoto;

	function Intestazione(intesta_img)
	{
		document.writeln('<td background="'+intesta_img+'" width="780" height="77" valign="middle" align="center">');
		if (navigator.appName=="Netscape")
		{
			document.writeln('<img style="background-image:'+intesta_img+'" src="'+intesta_img+'">');
		}
		document.writeln('</td>');
	}

function VisFoto(foto,Height,Width,descr,tipo_foto,isnew) {
   var Height1;
   var Top;
   var Top1;
   var TreCentoTre;

   if ((303-Height) < 20) {
      TreCentoTre = 333;
   } else {
      TreCentoTre = 303;
   }
		
   Height1 = Height - 20;
      
   if ('V' == tipo_foto) {
      Top = (436-Height)/2;
   } else {
      Top = (TreCentoTre-Height)/2;
   }

   Top1 = Top - 20;
		
/*
		if (Height-Width <= 70 || Width-Height <= 70)
		{
			Top = Top + 20;
			Top1 = Top1 + 20;
		}
*/

		document.writeln('<v:shape id="_x0000_s206" type="#_x0000_t75"');
		document.writeln('style="width:'+Width+';height:'+Height+';position:absolute;top:'+Top1+';z-index:-1">');
		document.writeln('<v:imagedata src="'+foto+'"/>');
		document.writeln('</v:shape>');
		document.writeln('<!--[if vml]>');
   document.writeln('<div '); 
   document.writeln('style="position:relative;top:'+Top+';left:17;width:'+Width+';height:'+Height1+';z-index:-2;');
   document.writeln('background-color:#2a2a2a;">');
   document.writeln('</div>');
   document.writeln('<div ');
   document.writeln('style="position:relative;top:'+Top+';left:17;width:'+Width+';height:20;z-index:-2;');
   document.writeln('background-color:#2a2a2a; color:white">');
//		document.writeln('background-color:#2a2a2a; color:#0090FF">');
   document.writeln('<b><font face="Arial, Coursive"');
   
   if (isnew) {
      document.writeln('size="-1">'+descr+'&nbsp&nbsp</font></b><img src="icona_newfoto.jpg">');
   } else {
      document.writeln('size="-1">'+descr+'</font></b>');
   }

   document.writeln('</div>');
   document.writeln('<![endif]-->');
} // VisFoto()

function NetscapeOrOpera(foto,Height,Width,fila,descr,tipo_foto,isnew) {
   var TopFotoNet; var TopOmbraNet; var TopFotoOpe; var TopOmbraOpe; var LeftFotoNet;
   var Width1; var Height1; var NumBR; var i;
   var Height2Ope; var Height3Ope; var Height2Net; var Height3Net; var LeftOmbraNet;
   var TDHeightOpe; var LeftOmbraOpe; 
   var TreCentoTre;
   
   if ((303-Height) < 20) {
      TreCentoTre = 333;
   } else {
      TreCentoTre = 303;
   }

   Width1 = Width;
   Height1 = Height;
   Height2Ope = Height1 + 15;
   Height3Ope = 34;
   Height2Net = Height1+17;
   
   if (fila == 1) {
      HeightFoto=100;
   } else if (fila == 2) {
      HeightFoto=160;
   }

   if (tipo_foto == 'V') {
      TopFotoNet=HeightFoto+((436-Height1)/2)-17;
      TopOmbraNet=HeightFoto+((436-Height1)/2);
      TopFotoOpe=((436-Height1)/2)-(Height3Ope/2);
      TopOmbraOpe=(436-Height1)/2;
      HeightFoto = HeightFoto+436;
   } else {
      TopFotoNet=HeightFoto+((TreCentoTre-Height1)/2)-17;
      TopOmbraNet=HeightFoto+((TreCentoTre-Height1)/2);
      TopFotoOpe=((TreCentoTre-Height1)/2)-(Height3Ope/2);
      TopOmbraOpe=(TreCentoTre-Height1)/2;
      HeightFoto = HeightFoto+TreCentoTre;
   }
   
//   if (navigator.appName=="Netscape") {
      LeftOmbraNet=(524/2)-((Width1/2)+1) +17;
      LeftFotoNet=(524/2)-((Width1/2)+1);
      TDHeightOpe = Height2Net - 34;
      document.writeln('<div style="position:absolute;top:'+TopOmbraNet+';left:'+LeftOmbraNet+';width:'+Width1+';height:'+Height2Net+';background-color:#2a2a2a;color:white">');
      document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="'+Width1+'" border="0" height="'+Height2Net+'"><tr><td  height="'+TDHeightOpe+'"></td></tr>');
      document.writeln('<tr><td  height="34" align="center" valign="middle" style="color:#ffffff">');
      
      if (isnew) {
         document.writeln('<b><font face="Arial, Coursive" size="-1">'+descr+'&nbsp&nbsp</font></b><img src="icona_newfoto.jpg">');
      } else {
         document.writeln('<b><font face="Arial, Coursive" size="-1">'+descr+'</font></b>');
      }
         
      document.writeln('</td></tr></table>');
      document.writeln('</div>');
      document.writeln('<div style="width:'+Width1+';height:'+Height1+';position:absolute;top:'+TopFotoNet+';left:'+LeftFotoNet+'">');
      document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="'+Width1+'" border="0" height="'+Height1+'" background="'+foto+'"><tr><td></td></tr></table>');
//ori      document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="'+Width1+'" border="0" height="'+Height1+'" background="'+foto+'"><tr><td><img style="background-image:'+foto+'"></td></tr></table>');
      document.writeln('</div>');
/*   } else {
      LeftFotoOpe=(524/2)-((Width1/2)+1);
      LeftOmbraOpe=(524/2)-((Width1/2)+1)+(Height3Ope/2);
      TDHeightOpe = Height2Ope - 32;
      document.writeln('<div style="position:absolute;top:'+TopOmbraOpe+';left:'+LeftOmbraOpe+';width:'+Width1+';height:'+Height2Ope+';background-color:#2a2a2a;color:white">');
      document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="'+Width1+'" border="0" height="'+Height2Ope+'"><tr><td  height="'+TDHeightOpe+'"></td></tr>');
      document.writeln('<tr><td  height="32" align="center" valign="middle" style="color:#ffffff">');

      if (isnew) {
         document.writeln('<b><font face="Arial, Coursive" size="-1">'+descr+'&nbsp&nbsp</font></b><img src="icona_newfoto.jpg">');
      } else {
         document.writeln('<b><font face="Arial, Coursive" size="-1">'+descr+'</font></b>');
      }
         
      document.writeln('</td></tr></table>');
      document.writeln('</div>');
      document.writeln('<div style="width:'+Width1+';height:'+Height1+';position:absolute;top:'+TopFotoOpe+';left:'+LeftFotoOpe+'">');
      document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="'+Width1+'" border="0" height="'+Height1+'"><tr><td background="'+foto+'"></td></tr></table>');
      document.writeln('</div>');
   }*/
} // NetscapeOrOpera()

	function ReturnHomeOpeNet(italian)
	{	
		if (navigator.appName=="Netscape")
		{
//OLD al chiamante	document.writeln('<a style="color:#fef783" href="#" Onclick="history.go(-1)">');
//Direttamente a index.html o versioneitaliana.html INIZIO
			if (italian)
				document.writeln('<a style="color:#fef783" href="index.php">');
			else
				document.writeln('<a style="color:#fef783" href="versioneinglese.php">');
//Direttamente a index.html o versioneitaliana.html FINE
		}
		else
		{
//OLD al chiamante	document.writeln('<a style="color:#fef783" href="'+history.previous+'">');
//Direttamente a index.html o versioneitaliana.html INIZIO
			if (italian)
				document.writeln('<a style="color:#fef783" href="index.php">');
			else
				document.writeln('<a style="color:#fef783" href="versioneinglese.php">');
//Direttamente a index.html o versioneitaliana.html FINE
		}
	}
	
	function ReturnHomeIE(italian)
	{	
		document.writeln('<!--[if vml]>');
//OLD chiamante	document.writeln('<a style="color:#fef783" href="#" Onclick="history.go(-1)">');
//Direttamente a index.html o versioneitaliana.html INIZIO
		if (italian)
			document.writeln('<a style="color:#fef783" href="index.php">');
		else
			document.writeln('<a style="color:#fef783" href="versioneinglese.php">');
//Direttamente a index.html o versioneitaliana.html FINE
		document.writeln('<![endif]-->');
	}

	function TabNewIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<table width="100%" height="100%" border="1" cellpadding="0" bordercolor="#000000" cellspacing="0">');
		document.writeln('<tr><td width="100%" height="100%">');
		document.writeln('<table bgcolor="#000000" width="169" height="56" border="2" bordercolor="#ffcc00" cellpadding="0" cellspacing="0">');
		document.writeln('<![endif]-->');
	}
	
	function TabNewNetOrOpe()
	{
		if (navigator.appName=="Netscape")
		{
			document.writeln('<table width="100%" height="100%" bgcolor="#000000" cellpadding="0" cellspacing="0">');
			document.writeln('<tr><td width="100%" height="100%">');
			document.writeln('<table width="171" height="58" bgcolor="#ffcc00" cellpadding="0" cellspacing="0" valign="middle" align="center">');
			document.writeln('<tr><td width="100%" height="100%">');
			document.writeln('<table bgcolor="#000000" width="169" height="56" cellpadding="0" cellspacing="0" valign="middle" align="center">');
		}
		else
		{
			document.writeln('<table width="173" height="60" bgcolor="#000000" cellpadding="0" cellspacing="0">');
			document.writeln('<tr><td width="171" height="1" bgcolor="#000000"></td></tr><tr><td width="100%" height="58">');
			document.writeln('<table width="171" height="58" bgcolor="#ffcc00" cellpadding="0" cellspacing="0" valign="middle" align="center">');
			document.writeln('<tr><td width="169" height="1" bgcolor="#ffcc00"></td></tr><tr><td width="100%" height="100%">');
			document.writeln('<table bgcolor="#000000" width="169" height="56" cellpadding="0" cellspacing="0" valign="middle" align="center">');
		}
	}

	function TabNewEndNetOrOpe()
	{
		document.writeln('</td></tr></table>');
	}
	
	function IconaNewOpeNet(nome_link)
	{
		document.writeln('<td width="41" height="25" valign="bottom" align="left">');
		document.writeln('<img src="icona_new.jpg" border="0" align="absbottom" name="'+nome_link+'" onmouseover="document.'+nome_link+'.src=\'icona_freccia.jpg\'" onmouseout="document.'+nome_link+'.src=\'icona_new.jpg\'">');
		document.writeln('</td>');
	}
	
	function IconaNew(nome_link)
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<td width="41" height="25" valign="bottom" align="left">');
		document.writeln('<img src="icona_new.jpg" border="0" align="absbottom" name="'+nome_link+'" onmouseover="document.'+nome_link+'.src=\'icona_freccia.jpg\'" onmouseout="document.'+nome_link+'.src=\'icona_new.jpg\'">');
		document.writeln('</td>');
		document.writeln('<![endif]-->');
	}

	function IconaNewVertOpeNet(nome_link,Width,Height,ColSpan)
	{
		if (0 < ColSpan)
		{
			document.writeln('<td width="'+Width+'" height="'+Height+'" valign="top" align="center" colspan="'+ColSpan+'">');
			document.writeln('<img src="icona_newvert.jpg" border="0" align="abstop" name="'+nome_link+'" onmouseover="document.'+nome_link+'.src=\'icona_frecciavert.jpg\'" onmouseout="document.'+nome_link+'.src=\'icona_newvert.jpg\'">');
			document.writeln('</td>');
		}
		else
		{
			document.writeln('<td width="'+Width+'" height="'+Height+'" valign="top" align="center">');
			document.writeln('<img src="icona_newvert.jpg" border="0" align="abstop" name="'+nome_link+'" onmouseover="document.'+nome_link+'.src=\'icona_frecciavert.jpg\'" onmouseout="document.'+nome_link+'.src=\'icona_newvert.jpg\'">');
			document.writeln('</td>');
		}
	}
	
	function IconaNewVert(nome_link,Width,Height,ColSpan)
	{
		if (0 < ColSpan)
		{
			document.writeln('<!--[if vml]>');
			document.writeln('<td width="'+Width+'" height="'+Height+'" valign="top" align="center" colspan="'+ColSpan+'">');
			document.writeln('<img src="icona_newvert.jpg" border="0" align="abstop" name="'+nome_link+'" onmouseover="document.'+nome_link+'.src=\'icona_frecciavert.jpg\'" onmouseout="document.'+nome_link+'.src=\'icona_newvert.jpg\'">');
			document.writeln('</td>');
			document.writeln('<![endif]-->');
		}
		else
		{
			document.writeln('<!--[if vml]>');
			document.writeln('<td width="'+Width+'" height="'+Height+'" valign="top" align="center">');
			document.writeln('<img src="icona_newvert.jpg" border="0" align="abstop" name="'+nome_link+'" onmouseover="document.'+nome_link+'.src=\'icona_frecciavert.jpg\'" onmouseout="document.'+nome_link+'.src=\'icona_newvert.jpg\'">');
			document.writeln('</td>');
			document.writeln('<![endif]-->');
		}
	}

	function SubmitOmbraIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="position:absolute;top:373;left:142;width:61;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="61" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function SubmitIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="width:61;height:20;position:absolute;top:369;left:138">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="61" border="0" Height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="submit" name="nuovo" value="Submit"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function ConfermaOmbraIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="position:absolute;top:373;left:142;width:87;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="87" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}
	
	function ConfermaIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="width:87;height:20;position:absolute;top:369;left:138">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="87" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="submit" name="nuovo" value="Conferma"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}	

	function SubmitOmbraNet()
	{
		document.writeln('<div style="position:absolute;top:381;left:138;width:63;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="63" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function SubmitNet()
	{
		document.writeln('<div style="width:61;height:20;position:absolute;top:377;left:134">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="61" border="0" Height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="submit" name="nuovo" value="Submit"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function ConfermaOmbraNet()
	{
		document.writeln('<div style="position:absolute;top:381;left:138;width:89;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="89" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function ConfermaNet()
	{
		document.writeln('<div style="width:87;height:20;position:absolute;top:377;left:134">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="87" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="submit" name="nuovo" value="Conferma"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}	
	
	function CancelOmbraIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="position:absolute;top:373;left:242;width:60;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="60" border="0" Height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function CancelIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="width:60;height:20;position:absolute;top:369;left:238">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="60" border="0" Height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="reset" value="Cancel"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function AnnullaOmbraIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="position:absolute;top:373;left:266;width:64;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="64" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function AnnullaIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="width:64;height:20;position:absolute;top:369;left:262">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="64" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="reset" value="Annulla"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function CancelOmbraNet()
	{
		document.writeln('<div style="position:absolute;top:381;left:238;width:62;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="62" border="0" Height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function CancelNet()
	{
		document.writeln('<div style="width:60;height:20;position:absolute;top:377;left:234">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="60" border="0" Height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="reset" value="Cancel"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}
	
	function AnnullaOmbraNet()
	{
		document.writeln('<div style="position:absolute;top:381;left:262;width:66;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="66" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function AnnullaNet()
	{
		document.writeln('<div style="width:64;height:20;position:absolute;top:377;left:258">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="64" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type="reset" value="Annulla"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function VisualizzaOmbraIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="position:absolute;top:177;left:343;width:186;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="186" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function VisualizzaIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="width:186;height:20;position:absolute;top:173;left:339">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="186" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type=submit name="altri" value="Visualizza Messaggi"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function AlIE()
	{
		document.writeln('<!--[if vml]>');
      		document.writeln('<td width="183" valign="top" align="right">');
      		document.writeln('<font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>Al [gg/mm/aaaa]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="85" align="right"><INPUT TYPE="text" name="enddate" size="8"></td>');
		document.writeln('<![endif]-->');
	}

	function DalIE()
	{
		document.writeln('<!--[if vml]>');
      		document.writeln('<td width="125" style="padding-left: 8px" valign="top" align="left">');
      		document.writeln('<font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>Dal [gg/mm/aaaa]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="112" align="left"><INPUT TYPE="text" name="startdate" size="8"></td>');
		document.writeln('<![endif]-->');
	}

	function ViewOmbraIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="position:absolute;top:177;left:379;width:150;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="150" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function ViewIE()
	{
		document.writeln('<!--[if vml]>');
		document.writeln('<div style="width:150;height:20;position:absolute;top:173;left:375">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="150" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type=submit name="altri" value="View Comments"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
		document.writeln('<![endif]-->');
	}

	function EnddateIE()
	{
		document.writeln('<!--[if vml]>');
      		document.writeln('<td width="185" valign="top" align="right"><font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>End Date [dd/mm/yyyy]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="85" align="right"><INPUT TYPE="text" name="enddate" size="8"></td>');
		document.writeln('<![endif]-->');
	}

	function StartdateIE()
	{
		document.writeln('<!--[if vml]>');
      		document.writeln('<td width="155" style="padding-left: 8px" valign="top" align="left">');
      		document.writeln('<font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>Start Date [dd/mm/yyyy]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="80" align="right"><INPUT TYPE="text" name="startdate" size="8"></td>');
		document.writeln('<![endif]-->');
	}

	function VisualizzaOmbraNet()
	{
		document.writeln('<div style="position:absolute;top:177;left:347;width:188;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="188" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function VisualizzaNet()
	{
		document.writeln('<div style="width:186;height:20;position:absolute;top:173;left:343">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="186" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type=submit name="altri" value="Visualizza Messaggi"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function AlNet()
	{
      		document.writeln('<td width="183" valign="top" align="right">');
      		document.writeln('<font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>Al [gg/mm/aaaa]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="85" align="right"><INPUT TYPE="text" name="enddate" size="8"></td>');
	}

	function DalNet()
	{
      		document.writeln('<td width="125" style="padding-left: 8px" valign="top" align="left">');
      		document.writeln('<font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>Dal [gg/mm/aaaa]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="112" align="left"><INPUT TYPE="text" name="startdate" size="8"></td>');
	}
	
	function ViewOmbraNet()
	{
		document.writeln('<div style="position:absolute;top:177;left:383;width:152;height:20;background-color:#2a2a2a">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="152" border="0" height="20">');
		document.writeln('<tr><td style="color:#ffffff"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function ViewNet()
	{
		document.writeln('<div style="width:150;height:20;position:absolute;top:173;left:379">');
		document.writeln('<table cellpadding="0" cellspacing="0" leftmargin="0" width="150" border="0" height="20">');
		document.writeln('<tr><td><input style="font-family:Verdana;cursor:hand;border:0" type=submit name="altri" value="View Comments"></td></tr>');
		document.writeln('</table>');
		document.writeln('</div>');
	}

	function EnddateNet()
	{
      		document.writeln('<td width="185" valign="top" align="right"><font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>End Date [dd/mm/yyyy]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="85" align="right"><INPUT TYPE="text" name="enddate" size="8"></td>');
	}

	function StartdateNet()
	{
      		document.writeln('<td width="155" style="padding-left: 8px" valign="top" align="left">');
      		document.writeln('<font face="Verdana" size="-2" color="#fef783">');
      		document.writeln('<b>Start Date [dd/mm/yyyy]</b></font>');
      		document.writeln('</td>');
		document.writeln('<td width="80" align="right"><INPUT TYPE="text" name="startdate" size="8"></td>');
	}

function closeNewDisplayModeDiv() {
   newDisplayModeDiv.style.visibility="hidden";
}

function closeFoto(visualOrder) {
   var objFoto;
   var objTesto;
   var objBackground = parent.document.getElementById('zoomBackgroundDiv');

   if (visualOrder == "Ori") {
      objFoto = parent.document.getElementById('fotoOriDiv');
      objTesto = parent.document.getElementById('testoOriDiv');
   } else {
      objFoto = parent.document.getElementById('fotoVerDiv');
      objTesto = parent.document.getElementById('testoVerDiv');
   }

   objBackground.parentNode.removeChild(objBackground);
   objFoto.parentNode.removeChild(objFoto);
   objTesto.parentNode.removeChild(objTesto);

//   objBackground.style.visibility="hidden";
//   objFoto.style.visibility="hidden";
//   objTesto.style.visibility="hidden";
}

function riduciFoto(cliente,bgH, bgW, visualOrder, fotoName, fotoW, fotoH, fotoNameMini, fotoMiniW, fotoMiniH, descrFoto) {
   var output;
   var objFoto;
   var objTesto;
   var testoTop = fotoMiniH+20;
   var fotoTestoLeft = (bgW-fotoMiniW) / 2;
   var bgHMSIE = bgH+6;
   var objBackground = parent.document.getElementById('zoomBackgroundDiv');

   if (visualOrder == "Ori") {
      objFoto = parent.document.getElementById('fotoOriDiv');
      objTesto = parent.document.getElementById('testoOriDiv');
   } else {
      objFoto = parent.document.getElementById('fotoVerDiv');
      objTesto = parent.document.getElementById('testoVerDiv');
   }

   if (cliente == "MSIE") {
      objBackground.style.height=bgHMSIE+"px";
   } else {
      objBackground.style.height=bgH+"px";
   }

   objBackground.style.visibility="visible";
   objFoto.style.visibility="visible";
   objFoto.style.width=fotoMiniW+"px";   objFoto.style.left=fotoTestoLeft+"px";   objTesto.style.width=fotoMiniW+"px";   objTesto.style.top=testoTop+"px";   objTesto.style.left=fotoTestoLeft+"px";   objTesto.style.right=fotoTestoLeft+"px";   objTesto.style.visibility="visible";
   objFoto.innerHTML = "<img src='"+fotoNameMini+"'>";
   output = "<table width='100%' border='0'><tr><td width='90%' align='left' border='0'>";         

   if (visualOrder == "Ori") {       
      output += "<font face='Verdana' size='-1' color='#ffffff'><b>"+descrFoto+"</b></font></td>";
   } else {
      output += "<font face='Verdana' size='-2' color='#ffffff'><b>"+descrFoto+"</b></font></td>";
   }

   output += "<td width='5%' align='right'>";
   output += "<a href='javascript:ingrandisciFoto(\""+cliente+"\","+bgH+","+bgW+",\""+visualOrder+"\",\""+fotoName+"\","+fotoW+",";
   output += fotoH+",\""+fotoNameMini+"\","+fotoMiniW+","+fotoMiniH+",\""+descrFoto+"\");'>";
   output += "<img border='0' src='ingrandisciFoto.gif'></a></td>";
   output += "<td width='5%' align='right'><a href='javascript:closeFoto(\""+visualOrder+"\");'>";
   output += "<img border='0' src='chiudiZoomFoto.gif'></a></td></tr></table>";
   objTesto.innerHTML = output;
}

function ingrandisciFoto(cliente,bgH, bgW, visualOrder, fotoName, fotoW, fotoH, fotoNameMini, fotoMiniW, fotoMiniH, descrFoto) {	
   var output;
   var objFoto;
   var objTesto;
   var testoTop = fotoH+20;
   var fotoTestoLeft = (bgW-fotoW) / 2;
   var bgHMSIE = bgH+6;
   var objBackground = parent.document.getElementById('zoomBackgroundDiv');

   if (visualOrder == "Ori") {
      objFoto = parent.document.getElementById('fotoOriDiv');
      objTesto = parent.document.getElementById('testoOriDiv');
   } else {
      objFoto = parent.document.getElementById('fotoVerDiv');
      objTesto = parent.document.getElementById('testoVerDiv');
   }

   if (cliente == "MSIE") {
      objBackground.style.height=bgHMSIE+"px";
   } else {
      objBackground.style.height=bgH+"px";
   }

   objBackground.style.visibility="visible";
   objFoto.style.visibility="visible";
   objFoto.style.width=fotoW+"px";   objFoto.style.left=fotoTestoLeft+"px";   objTesto.style.width=fotoW+"px";   objTesto.style.top=testoTop+"px";   objTesto.style.left=fotoTestoLeft+"px";   objTesto.style.right=fotoTestoLeft+"px";   objTesto.style.visibility="visible";
   objFoto.innerHTML = "<img src='"+fotoName+"'>";
   output = "<table width='100%' border='0'><tr><td width='90%' align='left' border='0'>";         
   output += "<font face='Verdana' size='-1' color='#ffffff'><b>"+descrFoto+"</b></font></td>";
   output += "<td width='5%' align='right'>";
   output += "<a href='javascript:riduciFoto(\""+cliente+"\","+bgH+","+bgW+",\""+visualOrder+"\",\""+fotoName+"\","+fotoW+",";
   output += fotoH+",\""+fotoNameMini+"\","+fotoMiniW+","+fotoMiniH+",\""+descrFoto+"\");'>";
   output += "<img border='0' src='riduciFoto.gif'></a></td>";
   output += "<td width='5%' align='right'><a href='javascript:closeFoto(\""+visualOrder+"\");'>";
   output += "<img border='0' src='chiudiZoomFoto.gif'></a></td></tr></table>";
   objTesto.innerHTML = output;
}

function openWebPage(urlToOpen, icona, iconaW, iconaH) {
   document.writeln('<p align="center"><a href="'+urlToOpen+'&pageW='+document.body.clientWidth+'"> ');
   document.writeln('<img src="'+icona+'" width="'+iconaW+'" height="'+iconaH+'" border="0"></a></p>');
}

function iframeWebPage(urlToOpen) {
   document.writeln('<iframe src="'+urlToOpen+'&pageH='+document.body.clientHeight+'" width="546" height="823" frameborder="0" ');
   document.writeln('name="showframe"></iframe>');
}

