window.defaultStatus="Rotary Club Alcoy · www.rotaryalcoy.org"; function esta_vacio_es(campo) { if (eval('document.form.'+campo+'.value==""')){ alert('Por favor rellene el campo '+campo); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function valida_select_es(campo,salida) { if (eval('document.form.'+campo+'.value==0')){ alert('Por favor seleccione '+salida+'.'); eval('document.form.'+campo+'.focus()'); //eval('document.form.'+campo+'.select()'); return true; } } function es_email_es(campo) { cadena1='@'; cadena2='.'; if (document.form.email.value.indexOf(cadena1)==-1||document.form.email.value.indexOf(cadena2)==-1||document.form.email.value.length<6){ alert('La dirección de '+campo+' introducida no es correcta'); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function debe_medir_es(campo,longitud){ if (eval('document.form.'+campo+'.value.length')< longitud||eval('document.form.'+campo+'.value.length')> longitud){ alert('La longitud del ' +campo+ ' no es correcta\nDebe tener '+longitud+ ' caracteres'); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function es_numero_es(campo) { if (isNaN(eval('document.form.'+campo+'.value'))){ alert('el campo '+campo+ ' no es correcto'); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function es_numero_en(campo) { if (isNaN(eval('document.form.'+campo+'.value'))){ alert('field '+campo+ ' is not correct'); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function ver_q_somos(x){ window.open('/bbc/q_somos.asp','q_somos','width=525,height=350') } function fuera(nm,img){ eval("document."+nm+".src='"+img+"'") } function sobre(nm,img){ eval("document."+nm+".src='"+img+"'") } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function abrir(url,nombre,catact) { //v2.0 window.open(url,nombre,catact); } function MM_showHideLayers() { var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; } obj.visibility=v; } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&ia.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&id.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } function mOver(src,clrOver) { if (!src.contains(event.fromElement)) { src.style.cursor = 'default'; src.bgColor = clrOver; } } function mOut(src,clrIn) { if (!src.contains(event.toElement)) { src.style.cursor = 'default'; src.bgColor = clrIn; } } function abre_banner(){ window.open('/bbc/ofertas_03.asp','3_edad','width=618,height=450,scrollbars=yes'); } function esta_vacio(campo) { if (eval('document.form.'+campo+'.value==""')){ alert('Por favor rellene el campo '+campo); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function valida_select(campo,salida) { if (eval('document.form.'+campo+'.value==0')){ alert('Por favor seleccione '+salida+'.'); eval('document.form.'+campo+'.focus()'); //eval('document.form.'+campo+'.select()'); return true; } } function es_email(campo) { cadena1='@'; cadena2='.'; if (document.form.email.value.indexOf(cadena1)==-1||document.form.email.value.indexOf(cadena2)==-1||document.form.email.value.length<6){ alert('La dirección de '+campo+' introducida no es correcta '); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function debe_medir(campo,longitud){ if (eval('document.form.'+campo+'.value.length')< longitud||eval('document.form.'+campo+'.value.length')> longitud){ alert('La longitud del ' +campo+ ' no es correcta\nDebe tener '+longitud+ ' caracteres'); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } } function es_numero(campo) { if (isNaN(eval('document.form.'+campo+'.value'))){ alert('el campo '+campo+ ' no es correcto'); eval('document.form.'+campo+'.focus()'); eval('document.form.'+campo+'.select()'); return true; } }