function data(){
	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-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 (NomeDia[dias] + ", " + dia + " de " + NomeMes[mes] + " de " + "2009")
}

// Recomendar link
function popupWin() {

text  = "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>";
text += "<head>";
  text += "<title>Cats Auto Clube - Carros Acima de Tudo Sempre</title>";
  text += "<meta http-equiv='content-type' content='text/html; charset=ISO-8859-1' />";
  text += "<meta http-equiv='content-language' content='pt-BR' />";
	text += "<style>";
		text += "/* ## ## Formulário */";
		text += "#content { padding-bottom: 0; color: #d3d2d5; }";
		text += "#main h2, p { float: none; text-align: center; font: bold 12px 'Verdana'; }";
		
		text += "#main #content { width: auto; }";
		text += "#main .indique form { margin: 0 30px; }";
		text += "#main .indique p { margin: 10px 0; }";
		
		text += ".indique fieldset { border: 1px solid #d3d2d5; padding: 0 10px; margin-top: 10px; -moz-border-radius: 20px; }";
		text += ".indique fieldset legend { margin: 0 20px; margin-top: -1px; }";
		text += ".indique[class] fieldset legend { margin-top: -2px; }";
		text += ".indique fieldset legend { background: #f27a07; border: 1px solid #f27a07; padding: 2px 6px; -moz-border-radius: 10px; color: white;  font-weight: bold;}";
		
		text += ".indique fieldset .coluna { float: left; width: 49.9%; margin: 10px 0 0; }";
		
		text += ".indique fieldset .remetente fieldset { border-right: 1px solid #d3d2d5; }";
		text += ".indique fieldset fieldset { margin: 0 0 5px; padding: 0 20px 10px; -moz-border-radius: 0; border-width: 1px 0 0; }";
		text += ".indique fieldset fieldset legend { background: none; border: 0; font: bold 11px 'Verdana'; color: #d3d2d5; }";
		
		text += ".indique fieldset * { font: 10px verdana; }";
		text += ".indique fieldset label { display: block; margin-bottom: 3px; }";
		text += ".indique fieldset input { width: 100%; border: 1px solid #BBB; padding: 0.1em; }";
		text += ".indique fieldset div.nome { float: left; width: 50%; }";
		text += ".indique fieldset div.nome div { padding-right: 5px; }";
		text += ".indique fieldset div.email { float: left; width: 50%; }";
		text += ".indique fieldset div.email div { padding-left: 5px; }";
		text += ".indique fieldset .mensagem { text-align: center; }";
		text += ".indique fieldset .mensagem label { text-align: left; margin-left: 20px; }";
		text += ".indique fieldset textarea { width: 620px; height: 64px; }";
		text += ".indique fieldset div.buts { text-align: right; margin-right: 20px; }";
		text += ".indique fieldset button { margin: 5px 0 10px; }";
		
		
		text += "/* ## Enviado */";
		text += ".indique .enviado { margin: 30px; }";
		text += ".indique .enviado h4 { font: bold 14px 'Trebuchet MS'; text-align: center; margin: 30px 0; }";
		text += ".indique .enviado p { text-align: center; }";
	text += "</style>";
text += "</head>";
text += "<body bgcolor='#000000'>";

text += "<img src='/img/lg_cats_enviar.jpg' width='278' height='102' border='0' alt='Cats Clube'>";

text += "<div id='main'>";
 
  text += "<div id='middle' class='home'>";

    text += "<div id='content' class='indique'><div class='iesuxroot'>";
	
	text += "<br /><br />";
     text += " <h2 class='subh'>Indicação de link do site Cats Clube</h2>";

    text += "<form name='myform' id='myform' action='/recomendar/set.php' method='post'>";
	text += "<p>Para indicar a página, basta entrar com seu nome e mail e do destinatário.</p>";
		 text += " <fieldset><legend>Formulário de Indicação de Link:</legend>";
         text += " <div class='coluna remetente'><fieldset><legend>Remetente</legend>";
		  
          text += "  <div class='nome'><div>";
           text += "   <label for='name'>Nome:</label> <input type='text' name='name' id='name'  />";
         text += "   </div></div>";
         text += "   <div class='email'><div>";
        text += "      <label for='my'>Email:</label> <input type='text' name='my' id='my' />";
      text += "      </div></div>";
      text += "    </fieldset></div>";

        text += "  <div class='coluna destinatario'><fieldset><legend>Destinatário</legend>";
       text += "     <div class='nome'><div>";
       text += "       <label for='zname'>Nome:</label> <input type='text' name='zname' id='zname'  />";
     text += "       </div></div>";
     text += "       <div class='email'><div>";
     text += "         <label for='to'>Email:</label> <input type='text' name='to' id='to' />";
     text += "       </div></div>";
    text += "      </fieldset></div>";

        text += "  <div class='mensagem'>";
       text += "     <label for='msg'>Mensagem:</label> <textarea name='msg' id='msg'></textarea>";
      text += "    </div>";
		
     text += "     <div class='buts'><button name='btenviar' id='btenviar' type='submit' style='border: 1px solid #f27a07; background-color: #000000; color: #b5b5b5; font-weight: bold'>..:: Enviar ::..</button></div>";
   text += "     </fieldset>";
  text += "    </form>";

  text += "  </div></div>";

  text += "  <div class='cb cblast'>&nbsp;</div>";
 text += " </div>";

text += "</div>";


text += "</form></body>";
text += "</html>";


newWindow = window.open('','newWin','width=760,height=490');
newWindow.document.write(text);
}


// Fale conosco
function valida(){
	var cmp1 = document.form.name;
	var cmp2 = document.form.email;
	var cmp3 = document.form.msg;
	
		if (cmp1.value=="")
			{
			alert("Por favor, preencha o campo NOME")
			cmp1.focus();
			return false;
			}
		if (cmp2.value=="")
			{
			alert("Por favor, preencha o campo E-MAIL")
			cmp2.focus();
			return false;
			}
		if (cmp3.value=="")
			{
			alert("Por favor, preencha o campo MENSAGEM")
			cmp3.focus();
			return false;
			}
}

//Função ara abrir popup
function pop(janela, w, h){
	window.open(janela,"cats",'width='+w+',height='+h+',top=0,left=0,scrollbars=yes,toolbar=0,location=0,status=yes,menubar=0,resizable=0')
}