function GenTDES() // Generate3DES() can be direct accessed in MainApplet.class { if(document.app.Generate3DES()) { document.form1.GetGenTDESVle.value= "Success"; } else { document.form1.GetGenTDESVle.value=document.app.getErrorString(); } } // getEncryptPINcode() can be direct accessed in MainApplet.class function EncryptTDES() { if(document.app.EncryptPINcode(document.form1.UserPin.value)) { document.form1.GetEncryptTDESVle.value= document.app.getEncryptPINcode(); } else { document.form1.GetEncryptTDESVle.value=document.app.getErrorString(); } } // RsaEncrypt3DES() can be direct accessed in MainApplet.class however it will call into PaySecure.* classes. function RSAEncryptTDES() { if(document.app.RsaEncrypt3DES()) { document.form1.GetRSAEncryptTDESVle.value= document.app.getRsaEncrypt3DES(); } else { document.form1.GetRSAEncryptTDESVle.value= document.app.getErrorString(); } }