// JavaScript Document

	function strltrim() {
            //Match spaces at beginning of text and replace with a null string
            return this.replace(/^\s+/,'');
        }
    

	function strrtrim() {
            //Match spaces at end of text and replace with a null string
            return this.replace(/\s+$/,'');
        }
    

	function strtrim() {
            //Match spaces at beginning and end of text and replace
            //with null strings
            return this.replace(/^\s+/,'').replace(/\s+$/,'');
        }

	String.prototype.ltrim = strltrim;
        String.prototype.rtrim = strrtrim;
        String.prototype.trim = strtrim;

    
