function IsNull(n){return n===undefined||n===null}function GetInputRadioValue(n){for(var i,r=document.getElementsByName(n),t=0;t<r.length;t++)if(i=r[t],i.checked)return i.value;return null}function RespondToVisibility(n,t){var i={root:document.documentElement},r=new IntersectionObserver(function(n){n.forEach(function(n){t(n.intersectionRatio>0)})},i);r.observe(n)}function GetCookie(n){for(var t,r=n+"=",f=decodeURIComponent(document.cookie),u=f.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function SetCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i);u="expires="+r.toUTCString();document.cookie=n+"="+t+";"+u+";path=/"}String.prototype.Substring=function(n,t,i){var r=new String(this),f,u,e;if(IsNull(r))throw"str may not be null.";if(IsNull(t))throw"leftSide may not be null.";if(IsNull(i))throw"rightSide may not be null.";return r.length<=0?null:(f=r.indexOf(t,n),f<0)?null:(u=f+t.length,e=r.indexOf(i,u),e<0)?null:r.substr(u,e-u)};String.prototype.IsNullOrEmpty=function(){var n=new String(this);return IsNull(n)||n===""}