function fwupd(site){
 // F.R.Crespi 1999
 var dataAgg = '';
 if (site=='fw')  {dataAgg = '30 dicembre 2009'};
 document.write(dataAgg);
}

function fwcopy(site){
 // F.R.Crespi 2001
 var copydate = '';
 if (site=='fw')  {copydate = '1997-2009'};
 document.write(copydate)
}

function fwvarmail(dest){
 // F.R.Crespi 1999
 var ix = 0;
 var a  = '@';
 var p  = '.';
 var mailAddr = 'mailto:';
 var elMail = new Array(2);
 elMail [0] = new Array('despammed','com','pnz61','[fabioweb]');
 elMail [1] = new Array('mclink','it','md6717','[Rece SF]');
 elMail [2] = new Array('xxx','xx','xxxxxx','[Subject]');

 if (dest == 'fw')  {ix = 0};
 if (dest == 'VO')  {ix = 1};

 mailAddr += elMail[ix][2] + a + elMail[ix][0] + p + elMail[ix][1] + '?Subject=' + elMail[ix][3];

 return mailAddr
}

function fwmail(dest){
 // F.R.Crespi 2001
 parent.location.href = fwvarmail(dest);
}

function fwvarmenu(npag){
 // F.R.Crespi 2000
 var textm  = '';
 var maxpag = 9;
 var elMenu = new Array(10);
 elMenu [0] = new Array('PaginaZero','index.html');
 elMenu [1] = new Array('SF & Altro','fwsf.htm');
 elMenu [2] = new Array('Fumetti','fwfumetti.htm');
 elMenu [3] = new Array('Musica','fwmusica.htm');
 elMenu [4] = new Array('Video','fwvideo.htm');
 elMenu [5] = new Array('Immagini','fwimmagini.htm');
 elMenu [6] = new Array('Usenet','fwusenet.htm');
 elMenu [7] = new Array('Amici','fwamici.htm');
 elMenu [8] = new Array('Ste`','fwste.htm');
 elMenu [9] = new Array('Utili','fwutili.htm');

 for (var ix=0; ix<=maxpag; ++ix) {
    if (ix==npag)	{textm += '<b ID=t1>' + elMenu[ix][0] + '</b>';}
    else 		{textm += '<b ID=n0>[ <a HREF="' + elMenu[ix][1] + '">' + elMenu[ix][0] + '</a></b> ]';};
    if (ix==maxpag)	{textm += '\n';}
    else		{textm += '&nbsp;&nbsp;\n';};
 }

 return textm
}

function fwvarurl(url){
 // F.R.Crespi 1998
 var selUrl = '';
 if (url == 'fw')	{selUrl = 'http://www.umpf.net/fabioweb/'};
 return selUrl
}

function fwvarsite(site){
 // F.R.Crespi 2001
 var siteurl = '';
 if (site=='fw')	{siteurl = 'www.umpf.net/fabioweb'};
 return siteurl
}

function fwhead(npag){
 // F.R.Crespi 2001
 var text = '';

 text += '<table WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0 CLASS=txtarea>\n'
 text += ' <tr><td WIDTH="50%" ALIGN="left" VALIGN="bottom" id=d1><img SRC="img/fwlogo01.gif" BORDER=0><br>&nbsp;&nbsp;<a HREF="'+fwvarurl('fw')+'">'+fwvarsite('fw')+'</a> [ &quot;appunti on-line&quot; di <a HREF="'+fwvarmail('fw')+'">fabio r crespi</a> ]</td>\n'
//text += '     <td WIDTH="50%" ALIGN="right" VALIGN="middle" id=d1><img SRC="img/fwpace.jpg" HSPACE=5 BORDER=1 WIDTH=400 HEIGHT=50></td></tr>\n'
 text += '     <td WIDTH="50%" ALIGN="right" VALIGN="middle" id=d1><a HREF="http://pirland.altervista.org/" TARGET="_new"><img SRC="img/fwpirlandale.gif" HSPACE=5 BORDER=1></a></td></tr>\n'
 text += ' <tr><td COLSPAN=2 BGCOLOR="#800000" ID=n1><img SRC="img/fwbg01.jpg" BORDER="0"></td></tr>\n'
 text += ' <tr><td COLSPAN=2 ALIGN="left" VALIGN="bottom" ID=n0>&nbsp;&nbsp;'+fwvarmenu(npag)+'</script></td></tr>\n'
 text += '</table>\n'

 document.write(text);
}

