 //script para data
day = new Date( )
hr = day.getHours( )
if (( hr >= 0 ) && (hr <= 4 ))
mess1= "Boa Madrugada! "
if (( hr >= 4 ) && (hr < 12))
mess1= "Bom Dia! "
if (( hr >= 12) && (hr <= 17))
mess1= "Boa Tarde! "
if ((hr >= 18) && (hr <= 23))
mess1= "Boa Noite! "


function MakeArray(n)  { 
this.length = n    
return this}
 dayNames = new MakeArray(7)
 dayNames[1] = "Domingo"
 dayNames[2] = "Segunda-feira"
 dayNames[3] = "Terça-feira"
 dayNames[4] = "Quarta-feira"
 dayNames[5] = "Quinta-feira"
 dayNames[6] = "Sexta-feira"
 dayNames[7] = "Sábado"

 monthNames = new MakeArray(12)
 monthNames[1] = "Janeiro"
 monthNames[2] = "Fevereiro"
 monthNames[3] = "Março"
 monthNames[4] = "Abril"
 monthNames[5] = "Maio"
 monthNames[6] = "Junho"
 monthNames[7] = "Julho"
 monthNames[8] = "Agosto"
 monthNames[9] = "Setembro"
 monthNames[10] = "Outubro"
 monthNames[11] = "Novembro"
 monthNames[12] = "Dezembro"

function customDateString(oneDate)  {     
var theDay = dayNames[oneDate.getDay() + 1]
var theMonth = monthNames[oneDate.getMonth() + 1]     
var theYear1 = oneDate.getYear()
if (theYear1 >= 2000) {
theYear = theYear1;
}else{
theYear = theYear1+2000;
}
return theDay + ", "+oneDate.getDate() + " de " + theMonth + " de "+ theYear+"."}
day = new Date( )
// -- Fim Script data --------------->

function visualizaajuda(link){
window.open(link,'Janela', 'top=0,left=0,toolbar=no, location=no, status=no, scrollbar=no,resizable=no,width=300, height=200')
}				

function visualizaradio(link){
window.open(link,'Janela', 'top=0,left=0,toolbar=no, location=no, status=no, scrollbars=no,resizable=no,width=300, height=200')
}	

function adicionarfavorito(url,name){window.external.AddFavorite(url,name);}

function mensagem_voto()
{
alert("VOTO REGISTRADO!")
}

function janela_pop_up(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function resize() {
var i=0;
  if (navigator.appName == 'Netscape') i=40;
  if (document.images[0]) window.resizeTo(document.images[0].width +12, document.images[0].height+52-i);
}