
function DescargarAlbum(winURL,elWidth,elHeight,features){
	if(DesWin){DesWin.closed();} 
	var DesWin =window.open(winURL,'ImaWin','top=4000'+features);
	DesWin.resizeTo(elWidth,elHeight);
	DesWin.moveTo((screen.width-elWidth)/2,(screen.height-elHeight)/2);
	DesWin.focus();
}

function abrirImagen(winURL,elWidth,elHeight,features){
	if(ImaWin){ImaWin.closed();} 
	var ImaWin =window.open(winURL,'ImaWin','top=4000'+features);
	ImaWin.resizeTo(elWidth,elHeight);
	ImaWin.moveTo((screen.width-elWidth)/2,(screen.height-elHeight)/2);
	ImaWin.focus();
}

function abrirAlbum(winURL,elWidth,elHeight,features){
	if(newWin){newWin.closed();} 
	var newWin =window.open(winURL,'newWin','top=4000'+features);
	newWin.resizeTo(elWidth,elHeight);
	newWin.moveTo((screen.width-elWidth)/2,(screen.height-elHeight)/2);
	newWin.focus();
}
//abrirAlbum('flm05_mapa.cfm','600','300','scrollbars=yes,resizable=yes');
var pasar;

function abrirBuscador(img0bj){
	pasar=img0bj;
	if(newWin){newWin.closed();} 
	var newWin =window.open('buscadoralb.php','Win','scrollbars=no,resizable=no');
	newWin.resizeTo('625','575');
	newWin.moveTo((screen.width-650)/2,(screen.height-600)/2);
	newWin.focus();
}

function abrirConstBuscador(){
	if(newWin){newWin.closed();} 
	var newWin =window.open('buscador.php','Win','scrollbars=no,resizable=no');
	newWin.resizeTo('625','575');
	newWin.moveTo((screen.width-650)/2,(screen.height-600)/2);
	newWin.focus();
}

var verificado=false;
function confirmarIr(winURL,features){
var Comentario = window.showModalDialog(winURL,'',features);
verificado=Comentario;
if (Comentario == true && document.getElementById('verificado')) {
	document.getElementById('verificado').src='img/verific_on.gif';
	document.getElementById('politica').innerHTML='Acepta pol&iacute;tica de privacidad';
		pasaValor();
		
}
if(Comentario == false && document.getElementById('verificado')){
	document.getElementById('verificado').src='img/verific_off.gif';
	document.getElementById('politica').innerHTML='Ver pol&iacute;tica de privacidad';
		pasaValor();
	}

}


function checkNew(){
if(verificado==true){verificado=false;}
else{verificado=true; }
pasaValor();
}

function pasaValor(){
	if (verificado==true ) {
	document.getElementById('verificado').src='img/verific_on.gif';
	document.getElementById('ocultoVerificado').value=1;
	document.getElementById('verificado').alt='Aceptada Politica\nde Privacidad'

}
	if (verificado==false ){
	document.getElementById('verificado').src='img/verific_off.gif';
	document.getElementById('ocultoVerificado').value=0;
	document.getElementById('verificado').alt='Aceptar Politica\nde Privacidad'
		}
	
	}





function salir(boton){
if(boton=='aceptar'){
window.returnValue =true;
}
if(boton=='descartar'){
window.returnValue =false;

}
window.close();
}