function CambiaClase(identificador,clase)
{
	document.getElementById(identificador).className=clase;
}
function Aleatorio(a,b)
{
    var numPosibilidades = b - a;
    var aleat = Math.random()*numPosibilidades;
    aleat = Math.round(aleat) ;
    return parseInt(a) + aleat;
}
function CambiaFondo(capa,color)
{
	if(color.substr(0,1)=='#')
	{
		document.getElementById(capa).style.backgroundColor=color;
	}
	else
	{
		document.getElementById(capa).style.backgroundImage='url('+color+')';
	}
}
