function validarEntero(valor){ 

   IsAlphaNumeric = "true";
   len = valor.length ;

  for (i= 0; i < len; i++){
     nChar = valor.charCodeAt(i);

     if ((nChar < 48) || (nChar > 57)){
        IsAlphaNumeric = "false";
        break;
     } 
   }
   return IsAlphaNumeric;
}

function statusmsg(msg) 
{ 
     window.status = msg ; return true; 
}

function fecha(){

fecha = new Date();
dia = fecha.getDate();
dia_semana = fecha.getDay();
mes = fecha.getMonth();
ano = fecha.getFullYear();

nombre_dias = new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado");
nombre_meses = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");

document.write(dia + " de " + nombre_meses[mes] + " " + ano);

}

function ventana(destino, ancho, alto){
if(!ancho){
 ancho = 250;
}
if(!alto){
alto = 370;
}

open(destino, "mrdevy", "toolbar=no, status=no,resizable=yes, scrollbars, width=" + ancho + ", height=" + alto);

}

  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	src.style.cursor = 'hand';
	src.bgColor = clrOver;
    }
  }
  function mOut(src,clrIn) {
    if (!src.contains(event.toElement)) {
	src.style.cursor = 'default';
	src.bgColor = clrIn;
    }
  }
  
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }

function ver(remoteWin) {
        remoteWin = window.open( remoteWin, "links", "width=600,height=360,toolbar=no,resizable=no,location=no,menubar=no,scrollbars=yes, left=170,top=170"); 
}	

//Funciones que se utilizan para el efecto "fade" de las imagenes de nuestros clientes
function fadeIn(objId,opacity) {
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
			setOpacity(obj, opacity);
			opacity += 10;
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);
		}
	}
}
function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;
	// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";
	// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;
	// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;
	// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
}

function ver_news(remoteWin) {
        remoteWin = window.open( remoteWin, "links", "width=600,height=560,toolbar=no,resizable=no,location=no,menubar=no,scrollbars=yes, left=170,top=170"); 
}


function openWin(remoteWin) {
        remoteWin = window.open( remoteWin, "links", "width=640,height=300,toolbar=no,resizable=no,location=no,menubar=no,scrollbars=yes, left=170,top=250");
	}

function openW(remoteWin) {
        remoteWin = window.open( remoteWin, "", "width=620,height=200,resizable=no,location=yes,menubar=yes,scrollbars=yes,left=170,top=230");
	}

function clases(remoteWin) {
        remoteWin = window.open( remoteWin, "links", "width=620,height=300,toolbar=no,resizable=no,location=no,menubar=no,scrollbars=yes, left=170,top=230"); 
	}


function imgover(imgname, number){
     imgname.src = Imagenes[number].src;
}
function imgout(imgname, number){
     imgname.src = Imagenes[number].src;
}

function clik(src) {
  if(event.srcElement.tagName=='TD'){
    src.children.tags('A')[0].click();
  	}
  }
function over(src,number) {
  if(event.srcElement.tagName=='TD'){
    src.style.cursor = 'hand';
    src.background = Imagenes[number].src;
  }
}
function out(src,number) {
  if(event.srcElement.tagName=='TD'){
    src.style.cursor = 'default';
    src.background = Imagenes[number].src;
  }
}

