// JavaScript Document

function limpa(){
pesquisa.p.value="";
}

function dataHj(){
var hj, dia, mes, ano, data, dataFim;
hj= new Date();
dia=hj.getDate();
mes=(hj.getMonth()+1);
ano=hj.getFullYear();
data = dia + "-"+ mes + "-"+ ano;
dataFim = dia + "-"+ (mes + 1) + "-"+ ano;
form1.inserido.value=data;
/*form1.start.value=data;
form1.end.value=dataFim;*/
}
					
function bomdia(){
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
if (thehour > 18) display = "Boa Noite";
else if (thehour >12) display = "Boa tarde";
else display = "Bom Dia";
var greeting = ("" + display + "");
document.write(greeting);
}

function fecha(){
window.close();
}

function CData(){
var data = new Date(); 
contacto.dataEnvio.value=data;
contacto.submit();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

