﻿function doMe(){  
 if (document.myform.pass.value.length < 5){       
      alert("A minimum password length of 5 characters is enforced") ;     
      return; 
 }   
 if (document.myform.infield.value.length < 1){       
     alert("If you wish to encrypt something enter it in the Plain Text box");       
     return; 
 }   
  document.myform.outfield.value="";   
  parent.crypt_x.document.crypt.setStatus("Encrypting....");   
  document.myform.outfield.value=parent.crypt_x.document.crypt.encrypt(document.myform.infield.value,document.myform.pass.value);   
  parent.crypt_x.document.crypt.setStatus("Encryption Completed!");
  }
function doMeTo(){   
  if (document.myform.pass.value.length < 5){       
  alert("A minimum password length of 5 characters is enforced")       
  return 
}   
if (document.myform.outfield.value.length < 1){       
  alert("If you wish to decrypt something enter it in the Encrypted Text box")       
  return 
}   
document.myform.infield.value="";   
parent.crypt_x.document.crypt.setStatus("Decrypting....");   
document.myform.infield.value=parent.crypt_x.document.crypt.decrypt(document.myform.outfield.value,document.myform.pass.value);   
parent.crypt_x.document.crypt.setStatus("Decryption Completed!");
}

function clearPass(){   
  document.myform.pass.value="";
}
function clearIn(){   
  document.myform.infield.value="";
}
function clearOut(){   
  document.myform.outfield.value="";
}
function encrypton() 
{
    document.myform.EncryptButton.style.backgroundColor="#eee9e9";
}
function encryptoff() 
{
    document.myform.EncryptButton.style.backgroundColor="#ddd8d8"
}
function decrypton() 
{
    document.myform.DecryptButton.style.backgroundColor="#eee9e9";
}
function decryptoff() 
{
    document.myform.DecryptButton.style.backgroundColor="#ddd8d8";
}
function russianon() 
{
    document.versions.RussianButton.style.backgroundColor="#eee9e9";
}
function russianoff() 
{
    document.versions.RussianButton.style.backgroundColor="#ddd8d8";
}
function goRussian() 
{
   parent.location= "./index_ru.html";
}
function englishon() 
{
    document.versions.EnglishButton.style.backgroundColor="#eee9e9";
}
function englishoff() 
{
    document.versions.EnglishButton.style.backgroundColor="#ddd8d8";
}
function goEnglish() 
{
   parent.location= "./index.html";
}
function frenchon() 
{
    document.versions.FrenchButton.style.backgroundColor="#eee9e9";
}
function frenchoff() 
{
    document.versions.FrenchButton.style.backgroundColor="#ddd8d8";
}
function goFrench() 
{
   parent.location= "./index_fr.html";
}
function germanon() 
{
    document.versions.GermanButton.style.backgroundColor="#eee9e9";
}
function germanoff() 
{
    document.versions.GermanButton.style.backgroundColor="#ddd8d8";
}
function goGerman() 
{
   parent.location= "./index_de.html";
}
function spanishon() 
{
    document.versions.SpanishButton.style.backgroundColor="#eee9e9";
}
function spanishoff() 
{
    document.versions.SpanishButton.style.backgroundColor="#ddd8d8";
}
function goSpanish() 
{
   parent.location= "./index_es.html";
}
function chineseon() 
{
    document.versions.ChineseButton.style.backgroundColor="#eee9e9";
}
function chineseoff() 
{
    document.versions.ChineseButton.style.backgroundColor="#ddd8d8";
}
function goChinese() 
{
   parent.location= "./index_zh.html";
}
function greekon() 
{
    document.versions.GreekButton.style.backgroundColor="#eee9e9";
}
function greekoff() 
{
    document.versions.GreekButton.style.backgroundColor="#ddd8d8";
}
function goGreek() 
{
   parent.location= "./index_el.html";
}
function hebrewon() 
{
    document.versions.HebrewButton.style.backgroundColor="#eee9e9";
}
function hebrewoff() 
{
    document.versions.HebrewButton.style.backgroundColor="#ddd8d8";
}
function goHebrew() 
{
   parent.location= "./index_he.html";
}
