﻿
  function mostrar_advsearch(){
	  obj = document.getElementById('advsearch')
	  obj.style.display='block'
	  obj = document.getElementById('buscar')
	  obj.disabled=true;
  }
	
  function ocultar_advsearch(){
    obj = document.getElementById('advsearch')
    obj.style.display='none'
    obj = document.getElementById('buscar')
    obj.disabled=false;
  }

  
  function cambiar_mover(obj, pcolor){
      obj.style.cursor='pointer';
      obj.style.backgroundColor=pcolor;
	  obj.style.border='1px solid #dddddd';
  }
  
  function cambiar_mout(obj, pcolor){
    obj.style.cursor='default';
	obj.style.backgroundColor=pcolor;
	  obj.style.border='0px';
  }
								  

  function cambiar_imagen(obj_imagen,ref_imagen){
    obj_imagen.src=ref_imagen;
  }

  function IsNumeric(str){
    var no=true,i,s1;	
    var Chr = "0123456789._-+()";
    for (i = 0; i < str.length ; i++){ 
      s1= str.charAt(i); 
      if (Chr.indexOf(s1) == -1) {
        no = false;
      }
    }
    if(no==false){
      return false;
    }else{
      return true;
    }
  }
  
  function validarEmail(valor) {
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3,4})+$/.test(valor)){
      alert("La dirección de email " + valor + " es correcta.");
    } else {
      alert("La dirección de email es incorrecta.");
    }
  }


