function cambio(id){
	if (document.getElementById(id).style.display=="block")
		{document.getElementById(id).style.display='none';}
	else{document.getElementById(id).style.display='block';}
}
function cargaform(id_pais){ 

 var e = document.createElement("script");
  // if (id_pais!=''){
  
    document.getElementById("id_provincia").length=0;
   document.getElementById("id_provincia")[0] = new Option("Cargando...","");
   //}

 url = "geneform.asp?id_pais="+ id_pais;
 
 e.src = url;
  e.type="text/javascript";
  document.getElementsByTagName("head")[0].appendChild(e);
} 

function muestra_oculta(tipo,id_div, id_most, id_ocult){
id_interno=id_ocult;
if (tipo=='oculta'){new Effect.BlindUp(id_div,{duration:1.5});}
else{new Effect.BlindDown(id_div,{duration:1.5});}

document.getElementById(id_most).style.display = 'none';

setTimeout("pausecomp('"+ id_ocult +"')",1500);
}

function pausecomp(id_ocult) 
{
document.getElementById(id_ocult).style.display ='block'
} 

function expandir(url){
if (document.getElementById('cargador').style.display ='none'){
	new Effect.BlindDown('cargador',{duration:1.5});
	}else{new Effect.BlindUp('cargador',{duration:1.5});}

document.getElementById('exp_todo').style.display ='none';
if (url=="/tucumanos/index.asp"){
muestra_oculta('muestra','banner_reg','divocult','divmost');
muestra_oculta('muestra','banner_reg1','divocult1','divmost1');
}
for (var a = 1; a < divz1.length; a++) {
	     muestra_oculta('muestra', divz1[a],divz3[a],divz2[a]);
}
	setTimeout("pausecomp('con_todo')",1500);
//document.getElementById('con_todo').style.display ='block';
}
function contraer(url){
if (document.getElementById('cargador').style.display ='block'){
	new Effect.BlindUp('cargador',{duration:1.5});
	}else{new Effect.BlindDown('cargador',{duration:1.5});}
document.getElementById('con_todo').style.display ='none';
if (url=="/tucumanos/index.asp"){
muestra_oculta('oculta','banner_reg','divmost','divocult');
muestra_oculta('oculta','banner_reg1','divmost1','divocult1');
}
for (var a = 1; a < divz1.length; a++) {
		  muestra_oculta('oculta', divz1[a],divz2[a],divz3[a]);
}
	setTimeout("pausecomp('exp_todo')",1500);
//document.getElementById('exp_todo').style.display ='block';
}

function calcular_edad(fecha){ 
    alert(fecha);
	hoy=new Date() 
    var array_fecha = fecha.split("/") 
    if (array_fecha.length!=3) 
       return false 
    var ano 
    ano = parseInt(array_fecha[2]); 
    if (isNaN(ano)) 
       return false 
    var mes 
    mes = parseInt(array_fecha[1]); 
    if (isNaN(mes)) 
       return false 
    var dia 
    dia = parseInt(array_fecha[0]); 
    if (isNaN(dia)) 
       return false 
    if (ano<=99) 
       ano +=1900 
    edad=hoy.getYear()- ano - 1;
    if (hoy.getMonth() + 1 - mes < 0)
       return edad 
    if (hoy.getMonth() + 1 - mes > 0) 
       return edad+1 
    if (hoy.getUTCDate() - dia >= 0) 
       return edad + 1 
    return edad 
}

function cargaform1(continente){ 
 var e = document.createElement("script");
   document.getElementById("id_pais").length=0;
   document.getElementById("id_pais")[0] = new Option("Cargando...","");
   url = "geneform1.asp?continente="+ continente;
   e.src = url;
   e.type="text/javascript";
  document.getElementsByTagName("head")[0].appendChild(e);
} 
function cargaform2(id_pais){ 
 var e = document.createElement("script");
    document.getElementById("id_provincia").length=0;
    document.getElementById("id_provincia")[0] = new Option("Cargando...","");
 	url = "geneform2.asp?id_pais="+ id_pais;
    e.src = url;
    e.type="text/javascript";
   document.getElementsByTagName("head")[0].appendChild(e);
   jah("inc_lista_personas.asp?id_pais="+id_pais,"inc_lista_personas");

} 
function envia_provincia(id_provincia){ 
    jah("inc_lista_personas.asp?id_provincia="+id_provincia,"inc_lista_personas");
}


