function cambia(capa){
   capa.style.backgroundColor="#E9F7FE"
   capa.style.borderColor="#0790DC"
   capa.style.backgroundImage.src="img/f_recuadro_hover.jpg"
}
function regresa(capa){
	capa.style.backgroundColor="#ffffff"
	capa.style.borderColor="#0B7DBF"
}

function popup(titulo, texto) {
	var fondo = document.createElement('div');
		fondo.style.position = "absolute";
		fondo.style.width = "100%";
		fondo.style.height = "100%";
		fondo.style.top = "0px";
		fondo.style.left = "0px";
		fondo.style.zIndex="2";
		fondo.style.padding = "1px";
		fondo.style.verticalAlign = "middle";
		fondo.align = "center";
		
	var ventana = document.createElement('div');
		ventana.style.width = "423px";
		ventana.style.height = "580px";
		ventana.style.border = "solid 3px #ffffff";
		ventana.style.backgroundColor = "#FFFFFF";
		ventana.class="objMovible";
		
		var barraTitulo = document.createElement('div');
			barraTitulo.style.backgroundColor = "#0B7DBF";
			barraTitulo.style.color = "#ffffff";
			barraTitulo.style.fontSize = "20px";
			barraTitulo.style.paddingLeft = "5px";
//			barraTitulo.innerHTML = titulo;
		
		var contenido = document.createElement('div');
//			contenido.style.padding = "5px";
			contenido.style.color = "#663366";
			contenido.style.fontSize = "14px";
			contenido.style.fontFamily = "Arial";
			contenido.innerHTML = texto;
		
		var titu = document.createElement('span');
			titu.style.width = "50px";
			titu.style.height = "25px";
			titu.innerHTML = titulo;
			
		var cerrar = document.createElement('div');
			cerrar.style.width = "20px";
			cerrar.style.height = "25px";
			cerrar.style.verticalAlign = "middle";
			cerrar.style.cssFloat = "right";
			
			var boton = document.createElement('img');
				boton.src = "img/bt_cerrar.jpg";
				boton.style.cursor = "pointer";
				boton.onclick = function() {
					fondo.parentNode.removeChild(fondo);
					//fondo.style.visibility = "hidden";
				}
				
		
		cerrar.appendChild(boton);
		barraTitulo.appendChild(cerrar);
		barraTitulo.appendChild(titu);
		
		
		ventana.appendChild (barraTitulo);
		ventana.appendChild (contenido);
		//ventana.appendChild (cerrar);
		
	fondo.appendChild (ventana);
	document.getElementById('contenedor').appendChild(fondo);
	
	return true;
}