function time(){
 //  Desenvolvido por Paulo Fernando A. dos Santos: pfsantos@rj.sol.com.br 
 var out="dd.mm.yy hh:mm:ss";
   hoje = new Date();
   d = hoje.getDate();
   x = hoje.getMonth();
   y = hoje.getYear();
   h = hoje.getHours();
   m = hoje.getMinutes();
   s = hoje.getSeconds();
   jan1 = new Date(y,0,1);
    dw= jan1.getDay();        // No of day of week (Mo =1)
   jan2 = new Date(y,0,8-dw); // Last day of week 0 
//alert("Jan 2 =" + jan2);
   // w = Math.floor((hoje.getTime()-jan2.getTime())/(3600*24*1000*7)+0.999999); // Week
   // out = 'Bom <FONT COLOR="#FF0000">';
   if (h>5 && h<12) out = 'Bom <FONT COLOR="#FF0000">dia'
   else if (h>=12 && h<18) out = 'Boa <FONT COLOR="#FF0000">tarde'
   else if (h>=18 && h<22) out = 'Boa <FONT COLOR="#FF0000">noite'
   else out = 'Boa <FONT COLOR="#FF0000">noite';
   out += "</FONT>, prezado(a) cliente";
   // out += "</FONT>, hoje é dia " + d + "/" + (x+1) + "/" + (y+1900) + " hora " + h + ":" + m + ":" + s;
   // out += "<FONT COLOR='#FF0000'>";
   // out += (h>12) ? " PM" : " AM";
   // out += "</FONT>";
   // out += ", Week" + w;
   return out;
 }