
<!--  // nao exibe erros de javascript
          function stopError() {
          return true;
          }

          window.onerror = stopError;
// -->

<!--  // mensagem padrao da barra de status
window.defaultStatus="MAPTRONICS INFORMÁTICA - Venda e Manutenção de computadores, Redes e Projetos em Tecnologia da Informação"
// -->

<!--  // funcao protecao codigo fonte     bt direito
/*   *** function verfonte()
   {
   if (event.button==2||event.button==3)
     {
     window.alert("www.maptronics.com.br\n\n\A MAP Tronics agradece por sua visita.\n\n\")
     }
   }
document.onmousedown=verfonte ***   */

/*   *** 
function click() {
if (event.button==2||event.button==3) {
 oncontextmenu='return false';
  }
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")
***   */

// -->


function maximiza() {
window.moveTo(-5,-5);
if (document.all) {
top.window.resizeTo(screen.availWidth+8,screen.availHeight+8);
}
else if (document.layers||document.getElementById) {
if 
(top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight+8;
top.window.outerWidth = screen.availWidth+8;
}
}

}

function inseretexto(){
	var cheio = false;
	with(document.mapform) {
		if (txt_mensagem.value.length == 0){
			cheio = false;
			txt_mensagem.focus();
			//txt_mensagem.value=' +Escreva sua mensagem...';
			alert ('Campo obrigatório.');
		}
	return cheio;
	}
}
//	onChange="n = 0;" value=" Escreva sua mensagem..." onBlur="if(this.value==''){this.value=' Escreva sua mensagem...';}" onFocus="if(this.value==' Escreva sua mensagem...'){this.value='';}"


<!-- Data Extenso
hoje = new Date()
dia = hoje.getDate()
dias = hoje.getDay()
mes = hoje.getMonth()
ano = hoje.getYear()

/*if(yearNr < 2000) Year = 1900 + yearNr;
else Year = yearNr;
// String to display current date.
var todaysDate =(" " + Day + ", " + dayNr + "/" + mName + "/" + Year);*/

if (dia < 10)
	dia = "0" + dia
if (ano < 2000)
	ano = "19" + ano
function CriaArray(n) {
this.length = n}
NomeDia = new CriaArray(7)
NomeDia[0] = "Domingo"
NomeDia[1] = "Segunda-feira"
NomeDia[2] = "Ter&ccedil;a-feira"
NomeDia[3] = "Quarta-feira"
NomeDia[4] = "Quinta-feira"
NomeDia[5] = "Sexta-feira"
NomeDia[6] = "S&aacute;bado"

NomeMes = new CriaArray(12)
NomeMes[0] = "Janeiro"
NomeMes[1] = "Fevereiro"
NomeMes[2] = "Mar&ccedil;o"
NomeMes[3] = "Abril"
NomeMes[4] = "Maio"
NomeMes[5] = "Junho"
NomeMes[6] = "Julho"
NomeMes[7] = "Agosto"
NomeMes[8] = "Setembro"
NomeMes[9] = "Outubro"
NomeMes[10] = "Novembro"
NomeMes[11] = "Dezembro"


function EscreveData() {
document.write(NomeDia[dias]+", "+dia+" de "+NomeMes[mes]+" de 2002.")

/*if(yearNr < 2000) Year = 1900 + yearNr;
else Year = yearNr;
// String to display current date.
var todaysDate =(" " + Day + ", " + dayNr + "/" + mName + "/" + Year);*/


}

//Fim Data Extenso-->


<!--  // funcao impressao
function imprimir()
   {
self.print()
     }


<!--  // funcao fechamento janela
function fechar()
   {
self.close()
     }


function JH() {
var teste01="conteúdo 01"
var teste02="conteúdo 02"
var teste03="conteúdo 03"
document.write("<table width='400'><tr>")
document.write("<td>"+teste01+"</td>")
document.write("<td>"+teste02+"</td>")
document.write("<td>"+teste03+"</td>")
document.write("</tr></table>")
document.write("<br><br><br><br><br>")
}


function FotoDia(){
	hoje = new Date()
	dia = hoje.getDate()
	dias = hoje.getDay()

	if (dia >=1 && dia <=5) 
		document.write("<img src='img/fachada/01_.jpg'>");
	else if (dia >=6 && dia <=10)
		document.write("<img src='img/fachada/02_.jpg'>");
	else if (dia >=11 && dia <=15)
		document.write("<img src='img/fachada/03_.jpg'>");
	else if (dia >=16 && dia <=20)
		document.write("<img src='img/fachada/04_.jpg'>");
	else if (dia >=21 && dia <=25)
		document.write("<img src='img/fachada/05_.jpg'>");
	else if (dia >=26 && dia <=31)
		document.write("<img src='img/fachada/06_.jpg'>");

}
