// Documento JavaScript
function visitar(form1){
var opelegida;
opelegida=document.form1.opcion.options[document.form1.opcion.selectedIndex].value;
switch(opelegida){
case "0":alert('Por favor, seleccione una opción \n GRACIAS');
break;
case "101": parent.window.document.location="index.htm";
break;
case "100": parent.window.document.location="../clinicos/";
break;
case "102": parent.window.document.location="../../../";
break;
default:
parent.down.document.location=opelegida;
break;
}
}

function visitartipoB(pagdownelegida){
parent.down.document.location=pagdownelegida;
}

function descargar(form2){
var opelegida;
opelegida=document.form2.oppdf.options[document.form2.oppdf.selectedIndex].value;
switch(opelegida){
case "0":alert('Por favor, seleccione el nº que desee visualizar en formato PDF \n GRACIAS');
break;
default:
mensaje();
parent.down.document.location=opelegida;
break;
}
}

function mensaje(){
alert('\n ¡AVISO!: \n Para poder visualizar este tipo de archivos(PDF) en su disco \n debe disponer al menos, de ADOBE ACROBAT READER \n \n A) Si no dispone de ADOBE ACROBAT READER: \n    * Su dirección web es http://www.adobe.com/products/acrobat/readstep2.html \n B) Si ya dispone de este producto en su PC: \n    * No se preocupe, pulse el boton Aceptar y podrá visualizar el fichero PDF en su Navegador sin ningún problema \n \n Disculpe las molestias. GRACIAS');
}


function cambiocapatipoA(idCapa) {
// definiciones basicas
OCULTO="none";
VISIBLE="block";
if (document.getElementById(idCapa).style.display=="none"){
document.getElementById(idCapa).style.display=VISIBLE;
}
else{
document.getElementById(idCapa).style.display=OCULTO;
}
}

function cambiocapatipoB(idCapa,estado) {
document.getElementById(idCapa).style.display=estado;
}

