﻿if(typeof(String.prototype.startsWith)=="undefined"){String.prototype.startsWith=function(prefix){return 0==this.indexOf(prefix);};};if(typeof(String.prototype.endsWith)=="undefined"){String.prototype.endsWith=function(suffix){return this.length-suffix.length==this.lastIndexOf(suffix);};};if(typeof(String.prototype.isBlank)=="undefined"){String.prototype.isBlank=function(){return null !=this.match(/^\s*$/);};};if(typeof(String.prototype.trim)=="undefined"){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'');};};if(typeof(String.prototype.stripHTML)=="undefined"){String.prototype.stripHTML=function(){var reTag=/<(?:.|\s)*?>/g;return this.replace(reTag,"");};};if(typeof(String.prototype.stripTagMinusMajor)=="undefined"){String.prototype.stripTagMinusMajor=function(){var reTag=/(?:<|>)+?/g;return this.replace(reTag,"");};};if(typeof(String.prototype.htmlEncode)=="undefined"){String.prototype.htmlEncode=function(){if(this){var reDoppiApici=/"/g;return this.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(reDoppiApici,"&quot;").replace(/%/g,"&#37;");}else{return "";}};};if(typeof(String.prototype.quotEncode)=="undefined"){String.prototype.quotEncode=function(){if(this){var reDoppiApici=/"/g;return this.replace(reDoppiApici,"&quot;");}else{return "";}};};


