encryptedText = encryptedText.substring(0,encryptedText.length()-1);
if (encryptedText.endsWith("\r"))
encryptedText = encryptedText.substring(0,encryptedText.length()-1);
// Add the commands
String hint = enmedia.attribute("hint");
hint = hint.replace("'","'");
enmedia.setAttribute("onClick", "window.jambi.decryptText('crypt"+Global.cryptCounter.toString()+"', '"+encryptedText+"', '"+hint+"');");
enmedia.setAttribute("onMouseOver", "style.cursor='hand'");
enmedia.setTagName("img");
enmedia.removeChild(enmedia.firstChild()); // Remove the actual encrypted text