/* JavaScript Document */ var isNS4 = (navigator.appName=="Netscape")?1:0; /*========================================================================================================================*/ String.prototype.lpad = function(pSize, pCharPad) { var str = this; var dif = pSize - str.length; var ch = String(pCharPad).charAt(0); for (; dif>0; dif--) str = ch + str; return (str); } //String.lpad //var xx = 1 //alert(String(xx).lpad(8,"0")) convierte un numero en cadena y lo llena de 8 ceros ->00000001 /*========================================================================================================================*/ String.prototype.rpad = function(pSize, pCharPad) { var str = this; var dif = pSize - str.length; var ch = String(pCharPad).charAt(0); for (; dif>0; dif--) str = str+ch; return (str); } /*========================================================================================================================*/ String.prototype.trim = function() { return this.replace(/^\s*/, "").replace(/\s*$/, ""); } //String.trim /*========================================================================================================================*/ /* FUNCION QUE OBLIGA A LLENAR CAMPOS EN EL FORMULARIO */ function ObligaCampos(objform) { /*--------------------------------------------------------------------- PARAMETROS objform ->(objeto) recibe el objeto formulario LLAMADA