>- see footer for list info -<
Use this (seems to work):

function formatBase64(n){
        var sResult = "";
        var lNumerals =
"[EMAIL PROTECTED]";
        var iNumber = arguments.n;
        var iRemainder = 0;
        
        while (iNumber ge 64){
                iRemainder = iNumber mod 64;
                sResult = mid(lNumerals, iif(iRemainder, iRemainder,
64), 1) & sResult;
                iNumber = iNumber \ 64; 
        }               
        sResult =  mid(lNumerals, iif(iNumber, iNumber, 64), 1) &
sResult;
        return sResult;
}

-- 
Adam
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to