<!--
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==8) 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 = 0;
	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);
}

//proteccion web
/*
//Evita usar el boton derecho del ratón
document.oncontextmenu = function(){return false}
//No permite seleccionar el contenido de una página
function disableselect(e){
return false
}
function reEnable(){
return true	
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
//document.onmousedown=disableselect
//document.onclick=reEnable
}
//solo funciona con explorer
//Borra el Portapapeles con el uso del teclado
if (document.layers){
	document.captureEvents(Event.KEYPRESS)
	function backhome(e){
		window.clipboardData.clearData();
	}
	//Borra el Portapapeles con el uso del mouse
	document.onkeydown=backhome
	function click(){
		if(event.button){
			window.clipboardData.clearData();
		}
	}
	document.onmousedown=click
}*/
//-->