var ventana;function MM_openBrWindow(theURL,winName,features){ventana=window.open(theURL,winName,features);if(ventana){ventana.focus()}}function openwindow(location,name,width,height,x,y){window.open(location,name,'height='+height+',width='+width+',screenX='+x+',screenY='+y+',scrollbars=no,left='+x+',top='+y)}function openwindowscroll(location,name,width,height,x,y){window.open(location,name,'height='+height+',width='+width+',screenX='+x+',screenY='+y+',scrollbars=yes,left='+x+',top='+y)}function select_combo(sCombo,sValor){for(var i=0;i<sCombo.length;i++){if(sCombo.options[i].value==sValor)sCombo.options[i].selected=true}}function alfanumerico(e){tecla=(document.all)?e.keyCode:e.which;if(tecla==32)return false;if((tecla==8)||(tecla==0))return true;patron=/[0-9A-Za-z\s_-]/;test=String.fromCharCode(tecla);return patron.test(test)}function ShowComboNumerico(Combo,ini,fin,intervalo,tipo,selected){var option0;var j;j=1;if(tipo=="asc"){for(i=ini;i<=fin;i=i+intervalo){option0=new Option(i,i);Combo.options[j]=option0;if(selected==i)Combo.options[j].selected=true;j=j+1}}else{for(i=ini;i>=fin;i=i-intervalo){option0=new Option(i,i);Combo.options[j]=option0;if(selected==i)Combo.options[j].selected=true;j=j+1}}}function valida_correo(email){regx=/^([0-9a-zA-Z]([-._\w]*[0-9a-zA-Z\-_])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$/;return regx.test(email)}
