function Verificados(caso){
	var Vobj=document.getElementById(caso);
	var oculto=document.getElementById('V_'+caso);
	if(oculto.value==1){Vobj.src='img/verific_off.gif';
		oculto.value=0;}
	else{Vobj.src='img/verific_on.gif';
		oculto.value=1;}
		
	}
	
var verificado=false;
function confirmarIr(winURL,features, version){
var Comentario = window.showModalDialog(winURL,'',features);
verificado=Comentario;
if (Comentario == true && document.getElementById('verificado')) {
	if(version){document.getElementById('verificado').src='img/verific'+version+'_on.gif';}
	else{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')){
	if(version){document.getElementById('verificado').src='img/verific'+version+'_off.gif';}
	else{document.getElementById('verificado').src='img/verific_off.gif';}
	document.getElementById('politica').innerHTML='Ver pol&iacute;tica de privacidad&nbsp;&nbsp;';
		pasaValor();
	}

}


function checkNew(){
if(verificado==true){verificado=false;}
else{verificado=true; }
pasaValor();
}

function pasaValor(){
	if (verificado==true ) {
	document.getElementById('ocultoVerificado').value=1;
	document.getElementById('verificado').alt='Aceptada Politica\nde Privacidad'

}
	if (verificado==false ){

	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();
}

function marcaSub(sec, subsec){
	subItem='sub'+subsec;
	urlImg='img/b_'+sec+'_'+subsec+'_on.gif';
	document.getElementById(subItem).src=urlImg;
	if(document.getElementById('tit_subsec')){
		document.getElementById('tit_subsec').src='img/tit_subsec_'+sec+'_'+subsec+'.gif';
		}
	}
	var newWindow;
function openPicture(url) {
if(newWindow){newWindow.close();} 
	newWindow=window.open(url,"ventana","top=4000, scrollbars=no,resize=no");
}
