function RTrim(strTrim){
    var str = new String(strTrim);
    var i = 0;
    var c = "";
    var endpos = 0

    for (i = str.length; i >= 0 && endpos == 0; i = i - 1) {
        c = str.charAt(i);
        if (whitespace.indexOf(c) == -1)
            endpos = i;
    }

    return str.substring(0,endpos+1);
}
// Right trims the string...  Useful for SQL datatypes of CHAR
Right trims the string...  Useful for SQL datatypes of CHAR
Right trims the string ... Useful for SQL datatypes of CHAR
function RTrim(strTrim){
    var str = new String(strTrim);
    var i = 0;
    var c = "";
    var endpos = 0
    for (i = str.length; i >= 0 && endpos == 0; i = i - 1) {
        c = str.charAt(i);
        if (whitespace.indexOf(c) == -1)
            endpos = i;
    }
    return str.substring(0,endpos+1);
}
function RTrim ( strTrim ) { var str = new String ( strTrim ) ; var i = 0 ; var c = "" ; var endpos = 0 for ( i = str . length ; i >= 0 && endpos == 0 ; i = i - 1 ) { c = str . charAt ( i ) ; if ( whitespace . indexOf ( c ) == - 1 ) endpos = i ; } return str . substring ( 0 , endpos + 1 ) ; }
Right trims the string...
Right trims the string ...