//-----------------------------------------
//--- Codigos JS.
//--- Desarrollado: Guillermo Calvetty
//-----------------------------------------
//--- FUNCIONES Generales
//-----------------------------------------
var opcA=1;
	function confForm(formObj) { 
	    if(!confirm("Confirma su acción !  \n \n Quiere eliminar todos los datos insertados en el formulario  ?")) { return false; }else{
			document.forms[1].reset();	
		} 
		
	}
	
	function camb(){
		if (opcA==1) 
			{ DisplayPersonales(); }
		else{ 
				if (opcA==2) 
					{ DisplayAdicional(); } 
			}
	}
	
	function DisplayUbicacion()
	{
			document.getElementById("ubicacion").style.display = "";
			document.getElementById("datos_personales").style.display = "none";
			document.getElementById("info_adicional").style.display = "none";
			
			document.getElementById("guardarBot").style.display = "none";
			document.getElementById("siguiBot").style.display = "block";		
		
			document.getElementById("aubicacion").className = "active slider";
			document.getElementById("adpersonal").className = "slider";
			document.getElementById("aiadicional").className = "slider";
			opcA = 1;
	}
	
	function DisplayPersonales()
	{
			document.getElementById("ubicacion").style.display = "none";
			document.getElementById("datos_personales").style.display = "";
			document.getElementById("info_adicional").style.display = "none";
			
			document.getElementById("guardarBot").style.display = "none";
			document.getElementById("siguiBot").style.display = "block";		

		
			document.getElementById("aubicacion").className = "slider";
			document.getElementById("adpersonal").className = "active slider";
			document.getElementById("aiadicional").className = "slider";
			opcA = 2;
	}
	
	function DisplayAdicional()
	{
			document.getElementById("ubicacion").style.display = "none";
			document.getElementById("datos_personales").style.display = "none";
			document.getElementById("info_adicional").style.display = "";
			
			document.getElementById("guardarBot").style.display = "block";
			document.getElementById("siguiBot").style.display = "none";		

		
			document.getElementById("aubicacion").className = "slider";
			document.getElementById("adpersonal").className = "slider";
			document.getElementById("aiadicional").className = "active slider";
			opcA = 3;	
    }
