Javascript String to_i()
String.prototype.to_i = function (){ return parseInt(this); }
String.prototype.to_i = function () { return parseInt(this.valueOf()); };
String.prototype.to_i = function() { // MUST add the radix as parsing dates gives leading 0s with will cause it to be octal. return parseInt(this,10); }