text: Number.prototype.formatMoney=function(b,d,a){var c=this;b=isNaN(b=Math.abs(b))?2:b,a=a==undefined?".":a,d=d==undefined?",":d,sign=c<0?"-":"",i=parseInt(c=Math.abs(+c||0).toFixed(b))+"",j=(j=i.length)>3?j%3:0;
  return sign+(j?i.substr(0,j)+d:"")+i.substr(j).replace(/(\d{3})(?=\d)/g,"$1"+d)+(b?a+Math.abs(c-i).toFixed(b).slice(2):"");};String.prototype.formatMoney=function(b,d,a){var c=this;
  b=isNaN(b=Math.abs(b))?2:b,a=a==undefined?".":a,d=d==undefined?",":d,sign=c<0?"-":"",i=parseInt(c=Math.abs(+c||0).toFixed(b))+"",j=(j=i.length)>3?j%3:0;
  return sign+(j?i.substr(0,j)+d:"")+i.substr(j).replace(/(\d{3})(?=\d)/g,"$1"+d)+(b?a+Math.abs(c-i).toFixed(b).slice(2):"");};String.prototype.count=function(a){return(this.length-this.replace(new RegExp(a,"g"),"").length)/a.length;
  };function trim(a){return a.replace(/([\ \t]+(?=[\ \t])|^\s+|\s+$)/g,"").replace(/^\s+/g,"");}function priLetraMayAll(b){b=b.toLowerCase();function a(d,e){return d.toUpperCase();
  }var c=/(^| )([\wáéíóúñ])/g;return b.replace(c,a);}function priLetraMay(a){a=a.toLowerCase();return a.charAt(0).toUpperCase()+a.slice(1);}function validar(a,b){if(b.test(a)){return true;
  }else{return false;}}function cambio(a,d){var c="";for(var b=0;b<a.length;b++){var e=a.charAt(b);if(validar(e,d)){c=c+e;}}return c;}$(function(){$(".vtCedula").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;
  }return validar(String.fromCharCode(a.which),/^[0-9\x00\b]+$/);});$(".vtCedula").blur(function(){$(this).val(parseInt($(this).val()));if($(this).val()==0){$(this).val("");
  }return $(this).val(cambio($(this).val(),/^[0-9\x00\b]+$/));});$(".vtNro").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;}return validar(String.fromCharCode(a.which),/^[0-9\x00\b]+$/);
  });$(".vtNro").blur(function(){if($(this).val()==0){$(this).val("");}return $(this).val(cambio($(this).val(),/^[0-9\x00\b]+$/));});$(".vtNombrelmayall").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;
  }return validar(String.fromCharCode(a.which),/^[a-zA-Z \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/);
  });$(".vtNombrelmayall").blur(function(){return $(this).val(priLetraMayAll(trim(cambio($(this).val(),/^[a-zA-Z \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/))));
  });$(".vtNombrelmay").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;}return validar(String.fromCharCode(a.which),/^[a-zA-Z \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/);
  });$(".vtNombrelmay").blur(function(){return $(this).val(priLetraMay(trim(cambio($(this).val(),/^[a-zA-Z \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/))));
  });$(".vtNumeroCaso").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;}return validar(String.fromCharCode(a.which),/^[a-zA-Z0-9\x00\b]+$/);
  });$(".vtNumeroCaso").blur(function(){return $(this).val((trim(cambio($(this).val(),/^[a-zA-Z0-9\x00\b]+$/))).toUpperCase());});$(".vtObs2").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;
  }return validar(String.fromCharCode(a.which),/^[0-9\=a-zA-Z\!\¡\¿\?\{\}\[\]\@\\\/\+\-\_\*\.\;\:\(\)\%\$\#\° \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/);
  });$(".vtObs2").blur(function(){return $(this).val((trim(cambio($(this).val(),/^[0-9\=a-zA-Z\!\¡\¿\?\{\}\[\]\@\\\/\+\-\_\*\.\;\:\(\)\%\$\#\° \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/))).toUpperCase());
  });$(".vtObs").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;}return validar(String.fromCharCode(a.which),/^[0-9\=a-zA-Z\!\¡\¿\?\{\}\[\]\@\\\/\+\-\_\*\.\;\:\(\)\%\$\#\° \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/);
  });$(".vtObs").blur(function(){return $(this).val(priLetraMay(trim(cambio($(this).val(),/^[0-9\=a-zA-Z\!\¡\¿\?\{\}\[\]\@\\\/\+\-\_\*\.\;\:\(\)\%\$\#\° \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/))));
  });$(".vtPass").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;}return validar(String.fromCharCode(a.which),/^[0-9\=a-zA-Z\!\¡\¿\?\{\}\[\]\@\\\/\+\-\_\*\.\;\:\(\)\%\$\#\° \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/);
  });$(".vtPass").blur(function(){return $(this).val(trim(cambio($(this).val(),/^[0-9\=a-zA-Z\!\¡\¿\?\{\}\[\]\@\\\/\+\-\_\*\.\;\:\(\)\%\$\#\° \u00e1\u00e9\u00ed\u00f3\u00fa\u00c1\u00c9\u00cd\u00d3\u00da\u00f1\u00d1\u00FC\u00DC\x00\b]+$/)));
  });$(".vtusuario").keypress(function(a){if(a.ctrlKey||a.altKey||(a.which==13)){return true;}return validar(String.fromCharCode(a.which),/^[a-zA-Z0-9\x00\b]+$/);
  });$(".vtusuario").blur(function(){return $(this).val((trim(cambio($(this).val(),/^[a-zA-Z0-9\x00\b]+$/))).toLowerCase());});});