function nuevoAjax(){ 
  var xmlhttp=false; 
  try { 
   // Creación del objeto ajax para navegadores diferentes a Explorer 
   xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
  } catch (e) { 
   // o bien 
   try { 
     // Creación del objet ajax para Explorer 
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (E) { 
     xmlhttp = false; 
   } 
  } 

  if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
   xmlhttp = new XMLHttpRequest(); 
  } 
  return xmlhttp; 
} 




function comp()
{ 
	idtp=document.frm.usuario.value
	ajax=nuevoAjax();	
		ajax.open("POST", "etc/veri_user.php",true);	
		document.getElementById("veri").innerHTML ='<img src=icos/ld.gif> Comprobando';
		ajax.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		ajax.send("v="+idtp);	
		ajax.onreadystatechange=function(){ 
				if (ajax.readyState == 4) { 
				   if (ajax.status == 200) { 
					  if (ajax.responseText.indexOf('invalid') == -1) {
						 // Armamos un array, usando la coma para separar elementos			
						 document.getElementById("veri").innerHTML = ajax.responseText;
						 enProceso = false;
						 return ajax.responseText;
					  }
				   }
				}
			}	
		
} 

function minuscula()
{
var txt=document.frm.usuario.value
document.frm.usuario.value=txt.toLowerCase()
}