Diomartkd.com: > :: DIOMAR TAEKWONDO - Cont Contagem::
//so mask onKeyUp="mascaraData(this);"
function mascaraData(campoData){
var data = campoData.value;
if (data.length == 2){
data = data '/';
document.forms[0].data.value = data;
return true;
}
if (data.length == 5){
data = data '/';
document.forms[0].data.value = data;
return true;
}
}
//fale
function envia_fale_conosco() {
var oXMLhttpequtit_fale = criaXMLHttpRequest();
var oForm = document.forms[0];
var sURL = oForm.action;
// Codifica os parâmetros para serem passados ao POST
var nome= escape(document.forms[0].elements["nome"].value);
var assunto= escape(document.forms[0].elements["assunto"].value);
var cidade= escape(document.forms[0].elements["cidade"].value);
var estado= escape(document.forms[0].elements["estado"].value);
var str_tel= escape(document.forms[0].elements["str_tel"].value);
var email= escape(document.forms[0].elements["email"].value);
var mensagem= escape(document.forms[0].elements["mensagem"].value);
oXMLhttpequtit_fale.open("post", sURL, true);
oXMLhttpequtit_fale.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
oXMLhttpequtit_fale.onreadystatechange = function() {
if(oXMLhttpequtit_fale.readyState == 1) {
document.getElementById("principal").innerHTML = " Carregando...
";
}
if (oXMLhttpequtit_fale.readyState == 4) {
document.getElementById('principal').innerHTML = oXMLhttpequtit_fale.responseText;
}
};
oXMLhttpequtit_fale.send("nome=" nome "&assunto=" assunto "&cidade=" cidade "&estado=" estado "&str_tel=" str_tel "&email=" email "&mensagem=" mensagem); }
function mostraFoto(src)
{
var a_false = document.createElement("A");
a_false.rel = "lightbox";
a_false.href = src;
myLightbox.start(a_false);
a_false = null;
}
function mudar_cor_over(celula){
celula.style.backgroundColor="#CAE1FF"
}
function mudar_cor_out(celula){
celula.style.backgroundColor="#E0EEEE"
}
.titulo{
font-family:"Arial", Tahoma, Verdana;
font-size:12px;
color:#000000;
text-decoration:none;
}
.chamada{
font-family:"Arial", Tahoma, Verdana;
font-size:10px;
color:#0000FF;
text-decoration:none;
}
a{
text-decoration:none;
}