function validaForm(theForm){

    em = /^.+?@.+?\..+$/;
	pw = /^[a-zA-Z0-9]{10}/;

	if(theForm.email.value == ""){
        alert("ERRO:\nE-mail não informado!");
        theForm.email.focus();
        return false;
    }else{
        if(!em.test(theForm.email.value)){
            alert("ERRO:\nE-mail inválido!\nEste campo aceita apenas o formato padrão para endereços eletrônicos.");
            theForm.email.select();
            return false;
        }
    }

	if(theForm.senha.value == ""){
        alert("ERRO:\nSenha não informada!");
        theForm.senha.focus();
        return false;
    }else{
        if(!pw.test(theForm.senha.value)){
            alert("ERRO:\nSenha inválida!\nEste campo aceita apenas letras e números e deve ter 10 caracteres.");
            theForm.senha.select();
            return false;
        }
    }

	return true;
}

adBunner = new Array("url(i/bunner1.jpg)","url(i/bunner2.jpg)","url(i/bunner3.jpg)","url(i/bunner4.jpg)","url(i/bunner5.jpg)");
                     
thisB = 0;
imgB  = adBunner.length;

function rotateBunner(){

		var bunner = document.getElementById('bnr');
		bunner.style.backgroundImage = "url(i/bunner1.jpg)";

		if(thisB == imgB || thisB == adBunner.length)
		{
			  thisB = 0;
		}

		bunner.style.backgroundImage = adBunner[thisB];
		setTimeout("rotateBunner()", 8 * 1000);
		thisB++;

}
