enmedia.setAttribute("src", Global.getFileManager().getImageDirPath("encrypt.png"));
enmedia.setAttribute("en-tag","en-crypt");
enmedia.setAttribute("alt", enmedia.text());
Global.cryptCounter++;
enmedia.setAttribute("id", "crypt"+Global.cryptCounter.toString());
String encryptedText = enmedia.text();
// If the encryption string contains crlf at the end, remove them because they mess up the javascript.
if (encryptedText.endsWith("\n"))
encryptedText = encryptedText.substring(0,encryptedText.length()-1);
if (encryptedText.endsWith("\r"))