<!--
//  data documento
function scdatadoc(){
 var D = new Date(document.lastModified);
 var Y = '';
 var X = D.getDate();
 if (X<10)  {Y = '0'+X+'-'} else {Y = X+'-'};
 X = D.getMonth()+1;
 if (X<10)  {Y = Y+'0'+X+'-'} else {Y = Y+X+'-'};
 X = D.getYear();
 if (X<100) {X = X+2000};
 if (X<200) {X = X+1900};
 Y = Y+X+' ';
 
 X = D.getHours();
 if (X<10)  {Y = Y+'0'+X+':'} else {Y = Y+X+':'};
 X = D.getMinutes();
 if (X<10)  {Y = Y+'0'+X+':'} else {Y = Y+X+':'};
 X = D.getSeconds();
 if (X<10)  {Y = Y+'0'+X} else {Y = Y+X};
 document.write(Y);
};



// blocco apertura cornice
function scinizio(){
t1='<center>'
  +' <table border=0 cellpadding=0 cellspacing=0><tr>'
  +'  <td width="1" height="1" cellpadding=0 cellspacing=0><img src="../images/ombratpsx.png" border=0></td>'
  +'  <td background="../images/ombratp.png" width="1" height="1"><img src="../images/ombratp.png" border=0></td>'
  +'  <td valign="bottom" width="1" height="1"><img src="../images/ombratpdx.png" border=0></td>'
  +' </tr><tr>'
  +'  <td width="1" height="1" background="../images/ombrasx.png"><img src="../images/ombrasx.png" border=0></td>'
  +'  <td height="100%" align="center">'
document.write(t1);
}
    
// blocco di chiusura cornice
function scfine(){
t1='  </td>'
  +'  <td valign=top width=1 height=1 background="../images/ombradx.png"><img src="../images/ombradx1.png" border=0></td>'
  +' </tr><tr>'
  +'  <td width=1 height=1><img src="../images/ombradwsx.png" border=0></td>'
  +'  <td background="../images/ombradw.png" width=1 height=1><img src="../images/ombradw1.png" border=0></td>'
  +'  <td width=1 height=1><img src="../images/ombradwdx.png" border=0></td>'
  +' </tr></table></center>'
document.write(t1);
}

// visualizzazione di una foto con cornice e didascalia
function scimmagine(immagine, didascalia){
document.write('<div class="didascalia"><p>');
scinizio();
document.write('<img src="' + immagine + '" border=0 alt="' + didascalia + '"><br>');
scfine();
document.write(didascalia + '</div>');
}
// visualizzazione di una foto con cornice senza didascalia
function scimmaginecop(immagine, alt){
document.write('<div class="didascalia"><p>');
scinizio();
document.write('<img src="' + immagine + '" border=0 alt="' + alt + '"><br>');
scfine();
document.write('</div>');
}

// testata della pagina
function sctestata(){
t1='<table class="sopra"><tr><td>'
  +'<div class="sottosx">&copy; &reg; <a href="http://www.prevato.it">franco prevato</a></div>'
  +'</td><td>'
  +'<div class="sottodx">&nbsp;</div>'
  +'</td></tr></table>'
document.write(t1);
}

// coda della pagina
function sccoda(){
t1='<table class="sotto"><tr><td width="33%">'
  +'<div class="sottosx">&copy; &reg; <a href="http://www.prevato.it">franco prevato</a></div>'
  +'</td><td width="34%">'
  +'<div class="sotto">by <a href="../htm/wm.asp">WebMaster</a></div>'
  +'</td><td width="33%">'
  +'<div class="sottodx">&nbsp;</div>'
  +'</td></tr></table>'
document.write(t1);
}
