<% function encode(soStr) for i=1tolen(soStr) TempNum=hex(asc(mid(soStr,i,1))) iflen(TempNum)=4then encode=encode &"%"&left(cstr(TempNum),2) &"%"&right(cstr(TempNum),2) else Randomize encode=encode &"%"&chr(72+int(rnd*18))&chr(72+int(rnd*18)) &"%"&cstr(TempNum) endif next end function function decode(x) x=replace(x,"%","") for i=1tolen(x) ifasc(mid(x,i,1))>=72then x=replace(x,mid(x,i,1),"0") endif next for i=1tolen(x) step 4 decode=decode&chr(int("&H"&mid(x,i,4))) next end function %>