function rollOn(obj){file=obj.src;obj.src=file.replace('_Off','_On');}

function rollOff(obj){file=obj.src;obj.src=file.replace('_On','_Off');}

var Key='';
function keyhandler(e) {
   	if ((Key >=48 && Key <=57) || (Key >=96 && Key <=105) || Key==46 || Key==8 || Key==9 || (Key >=37 && Key <=40)){return true}else{return false};
}

function validarEmail(valor) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(valor)){
		return (true);
	} else {
		return (false);
	}
}

function muestraContenidosSolapasFicha(SolapaId,totalsolapas){
	for(i=1;i<=totalsolapas;i++){
		document.getElementById('ContenidoSolapa'+i).style.display='none';
		imagen=document.getElementById('boton'+i);
		imagen.src=imagen.src.replace('_On','_Off');
	}
	
	document.getElementById('ContenidoSolapa'+SolapaId).style.display='block';
		
	imagen=document.getElementById('boton'+SolapaId);
	imagen.src=imagen.src.replace('_Off','_On');
}
