var store = new Array();

store[1] = new Array(
    'Ciclo Basico Ciencias Economicas',
    '',
    'Contador Público Nacional',
    '',
    'Corredor de Comercio y Martillero Público',
    '',
    'Licenciatura en Administracion de Empresas',
    '',
    'Licenciatura en Comercialización',
    '',
    'Licenciatura en Comercio Internacional',
    '');

store[2] = new Array(
    'Analista en Recursos Humanos',
    '',
    'Guia de Turismo y Coordinador de Viajes',
    '',
    'Lic. en Gestion y Desarrollo Organizacional',
    '',
    'Licenciatura en Relaciones Humanas',
    '',
    'Licenciatura en Relaciones Humanas y Pública',
    '',
    'Licenciatura en Relaciones Públicas',
    '',
    'Licenciatura en Turismo',
    '',
    'Secretariado Ejecutivo Universitario',
    '');

store[3] = new Array(
    'Licenciatura en Relaciones Internacionales',
    '',
    'Procuracion y Abogacia',
    '',
    'Procuracion y Notariado',
    '');

store[4] = new Array(
    'Licenciatura en Diseño Asistido',
    '',
    'Licenciatura en Sistemas de Información',
    '',
    'Maestria en Informática Gerencial',
    '');

store[5] = new Array(
    'Colegio Santa Maria',
    '');


function init()
{
    if(document.forms['parciales']){
     optionTest = true;
     lgth = document.forms[0].second.options.length - 1;
     document.forms[0].second.options[lgth] = null;
     if (document.forms[0].second.options[lgth]) optionTest = false;
    }
   
}


function populate()
{
    if (!optionTest) return;
    var box = document.forms[0].first;
    var number = box.options[box.selectedIndex].value;
    if (!number) return;
    var list = store[number];
    var box2 = document.forms[0].second;
    box2.options.length = 0;
    for(i=0;i<list.length;i+=2)
    {
        box2.options[i/2] = new Option(list[i],list[i+1]);
    }
}

var abierto='';

function mostrarLinks(div){
    if(abierto!='' || (div=="nada" && abierto!='')){
       document.getElementById(abierto).style.display='none';
    }

    if(div!="nada"){
     abierto=div;
     document.getElementById(div).style.display='';
    }
}

function showHideID(div) {
    if (document.getElementById(div).style.display != 'none') {
          if(document.getElementById(div)){
            document.getElementById(div).style.display = 'none'
            document.getElementById('SP_'+div).style.fontWeight=''
          }
     } else {
          if(document.getElementById(div)){
            document.getElementById(div).style.display = ''
            document.getElementById('SP_'+div).style.fontWeight='bold'
          }
     }
}
function switchClassID(id,class1,class2) {
       //classN = getCookie('CY_COOKIE_'+id)
    if(document.getElementById(id)){
         if (document.getElementById(id).className == class2) {
              document.getElementById(id).className = class1
         } else {
              document.getElementById(id).className = class2
         }
    }
}
