var f1=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
var filtroCiudad=/^([a-zA-Z])+([^'"])+$/;
var f2=/^([a-zA-Z])+([^"\$\^\*\[\]\+\/\\!@#%&(){};,:<>?|=~`\s])+$/;
var m4=/([A-Z][^A-Z]*){4}/;
var m5=/([A-Z][^A-Z]*){5}/;
function esEmail(E){if(E.trim=="")return(false);return f1.test(E);}
function esNombre(E){if(E.length < 2)return(false);if(f2.test(E)){if(E.length >=12)return !m5.test(E);return !m4.test(E);}return false;}
function esCiudad(E){if(E.length < 2)return(false);return(filtroCiudad.test(E));}
function ee(id){if(document.getElementById)return document.getElementById(id);if(document.all)return document.all[id];}
function ef(f,id){if(f.window.document.getElementById)return f.window.document.getElementById(id);if(f.window.document.all)return f.window.document.all[id];}
function efr(f,id){return document.forms[f].elements[id];}
function eew(id,m){var t=ee(id);if(t)if(typeof(t)=="object")t.innerHTML=m;}
function efw(f,id,m){var t=ef(f,id);if(t)if(typeof(t)=="object")t.innerHTML=m;}
function titulo(m,n,a){var f=parent.frames['title'];if(typeof(f)=="object"){efw(f,'titulo',"&nbsp;"+m);window.status=m;efw(f,'jugador',n);efw(f,'salir',a);}}
function menuBar(m,v){var f=parent.frames['bar'];if(typeof(f)=="object"){efw(f,'titulo',m);efw(f,'jugador',v);}}
function epv(e,v){ee(e).value=v;}
function epf(e){ee(e).focus();}
function eps(m){var et=ee('ErrorTable');if(m==""){eew('ErrorPanel',"");et.cellSpacing="0";et.cellPadding="0";}else{eew('ErrorPanel',"<FONT color=red>"+m+" ! </FONT>");et.cellSpacing="1";et.cellPadding="8";}}
function condiciones(fn){var w=window.screen.availWidth*3/4;if(w<400)w=400;win=window.open(fn,"","width="+w+",height=565,resizable=yes,scrollbars=yes,menubar=no");win.focus();}
function scr2(q){winFoto=window.open("screen2.aspx?sel="+q,"JuegoDominoScreen","width=780,height=615,resizable=yes,scrollbars=no,menubar=no");winFoto.focus();}
function rowon(id){var row=ee(id);row.style.backgroundColor='#F9FCFC';}
function rowoff(id){ee(id).style.backgroundColor='#FFFFFF';}
function WCJD(f,m){win=window.open("Certificado.aspx?key="+f+"&meses="+m,"dsW","width=774,height=453,resizable=yes,scrollbars=yes,menubar=no");win.focus();}
function JDReader(id){win=window.open("http:/"+"/juegodomino.com/archivo/?"+id,"JDReader","resizable=yes,scrollbars=yes,menubar=yes");win.focus();}