function validaForm(form){
	var tamanho = form.length;
	alert(tamanho);
}

function efeitoHover(elemento,evento) {
	if(evento==1){
		elemento.style.borderBottom='1px solid #CCCCCC';
		elemento.style.borderRight='1px solid #CCCCCC';
		elemento.style.backgroundColor='#F4F4F4';
	}else{
		elemento.style.borderRight='1px solid #F4F4F4';
		elemento.style.borderBottom='1px solid #F4F4F4';
		elemento.style.backgroundColor='#FFF';
	}
}

function formatar(src, mask){
  var i = src.value.length;
  var saida = mask.substring(0,1);
  var texto = mask.substring(i);	

	if (texto.substring(0,1) != '#'){
    	src.value += texto.substring(0,1);
  	}
}
