//document.oncontextmenu=function(){return false}
function gInicio(){var sAux=top.location.href;if(sAux!=this.parent.location.href)top.location.href=this.parent.location.href;else{top.gT=top;gT=top.gT;gT.aZs=new Array(3);var nPos=sAux.indexOf('/',sAux.indexOf('//')+2)+1;gT.sURL=sAux.substring(0,nPos);gT.sURLApp=gT.sURL+sAux.substring(nPos,sAux.indexOf('/',nPos)+1);gT.sURLSrvls=gT.sURLApp+'servlet/';gT.bZS=1}}
function limpia(){document.getElementById('sTexto').value="";}
function existe(e){return eval('typeof '+e+'!=\'undefined\'')}
function siCond(e,f,t){eval('if(!existe(\''+e+'\'))setTimeout("siCond(\''+e+'\',\''+f+'\','+t+')",'+t+');else{'+f+'}')}
function esArray(e){return eval('typeof e.length!=\'undefined\'')}
function esIdentificador(t){return /^\w+$/.test(t)}
function esArchivo(t){return /^.*[\/\\]\w+\.\w+$/.test(t)}
function esEntero(t){return /^-?(0|[1-9]\d*)$/.test(t)}
function esNatural(t){return /^(0|[1-9]\d*)$/.test(t)}
function esImagen(t){if(!(/^.*[\/\*\?"<>\|].*$/.test(t.toLowerCase())));return /^([a-z]:\\([^\\]+\\)*[^\\]+.(gif|jp[e]?g))$/.test(t.toLowerCase());return false}
function esGIF(t){return /(\.gif)$/.test(t.toLowerCase())}
function esZIP(t){return /(\.zip)$/.test(t.toLowerCase())}
function esFecha(t){if(/^((0?[1-9]|[12]\d|3[01])\/(0?[1-9]|1[012])\/\d{4})$/.test(t)){var asPs=t.split(/\//);if(asPs[2]<1752 || asPs[2]>9999)return false;if(asPs[1]==2 && (asPs[0]>29||(asPs[0]==29&&!(asPs[2]%4==0&&(asPs[2]%100!=0||asPs[2]%400==0)))))return false;if((asPs[1]==4||asPs[1]==6||asPs[1]==9||asPs[1]==11)&& asPs[0]>30)return false;return true}return false}
function esCorreo(t){return /^(\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+)$/.test(t)}
function aFecha(t){if(esFecha(t)){var asPs=t.split(/\//);if(asPs.length>0)return eval('new Date('+asPs[2]+','+eval(asPs[1]+'-1')+','+asPs[0]+',23,59,59)')}else return null}
function alClipBoard(t){fFCB.sCB.innerText=t;var oTR = fFCB.sCB.createTextRange();oTR.execCommand("RemoveFormat");oTR.execCommand("Copy")}
Array.prototype.esta=function(e){for(var i=e.length;(--i)>=0;)if(this[i]==e)return true;return false}
String.prototype.trim=function(){var i=0;var j=this.length-1;while(i<this.length&&(this.charAt(i)==' '||this.charCodeAt(i)==10||this.charCodeAt(i)==13))i++;while(j>i&&(this.charAt(j)==' '||this.charCodeAt(j)==10||this.charCodeAt(j)==13))j--;if(j>=i)return this.substring(i,j+1);return ''}