ih_emp='Portada | Historia '; ih_ins='Almacenes | Exposiciones | Secaderos '; ih_cat='Maderas | Ferretería | Almacén'; ih_con='Formulario On-line | Direciones y Teléfonos'; function empresa(){ ob_menu=document.getElementById("txsubmenu"); ob_menu.innerHTML=ih_emp; } function instalaciones(){ ob_menu=document.getElementById("txsubmenu"); ob_menu.innerHTML=ih_ins; } function catalogo(){ ob_menu=document.getElementById("txsubmenu"); ob_menu.innerHTML=ih_cat; } function contacto(){ ob_menu=document.getElementById("txsubmenu"); ob_menu.innerHTML=ih_con; } function compruebaenvio(){ q = document.forms[0] if (q.nome.value== "") { alert("Debe introducir su nombre para enviar el mensaje");return false; } else if (q.correo.value == "" || q.correo.value.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi)==null) { alert("Debe introducir un mail válido para poder enviar el mensaje");return false; } else if (q.mmm.value == "") { alert("Debe introducir un mensaje.");return false; } else { window.open('wait.html','ventanamail','width=250,height=400,left=200,top=200'); q.boton.disabled=true; q.target="ventanamail"; setTimeout("q.submit()",500); setTimeout("q.boton.disabled=false",5000); } } mostrandose=""; function muestra(lid){ if(mostrandose!=""){ document.getElementById(mostrandose).style.display='none'; } if(mostrandose!=lid){ document.getElementById(lid).style.display='block'; mostrandose=lid; } else { mostrandose=""; } } mostrandose2 = ""; function muestra2(lid){ if(mostrandose2!=""){ document.getElementById(mostrandose2).style.display='none'; } if(mostrandose2!=lid){ document.getElementById(lid).style.display='block'; mostrandose2=lid; } else { mostrandose2=""; } }