var d = document;
function get(element) { return d.getElementById(element); }
function Ajax() {
		  try {
         ajax = new ActiveXObject("Microsoft.XMLHTTP");
      } 
      catch(e) {
         try {
            ajax = new ActiveXObject("Msxml2.XMLHTTP");
         }
	     catch(ex) {
            try {
               ajax = new XMLHttpRequest();
            }
	        catch(exc) {
               alert("Esse browser não tem recursos para uso do Ajax");
               ajax = null;
            }
         }
      }
}

function show(quem, como) {
	get(quem).style.display = como;
}

      
function custom_file(valor, texto) {
var valor = get(valor);
var texto = get(texto);
texto.innerHTML = valor.value.substr((valor.value.lastIndexOf('\\') + 1));
}
	