﻿function ULS8Wd(){var a={};a.ULSTeamName="Microsoft SharePoint Foundation";a.ULSFileName="commonvalidation.js";return a}var L_ContainIllegalChar_Text="^1 contiene un carácter no válido '^2'.",L_ContainIllegalString_Text="^1 contiene una subcadena o caracteres no válidos.",LegalUrlChars=[false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,true,true,false,false,true,false,false,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,false,true,false,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false,false];function AdmBuildParam(b){a:;for(var c,a=1;a<AdmBuildParam.arguments.length;a++){c=new RegExp("\\^"+a);b=b.replace(c,AdmBuildParam.arguments[a])}return b}function IndexOfIllegalCharInUrlLeafName(b){a:;for(var a=0;a<b.length;a++){var c=b.charCodeAt(a);if(b.charAt(a)=="."&&(a==0||a==b.length-1))return a;if(c<160&&(b.charAt(a)=="/"||!LegalUrlChars[c]))return a}return -1}function IndexOfIllegalCharInUrlPath(b){a:;for(var a=0;a<b.length;a++){var c=b.charCodeAt(a);if(c<160&&!LegalUrlChars[c])return a}return -1}function UrlContainsIllegalStrings(a){a:;if(a.indexOf("..")>=0||a.indexOf("//")>=0||a.indexOf("./")>=0||a.indexOf("/.")>=0||a.indexOf(".")==0||a.lastIndexOf(".")==a.length-1)return true;return false}function UrlLeafNameValidate(a,b){a:;var c="";if(typeof a.MessagePrefix=="string")c=a.MessagePrefix;else c=a.id;var d=IndexOfIllegalCharInUrlLeafName(b.Value);if(d>=0){if(typeof a.errormessage=="string")a.errormessage=AdmBuildParam(L_ContainIllegalChar_Text,c,b.Value.charAt(d));b.IsValid=false}else if(UrlContainsIllegalStrings(b.Value)){if(typeof a.errormessage=="string")a.errormessage=AdmBuildParam(L_ContainIllegalString_Text,c);b.IsValid=false}else b.IsValid=true}function UrlPathValidate(a,b){a:;var c="";if(typeof a.MessagePrefix=="string")c=a.MessagePrefix;else c=a.id;var d=IndexOfIllegalCharInUrlPath(b.Value);if(d>=0){if(typeof a.errormessage=="string")a.errormessage=AdmBuildParam(L_ContainIllegalChar_Text,c,b.Value.charAt(d));b.IsValid=false}else if(UrlContainsIllegalStrings(b.Value)){if(typeof a.errormessage=="string")a.errormessage=AdmBuildParam(L_ContainIllegalString_Text,c);b.IsValid=false}else b.IsValid=true}function IsCheckBoxListSelected(a){a:;if(a==null)return false;var c=a.length;if(c==null)return a.checked;else for(var b=0;b<c;b++)if(a[b].checked)return true;return false}function STSValidatorEnable(d,b,c){a:;var a=document.getElementById(d);if(a==null)return;if(c==true||a.getAttribute("AlwaysEnableSilent")==true)a.enabled=b==true;else ValidatorEnable(a,b)}typeof Sys!="undefined"&&Sys&&Sys.Application&&Sys.Application.notifyScriptLoaded();typeof NotifyScriptLoadedAndExecuteWaitingJobs=="function"&&NotifyScriptLoadedAndExecuteWaitingJobs("commonvalidation.js")
