//*******************************************************************
//* File      : fgpsoftware7.js
//* Creato il : 06/06/2006 - ultimo aggiornamento il 06/06/2006
//* Autore    : Graziano Fasano graziano@fgpsoftware.it
//*
//* Avviso: La riproduzione o distribuzione non autorizzata di queste 
//* pagine o di parte di esse, sarà perseguibile civilmente e 
//* penalmente.
//*******************************************************************

function finestra (nome,titolo,icona,corpo,larghezza,sfondo,colore) {
 apice="'";
 testo ='<table border="0" cellpadding="0" cellspacing="0" width="';
 if (larghezza == 0)
  testo+='100%';
 else
  testo+=larghezza;
 testo+='">'; //'+larghezza+'">';
 testo+='<tr>';
 testo+='<td class=cornicetopsx height="22px" width="5px" rowspan="2"></td>';
 if (icona != '')
  testo+='<td class=cornicetop height="22px" nowrap width="0" rowspan="2">'+icona+'</td>';
 testo+='<td class=cornicetop height="22px" nowrap width="'+eval(larghezza-57+5)+'px" rowspan="2">'+titolo+'</td>';
 if (icona == '')
  testo+='<td class=cornicetop height="22px" nowrap width="0px" rowspan="2"></td>';
 testo+='<td class=cornicetop height="22px" nowrap valign="middle" align="right" rowspan="2">';
 testo+='<a href="JavaScript:eventfinestra('+apice+nome+apice+');" title="Riduci"><img id=btn'+nome+' border="0" src="/temi/1/btnRiduci.gif" alt="Riduci"></a></td>';
 testo+='<td class=cornicetopdx height="22px" width="5px" rowspan="2"></td>';
 testo+='<td height="5px" width="5px"></td>';
 testo+='</tr>';
 testo+='<tr>';
 testo+='<td class=ombra height="5px" width="5px"></td>';
 testo+='</tr>';
 testo+='<tr>';
 testo+='<td class=corniceverticalesx width="5px" bgcolor='+colore+' height="0px"></td>';
 testo+='<td bgcolor='+colore;
// if (larghezza == 0)
 if (icona != '')
  testo+=' width="'+eval(larghezza-15-1)+'px"';
 else
  testo+=' width="'+eval(larghezza-15)+'px"';
// else
//  testo+=' width="100%"';
 testo+=' colspan="3" height="0px">';
 testo+='<table id='+nome+' border="0" width="100%" cellspacing="0" cellpadding="0" background="'+sfondo+'">';
 testo+='<tr><td>';
// lscr=corpo.indexOf("<\u002Fscript>");
// iscr=corpo.indexOf("<script>");
// scr='';
// if((iscr)>-1)scr=corpo.slice(iscr+8,lscr);
 testo+=unescape(corpo);
 testo+='</td></tr>';
 testo+='</table>';
 testo+='</td>';
 testo+='<td class=corniceverticaledx width="5px" bgcolor='+colore+' height="0px"></td>';
 testo+='<td class=ombra width="5px" height="0px"></td>';
 testo+='</tr>';
 testo+='<tr>';
 testo+='<td valign="top" height="3px" class=cornicebottomsx width="5px"></td>';
 testo+='<td class=cornicebottom valign="top" height="3px" colspan="3"></td>';
 testo+='<td class=cornicebottomdx width="5px"></td>';
 testo+='<td class=ombra width="5px"></td>';
 testo+='</tr>';
 testo+='<tr>';
 testo+='<td valign="top" height="5px" width="5px"></td>';
 testo+='<td class=ombra valign="top" height="5px" colspan="3"></td>';
 testo+='<td class=ombra valign="top" height="5px" width="5px"></td>';
 testo+='<td class=ombra valign="top" height="5px" width="5px"></td>';
 testo+='</tr>';
 testo+='<tr>';
 testo+='<td valign="top" height="1px" width="5px"></td>';
 testo+='<td valign="top" height="1px" colspan="3px"><img border="0" src="/images/vuoto.gif" width="1px" height="2px"></td>';
 testo+='<td valign="top" height="1px" width="5px"></td>';
 testo+='<td valign="top" height="1px" width="5px"></td>';
 testo+='</tr>';
 testo+='</table>';
 return testo;
}
