//--- Buscar una fecha en el calendario var objFecha, vFecha; function buscarFecha(obj, h){ objFecha = document.getElementById(obj); var propiedades = 'top=100px,left=300px,width=300px,height=300px' + ',toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1'; vFecha = window.open("http://www.autoescuelasclick.com/selector_fechas.php?h=" + h + "&f=" + objFecha.value, "calendario", propiedades); vFecha.focus(); } function seleccionarFecha(f, h){ if (!objFecha && opener){ opener.seleccionarFecha(f, h); top.close(); } else { if(objFecha){ if (h && h==1 && vFecha && vFecha.document.getElementById('hora') ){ f += ' ' + vFecha.document.getElementById('hora').value + ':' + vFecha.document.getElementById('minutos').value + ':' + vFecha.document.getElementById('segundos').value ; } objFecha.value = f; } } } function ocultar_mostrar(capa) { c = document.getElementById(capa); if (c.style.visibility == "visible") {c.style.visibility = "hidden";} else {c.style.visibility = "visible";} } function ocultar(capa) { //alert ('ocultar ' + capa); c = document.getElementById('espec_' + capa); t = document.getElementById('txt_' + capa); t.value = ''; c.style.visibility = "hidden"; } function mostrar(capa) { c = document.getElementById('espec_' + capa); c.style.visibility = "visible"; } function mostrar_especifique (select, especifique){ //alert(select + ' ' + especifique); sel = document.getElementById(select); var indice = sel.selectedIndex; //alert(indice); if (sel.options[indice].value == '8'){ mostrar(especifique); }else{ ocultar(especifique); } } AC_FL_RunContent = 0;