<!--

function atu_horario() {
	var dt=new Date();
	var d=dt.getDate();
	var e=dt.getMonth()+1;
	var a=dt.getFullYear();
	var h=dt.getHours();
	var m=dt.getMinutes();
	var s=dt.getSeconds();
	var txt;
	//mostra dia
	if (d<10)
		txt='0'+d;
	else
		txt=d;
	sdia.innerHTML=txt;
	//mostra mes
	if (e<10)
		txt='0'+e;
	else
		txt=e;
	smes.innerHTML=txt;
	//mostra ano
	sano.innerHTML=a;
	//mostra hora
	if (h<10)
		txt='0'+h;
	else
		txt=h;
	shora.innerHTML=txt;
	//mostra minuto
	if (m<10)
		txt='0'+m;
	else
		txt=m;
	sminuto.innerHTML=txt;
	//mostra segundo
	if (s<10)
		txt='0'+s;
	else
		txt=s;
	ssegundo.innerHTML=txt;
	setTimeout("atu_horario();",1000);
}

function mudatitulo() {


	//window.open('novostelefones.html','Titulo',' menubar=no,width=400,height=300,toolbar=no');

	var vtit = document.title;

	

//	if (vtit==="M&M Assessoria Contábil | Escritório de Contabilidade")

//	{
//		window.open('novostelefones.html','Titulo',' menubar=no,width=400,height=300,toolbar=no');
	    //window.alert(vtit);
//	}	


	var vat,r,bTems;
	var coll = window.document.all.tags("SPAN");
	bTems = false;
	r = vtit.search("|");
	if (coll!=null)
	{
		for (i=0; i<coll.length; i++)
	   {
			if (coll[i].id=="TITPAG1")
			{
				bTems=true;
			}
		}
	}
	if (bTems==true)
	{
		if (r>=0) {
			vat=vtit.split("|");
			window.document.all("TITPAG1").innerText=vat[0];
		}
		else {
			window.document.all("TITPAG1").innerText=vtit;
		}
}
	atu_horario();
}

// -->