function makevisible(cur,which){
	if (which==0)
		cur.filters.alpha.opacity=100
	else
		cur.filters.alpha.opacity=80
	}
	
function url(jurl){
   parent.location.replace(jurl);
}
   
function activaobjeto(objeto){
   document.getElementById(objeto).disabled=false;
}

function desactivaobjeto(objeto){
   document.getElementById(objeto).disabled=true;
   document.getElementById(objeto).className="boton_disable";
}

function habilita(form) {
   if(form.nombre.value != "")
        { form.enviar.disabled=false; }
   else { form.enviar.disabled=true; }
}

function solonumeros(){
   var key=window.event.keyCode;
   if (key < 48 || key > 57) { window.event.keyCode=0; }
}

function sololetynum(){
   var key=window.event.keyCode;
   if ((key <= 47) || (key >= 123) || (key >= 58 && key <= 64) || (key >= 91 && key <= 96)) 
      { window.event.keyCode=0; }
}

function sololetnumalg(){
   var key=window.event.keyCode;
   if ( key < 32 || key > 126 ) 
      { window.event.keyCode=0; }
}

function MostrarCapa(nombreCapa){
//	alert(nombreCapa.name);
//	alert(objeto);
//	alert(document.getElementById(nombreCapa).name);
   document.getElementById(nombreCapa).style.visibility="visible"; 
} 
 
function OcultarCapa(nombreCapa){ 
   document.getElementById(nombreCapa).style.visibility="hidden"; 
}

