function makePopup(url, ancho, alto) {

	var body = document.getElementsByTagName('body');
	var superModal = document.createElement('div');
		superModal.style.backgroundImage = "url('images/modal_back.png')";
		superModal.style.width = screen.width +'px';
		superModal.style.height = '100%';
		superModal.style.position = 'fixed';
		superModal.style.top = 0;
		superModal.style.left = 0;
		
	var modal = document.createElement('div');
		body[0].appendChild(superModal);
		
	superModal.appendChild(modal);
	
	var centro = (screen.width - ancho) /2;

	var imagen = document.createElement('img');
		imagen.src = url;
		imagen.width = ancho;
		imagen.height = alto;
		imagen.style.marginTop = '5px';
	
	modal.style.backgroundColor = '#fff';
	modal.style.padding = '10px';
	modal.style.paddingBottom = '5px';
	modal.style.position = 'absolute';
	modal.style.left = centro + 'px';
	modal.style.top = '10px';
	
	var cerrarP = document.createElement('p');
		cerrarP.style.font = 'normal normal bold 12px/16px Verdana';
		cerrarP.style.margin = 0;
		cerrarP.style.padding = 0;
		cerrarP.style.paddingBottom = '5px';
		cerrarP.style.marginBottom = '5px';
		cerrarP.style.borderBottom = '2px #ccc dotted';
		
	var titulo = document.createElement('p');
		titulo.innerHTML = 'Die Lustigen Tiroler | Galer&iacute;a de Im&aacute;genes';
		titulo.style.display = 'inline-block';
		titulo.style.width = '80%';
		titulo.style.height = '20px';
		titulo.style.textAlign = 'left';
		titulo.style.color = '#008000';
		titulo.style.margin = 0;
		titulo.style.padding = 0;
		cerrarP.appendChild(titulo);

	var cerrar = document.createElement('a');
		cerrar.href = 'javascript:void(0)';
		cerrar.style.display = 'inline-block';
		cerrar.style.marginTop = '5px';
		cerrar.style.width = '20px';
		cerrar.style.height = '20px';
		cerrar.style.backgroundImage = "url('images/close.png')";
		
	var cerrarX = document.createElement('p');
		cerrarX.style.display = 'inline-block';
		cerrarX.style.width = '20%';
		cerrarX.style.textAlign = 'right';
		cerrarX.style.margin = 0;
		cerrarX.style.height = '20px';
		cerrarX.appendChild(cerrar);
		
		cerrarP.appendChild(cerrarX);
				
	modal.appendChild(cerrarP);
	modal.appendChild(imagen)
	
	cerrar.onclick = function (){
	
		body[0].removeChild(superModal);
	
	}

}


