convert alphabets to coresponding numbers
<p>i have to convert alphabets to corresponding numbers like i have a data like "DRSG004556722000TU77" and the index for A is 10, B is 11, C is 12 and so on up to Z is 35.</p>

<p>any helping tips??</p>

<p>here is the javascript which return me ascii code but i want to get the above indecies for respective alphabet</p>

<pre><code>var string = DRSG004556722000TU77;
    function getColumnName(string) {
    return ((string.length - 1) * 26) + (string.charCodeAt(string.length - 1) - 64);
    }
    document.write( getColumnName(string) );
</code></pre>
