// DATA E HORA DO SISTEMA
	hoje = new Date()
	dia = hoje.getDate()
	dias = hoje.getDay()
	mes = hoje.getMonth()
	ano = hoje.getYear()
	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"
	NomeDia[2] = "Ter&ccedil;a"
	NomeDia[3] = "Quarta"
	NomeDia[4] = "Quinta"
	NomeDia[5] = "Sexta"
	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 WriteDate() {

	document.write ("<left>" + dia + " de " + NomeMes[mes] + " de " + ano + "</left>")
}
// DATA E HORA DO SISTEMA

// MENUS

 function mOvr(src,clrOver) {
   if (!src.contains(event.fromElement)) {
         src.style.cursor = 'hand';
         src.bgColor = clrOver;
       }
 }
 function mOut(src,clrIn) {
       if (!src.contains(event.toElement)) {
         src.style.cursor = 'default';
         src.bgColor = clrIn;
       }
 }


// FORM
function valida()
{
if (regform.nome.value == "")
{
alert("Voce esqueceu de fornecer seu nome");
return;
}
else regform.submit();
}

var win = null;

function NovaJanela(pagina,nome,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(pagina,nome,settings);
}
