/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


String.prototype.startsWith = function(t, i)
{
    if (i==false) {
        return (t == this.substring(0, t.length));
    } else {
        return (t.toLowerCase()== this.substring(0, t.length).toLowerCase());
    }
}

String.prototype.endsWith = function(t, i) { if (i==false) { return (t
== this.substring(this.length - t.length)); } else { return
(t.toLowerCase() == this.substring(this.length - t.length).toLowerCase()); } }
