/* Carga una tab determinada; puede ser una de las siguientes:
	"inscritos"
	"postulantes"
	"candidatos"
	"todos"
*/

function cargarTab1(){
	document.getElementById('opciones1').style.display = "block";
	document.getElementById('opciones2').style.display = "none";
        if($('opciones3'))
            document.getElementById('opciones3').style.display = "none";
}

function cargarTab2(){
	document.getElementById('opciones1').style.display = "none";
	document.getElementById('opciones2').style.display = "block";
        if($('opciones3'))
            document.getElementById('opciones3').style.display = "none";
}

function cargarTab3(){
	//document.getElementById('opciones1').style.display = "none";
        document.getElementById('opciones2').style.display = "none";
	document.getElementById('opciones3').style.display = "block";
}

function revizarCombinacion()
{
    //Filtro por test 1 y test2
    t1 = $('tipo_test[]').value;
    t2 = $('tipo_test_2[]').value;
      
    //Resultado de test 1 y test 2
    r1 = $('resultado_test').value;
    r2 = $('resultado_test_2').value;
    
    if(t1=="Todos" || t1 == "")
        t1 = 0;
    if(t2=="Todos" || t2 == "")
        t2 = 0;
    
    if(r1=="Todos")
        r1 = 0;
    if(r2=="Todos")
        r2 = 0;
    
//    alert(t1+" - "+t2);
//    alert(r1+" - "+r2);
    
    if((r1 != r2) && (t1 == t2) && (r1!=0) && (r2 !=0) && (t1!=0) && (t2 !=0) )
    {
        alert("¡No puede seleccionar el mismo test con diferente resultado!");
    }
    
    return false;
}
