function MostrarData() { 
  
hoje = new Date();
 dia = hoje.getDate();
 dias = hoje.getDay();
 if (dia < 10)
 dia = "0" + dia
 mes = hoje.getMonth();
 ano = hoje.getFullYear();
function CriaArray (n) {
 this.length = n }
 NomeDia = new CriaArray(7)
 NomeDia[0] = "Domingo"
 NomeDia[1] = "Segunda-feira"
 NomeDia[2] = "Terça-feira"
 NomeDia[3] = "Quarta-feira"
 NomeDia[4] = "Quinta-feira"
 NomeDia[5] = "Sexta-feira"
 NomeDia[6] = "Sábado"
 NomeMes = new CriaArray(12)
 NomeMes[0] = "janeiro"
 NomeMes[1] = "fevereiro"
 NomeMes[2] = "març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"
document.write ("<small>"+ 'São Paulo' + ", " + dia + " de "+ NomeMes[mes] + " de "+ ano +" </small>")}






<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

/*
function MM_showMenu() { //v2.0
  var i, visStr, args, theObj;
  args = MM_showMenu.arguments;
  for (i=0; i<(args.length-2); i+=3) { //with arg triples (objNS,objIE,visStr)
    visStr   = args[i+2];
    if (navigator.appName == 'Netscape') {
      theObj = eval(document.getElementById('RT2'));
      if (theObj) theObj.visibility = visStr;
    } else { //IE
      theObj = eval(args[i+1]);
  	}
      if (theObj.style.display == "none") visStr = ""; //convert vals
      if (theObj.style.display == "") visStr = "none";
      if (theObj) theObj.style.display = visStr;
  }
}
*/

function MM_showMenu(elementID) { //v2.0
	var visStr, theObj;
	theObj = document.getElementById(elementID);
	//theObj = eval(args[i+1]);
	if (theObj.style.display == "none") visStr = ""; //convert vals
	if (theObj.style.display == "") visStr = "none";
	if (theObj) theObj.style.display = visStr;
}

//-->
<!--

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v2.0
  var newURL = '', version = parseFloat(navigator.appVersion);
  if (navigator.appName.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL = (NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL = (NSnoPass==1)?URL:altURL;}
  } else if (navigator.appName.indexOf('Microsoft') != -1) {
    if (version >= IEvers) {if (IEpass>0) newURL = (IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL = (IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL = (OBpass==1)?URL:altURL;
  if (newURL) {
    window.location = unescape(newURL);
    document.MM_returnValue = false;
  }
}
//-->
<!--
function validar(){
if (document.Contato.Nome.value==""){
	alert("Campo Nome é obrigatorio");
	document.Contato.Nome.focus();
} else if (document.Contato.Email.value.indexOf('@')==-1 ) {
	  alert("Digite o email Correto")
		document.Contato.Email.focus();
	} else if (document.Contato.Email.value.length < 8) {
	  alert("Digite o email Correto")
		document.Contato.Email.focus();	
		
	} else if (document.Contato.Email.value.indexOf('.')==-1) {
	  alert("Digite o email Correto")
		document.Contato.Email.focus();
	} else if (document.Contato.Assunto.value=="") {
	  alert("Campo assunto é Obrigatorio")
		document.Contato.Assunto.focus();
	} else {
	Contato.action='http://www.interclubes.com.br/unicapital/sendMail.asp'
	 Contato.submit();
  		}
}				


//-->

//MÁSCARA DE VALORES

function txtBoxFormat(objeto, sMask, evtKeyPress) {
    var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;

    if(document.all) { // Internet Explorer
      nTecla = evtKeyPress.keyCode; }
    else if(document.layers) { // Nestcape
      nTecla = evtKeyPress.which;
    }

    sValue = objeto.value;

    // Limpa todos os caracteres de formatação que
    // já estiverem no campo.
    sValue = sValue.toString().replace( "-", "" );
    sValue = sValue.toString().replace( "-", "" );
    sValue = sValue.toString().replace( ".", "" );
    sValue = sValue.toString().replace( ".", "" );
    sValue = sValue.toString().replace( "/", "" );
    sValue = sValue.toString().replace( "/", "" );
    sValue = sValue.toString().replace( ":", "" );
    sValue = sValue.toString().replace( ":", "" );
    sValue = sValue.toString().replace( "(", "" );
    sValue = sValue.toString().replace( "(", "" );
    sValue = sValue.toString().replace( ")", "" );
    sValue = sValue.toString().replace( ")", "" );
    sValue = sValue.toString().replace( " ", "" );
    sValue = sValue.toString().replace( " ", "" );
    fldLen = sValue.length;
    mskLen = sMask.length;

    i = 0;
    nCount = 0;
    sCod = "";
    mskLen = fldLen;

    while (i <= mskLen) {
      bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/") || (sMask.charAt(i) == ":"))
      bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " "))

      if (bolMask) {
        sCod += sMask.charAt(i);
        mskLen++; }
      else {
        sCod += sValue.charAt(nCount);
        nCount++;
      }

      i++;
    }

    objeto.value = sCod;

    if (nTecla != 8) { // backspace
      if (sMask.charAt(i-1) == "9") { // apenas números...
        return ((nTecla > 47) && (nTecla < 58)); } // números de 0 a 9
      else { // qualquer caracter...
        return true;
      } }
    else {
      return true;
    }
  }




