// JavaScript Document

/* Función para tira de imágenes*/
function muestraImg(imagen)
	{  var oculta;
	var a=0;
		var divId= document.getElementById(imagen);
		while(a<6)
			{ oculta="img"+a;
				oculta.style.display="none";
				a=a+1;
			}
		divId.style.display="block";
	}
	
	
function popup(URL, width, height)
	{
		if (height > (window.screen.height - 200)) {
			height = window.screen.height - 200;
			scrollbars = "yes";
			
		}
		else
			scrollbars = "no";
		

		controlador=window.open(URL,"ventana1","scrollbars=" + scrollbars + ",resizable=no,menubar=no,toolbar=no,width=" + width + ",height=" + height + ",top=" + (window.screen.height/2 - height/2) + ",left=" + (window.screen.width/2 - width/2));
		controlador.focus();
	} 
