var charList=new Object(); charList["'"]="[[apostrophe]]"; charList["’"]="[[apostrophe-r]]"; charList["‘"]="[[apostrophe-l]]"; function tomEncode(inStr) { for (key in charList) { inStr=inStr.split(key); inStr=inStr.join(charList[key]); } return inStr; } function tomDecode(inStr) { for (key in charList) { inStr=inStr.split(charList[key]); inStr=inStr.join(key); } return inStr; } function checkFor(what,inwhat) { if (inwhat.indexOf(what)<0) { return false; } else { return true; } }