// JavaScript Document
function validar(){
texto=document.getElementById("paterno");
texto1=document.getElementById("materno");
if(texto.value==""){
alert("No se admiten busquedas sino ingresa texto.");
texto.focus();
return false;
}
if(texto.value=="Apellido Paterno"){
alert("No se admiten busquedas sino ingresa texto.");
texto.focus();
return false;
}
if(texto1.value==""){
alert("No se admiten busquedas sino ingresa texto.");
texto1.focus();
return false;
}
if(texto1.value=="Apellido Materno"){
alert("No se admiten busquedas sino ingresa texto.");
texto1.focus();
return false;
}
                  }
function validare(){
texto=document.getElementById("buscare");
if(texto.value==""){
alert("No se admiten busquedas sino ingresa texto.");
texto.focus();
return false;
}
                  }

function cambiarbusae(){
document.getElementById("paterno").style.display="none";
document.getElementById("materno").style.display="none";
document.getElementById("buscare").style.display="inline";
document.getElementById("btnuno").style.display="none";
document.getElementById("btndos").style.display="inline";
}
function cambiarbusap(){
//document.getElementById("paterno").value='';
//document.getElementById("materno").value='';
document.getElementById("paterno").style.display="inline";
document.getElementById("materno").style.display="inline";
document.getElementById("buscare").style.display="none";
document.getElementById("btnuno").style.display="inline";
document.getElementById("btndos").style.display="none";
}

function paternolimpiar(){
p=document.frm_buscar_empresas_personas.paterno.value;
if(p=='Apellido Paterno'){ 
document.frm_buscar_empresas_personas.paterno.value='';
}
}
function maternolimpiar(){
p=document.frm_buscar_empresas_personas.materno.value;
if(p=='Apellido Materno'){ 
document.frm_buscar_empresas_personas.materno.value='';
}
}


