Two little helpers, one to calculate an iBAN (international banking account number) for any bank account and one to verify its consistency.
Since iBAN numbers are generally too long to be calculated within JS, the modulo calculation is splitted.
If you need to use the iBAN calculator in older versions, of MSIE that lack the ability to address a string's characters like they were in an array, use the following (longer) version:
function(b,a,n,i){i=parseInt;return n+('0'+(98-((((""+b)%97+(""+a))%97)+""+i(n.charAt(0),36)+i(n.charAt(1),36)+"00")%97)).slice(-2)+b+a}