var ip='38.107.179.228';
var OP = (navigator.userAgent.indexOf("Opera") != -1);var IE = (navigator.userAgent.indexOf("MSIE") != -1) && !OP;var FF = !IE && !OP
HH=new Array();WW=new Array();TT=new Array();LL=new Array();cr_terug=2;cr_src="";cr_dest="";ustat=0;rstat=0;u=0;menuitem="";preid="";mail="";mailid="0";pwd="";vat="";acc_quot="";acc_exp="";short_msg="";orderpm="";availh=0;busy=false;keyfile="";NOsize=false
session="0";convtxt="";cursor=0;rrate=3000;mon_timeout = setTimeout("", 10);TO=false;noise=new Date();retry=0;block=false;pproot="https://www.eucrypt.com/pp.php";cook_pwd="";cook_uid="";bridge=false;pwdremind_acco="";etemplates="";template_current=""
_on="
";
_off="
";
button1=''
button2='
'
msg_decrypt="With a decrypt-licence you can only encrypt to email-adresses with a valid bridge-licence attached."
var xmlhttp=false;
try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) { try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) {xmlhttp = false;}}
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {try {xmlhttp = new XMLHttpRequest();} catch (e) {xmlhttp=false;}}
if (!xmlhttp && window.createRequest) {try {xmlhttp = window.createRequest();} catch (e) {xmlhttp=false;}}
var xmlhttp2=false;
try {xmlhttp2 = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) { try {xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) {xmlhttp2 = false;}}
if (!xmlhttp2 && typeof XMLHttpRequest!='undefined') {try {xmlhttp2 = new XMLHttpRequest();} catch (e) {xmlhttp2=false;}}
if (!xmlhttp2 && window.createRequest) {try {xmlhttp2 = window.createRequest();} catch (e) {xmlhttp2=false;}}
function drop(ok,cr_original,cr_public,terug) {
noise=new Date;
if (ok=="1") {
if (terug=="0") {
src="safe.php?src="+cr_public+"&dst=eu_"+cr_original+'.jpg'+"&id="+session;
document.getElementById("id_button").innerHTML="
Use the right mouse-button and save the envelope to disk
"
} else {
tmp="Ready."
document.getElementById("id_button").innerHTML=tmp
}
} else {
switch (ok) {
case "NOK1" :
document.getElementById("id_button").innerHTML="Invalid session; processing interupted"
break;
case "NOK2" :
document.getElementById("id_button").innerHTML="Communication error; processing interupted"
break;
case "NOKL" :
document.getElementById("id_button").innerHTML="Invalid key"
break;
case "NOKD" :
document.getElementById("id_button").innerHTML="The document cannot be decrypted"
break;
case "NOK3" :
document.getElementById("id_button").innerHTML="An envelope can be decrypted only once. This envelope is useless and you can delete it."
break;
case "NOKI" :
document.getElementById("id_button").innerHTML="Illegal decrypt attempt. This event is reported. Make sure you authenticate with the email-adress indicated as 'destination' on the envelope"
break;
case "NOK4" :
document.getElementById("id_button").innerHTML="Invalid format"
break;
default :
document.getElementById("id_button").innerHTML="Processing error"
}
}
}
function gologin() {
var sel
noise=new Date;
mail=escape(document.getElementById("id_login_mail").value)
pwd=escape(document.getElementById("id_login_pwd").value)
if (cook_uid!="") {
cook_uid=mail
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="uid="+mail+";expires="+year.toGMTString()+";secure"
}
if (cook_pwd!="") {
cook_pwd=pwd
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="pwd="+pwd+";expires="+year.toGMTString()+";secure"
}
old=document.getElementById("id_button").innerHTML
document.getElementById("id_button").innerHTML="One moment please ...."
xmlhttp2.open("POST","login.php",false);
info="id="+session+"&mail="+escape(mail)+"&pwd="+escape(pwd)+"&ip="+ip;
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
if (result.substring(0,2)!="OK") {
retry+=1
if (retry>4) {location="index.php";}
document.getElementById("id_toon_content").innerHTML="
Maximum 4 retries allowed"
toon("",300,"Invalid "+retry)
document.getElementById("id_button").innerHTML=old
} else {
etemplates=""
a=result.split("|")
bridge=false;
if (a[1]=="1") {bridge=true;}
acc_quot=a[2];acc_exp=a[3];short_msg=a[4];etemp=a[5].split(",");
for (i=1;i Now we will verify that you are the adressee of '+document.getElementById('id_subscribe').value
tmp=tmp+' Go to your email program and wait for a verification email and follow the instructions.'
tmp=tmp+'Then return to this page.'
tmp=tmp+' Your request is beeing processed....'
ustat=3
menuclci(0)
} else if (result=="mailexist") {
ustat=2
menuclci(0)
toon("msg_already_exist",300,mail)
}
}
function subscribe_2() {
noise=new Date;
tmp=document.getElementById("id_subscribe_2").value
if (tmp.length!=64) {
retry=retry+1
if (retry>3) {
ustat=0
menuclci(0)
}
toon("msg_improper_code",300,tmp)
return
}
document.getElementById("id_button").innerHTML="One moment please ...."
xmlhttp2.open("POST","subscribe2.php",false);
info="id="+session+"&id2="+tmp
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
if (result=="connection") {
ustat=2
menuclci(0)
toon("",300,"Connection error")
} else if (result=="inserterror") {
ustat=2
menuclci(0)
toon("",300,"Subscription error")
} else if (result.indexOf("subscribed")==0) {
a=result.split("|");
pwd=a[1]
cook_uid=mail
pwdremind_acco=mail
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="uid="+mail+";expires="+year.toGMTString()+";secure"
cook_pwd=pwd
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="pwd="+pwd+";expires="+year.toGMTString()+";secure"
bridge=true;ustat=4
menuclci(0)
}
}
function chngpwd() {
noise=new Date;
tmp=document.getElementById("id_pwd").value
if (tmp.length<6) {
toon("msg_improper_pwd",300,"invalid password")
return
}
document.getElementById("id_button").innerHTML=""
xmlhttp2.open("POST","subscribe3.php",false);
info="id="+session+"&id2="+tmp
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
if (result=="OK") {
cook_uid=pwdremind_acco
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="uid="+cook_uid+";expires="+year.toGMTString()+";secure"
cook_pwd=tmp
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="pwd="+pwd+";expires="+year.toGMTString()+";secure"
ustat=0
menuclci(0)
} else {
menuclci(0)
toon("",300,"invalid password")
}
}
function pwdremind() {
noise=new Date;
tmp="Forgotten passwords cannot be recovered. Eucrypt can generate a password-renewal request"
tmp+=" unless 'allow password-reminder' is switched off for this account. Enter the email-address below :"
tmp+=" "
tmp+=" '
tmp=tmp+'Take care because it appears as visible tekst. Press "save" when you are finished. Your order is processed and an invoice is send to your email-address. An error occurred while processing; Please try again or use the contact menu to contact us.'
document.getElementById("id_toon_content").innerHTML=tmp
toon("",400,"Error processing order")
}
}
function goformat(e) {
var deel
var komma=(1/2)+"0"
var heel=Math.floor(e)
komma=komma.substring(1,2)
if (e-heel==0) {
deel=komma+"00"
} else {
deel=e-heel+"00";
deel=deel.substring(1,4)
}
return heel+deel.substring(0,3)
}
function menuover(e) {if (menuitem!=e) {e.style.textDecoration="underline";menuitem=e} }
function menuout(e) {e.style.textDecoration="none";menuitem=null}
function menuclci(e) { menuclc(document.getElementById(preid+"_"+e)) }
function menuclc(e) {
noise=new Date;
try {
document.getElementById("id_toon").style.visibility="hidden"
ee=document.getElementById("id_"+i)
} catch (ex) {}
var a=document.getElementById(preid).innerHTML.split(";")
for (var i=0; i Eucrypt will open the envelope and present its contents to you securely.'
tmp+=' Please use the menu on your left to get acquainted with Eucrypt.'
tmp=tmp+' If you want to send or receive "eucrypted" documents with a particular email address you need to enter '
tmp=tmp+'that email-address below and we will send you a verification email.'
tmp=tmp+' Subscription and decryption services are free of charge.'
tmp+=" You can remove the key before the document is decrypted. The recipient will not be able to open the envelope after this action."
tmp+=" "
document.getElementById("id_toon_content").innerHTML=tmp
toon("",400,"Key removal")
}
function remove_key(id) {
w8clc("ibutton_removekey")
ee=document.getElementById("id_dialog2").innerHTML="Key removal"
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&f="+id.substring(4);
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
ee=document.getElementById("id_dialog2").innerHTML=result
sluit()
account_pending()
}
function shortmsg_save() {
document.getElementById("id_savemsgshrt").src="img/spacer.gif"
short_msg=document.getElementById("id_body").value
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&msg="+escape(short_msg)
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
document.getElementById("id_savemsgshrt").src="img/disk.jpg"
}
function account_log(){
document.getElementById("id_dialog2").innerHTML="One moment please ..."
window.open("req.php?id="+session)
}
function invoice_log(){
document.getElementById("id_dialog2").innerHTML="One moment please ..."
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&i=0";
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
document.getElementById("id_dialog2").innerHTML=result
}
function getinvoice(e) {
window.open("req.php?id="+session+"&i="+e.id)
}
function eu_1() {
var ok=true
var msg=""
if (document.getElementById("id_data")!=null) {
if (document.getElementById("id_data").value=="") {
ok=false
msg="No file indicated yet"
}
}
if (ok && document.getElementById("id_subject")!=null) {
if (document.getElementById("id_subject").value=="") {
ok=false
msg="No subject"
}
}
if (ok && document.getElementById("id_body2")!=null) {
if (document.getElementById("id_body2").value=="") {
ok=false
msg="No message to encrypt"
}
}
if (ok) {
tmp="One moment please ...."
document.getElementById("id_button").innerHTML=tmp
document.getElementById("id_crypt").submit()
} else {
tmp=button2+" An envelope template serves as an image to transport and present encrypted information to a recipient."
tmp+=" A copy is send to your EMail address."
}
function toon(e,l,t) {
w8clc(t);noise=new Date;
ee=document.getElementById("id_toon")
ee.style.overflowY="scroll"
ee.style.border=bordertxt
ee.style.top="0px"
ee.style.height=null
ee.style.left=(availw-l)+"px"
ee.style.width=l+"px"
if (e!="") {
ex=document.getElementById(e)
document.getElementById("id_toon_content").innerHTML=ex.innerHTML
}
document.getElementById("id_toon_titel").innerHTML=t
ee.style.visibility="visible"
ee.style.zIndex=4
if (ee.clientHeight>(availh-20)) {ee.style.height=availh-20}
}
function sluit() {document.getElementById("id_toon").style.visibility="hidden"}
function anim(x) {
noise=new Date;
if (x==1) {
document.getElementById("id_anim_b").innerHTML=""
} else {
document.getElementById("id_anim_b").innerHTML=""
}
document.getElementById("id_anim_a").innerHTML=""
}
"
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&p=1&v="+escape(tmp);
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
if (result=="OK") {
sluit()
tmp='One moment please ... Mailbridge code
Now go to your Email program and retrieve your security code. Paste (CTRL-V) the code below '
tmp=tmp+'and press the finish-button to complete your request.
'
tmp=tmp+'
'
document.getElementById("id_dialog1").innerHTML=tmp
} else {
tmp=" '
tmp=tmp+'Enter the code you receive : '
tmp=tmp+' '
tmp=tmp+'
"
document.getElementById("id_toon_content").innerHTML=tmp
}
}
function pwdremind3() {
noise=new Date;
tmp=document.getElementById("id_subscribe_2").value
if (tmp.length!=64) {
retry=retry+1
if (retry>3) {
ustat=0
menuclci(0)
}
toon("msg_improper_code",300,tmp)
return
}
document.getElementById("id_button").innerHTML="One moment please ...."
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&p=2&v="+tmp
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
if (result.indexOf("subscribed")==0) {
a=result.split("|");
pwd=a[1];
tmp='Request is not possible for this account Password reset
'
tmp=tmp+'
'
document.getElementById("id_dialog1").innerHTML=tmp
cook_uid=pwdremind_acco
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="uid="+cook_uid+";expires="+year.toGMTString()+";secure"
cook_pwd=tmp
year=new Date();year.setFullYear(year.getFullYear()+1);
document.cookie="pwd="+pwd+";expires="+year.toGMTString()+";secure"
} else {
document.getElementById("id_button").innerHTML="Invalid code"
}
}
function poll() {
if (busy || (session=="-1")) {return;}
busy=true;
what="id="+session+"&c="+cursor
xmlhttp.open("GET","poll.php?"+what,true);
xmlhttp.onreadystatechange=function() {if (xmlhttp.readyState==4) {
convtxt=xmlhttp.responseText;
status=0
try {parse(convtxt)} catch (errr) {status=1} ;
busy=false;
}}
xmlhttp.send(null);
}
function mon() {
if (ustat>=5) {
NU=new Date()
if ((noise-NU)>600000) {TO=true;ustat=0;menuclci(0);toon("",300,"Timeout; Logged off")}
}
if (!block) {
clearTimeout(mon_timeout);
poll();
mon_timeout = setTimeout("mon()", rrate)
}
}
function parse(txt) {
a=txt.split('#')
b=a[0].split("|")
if (b[0]=='session') {
session=b[1]
} else if (b[0]=="invalidsession") {
document.getElementById("id_5").innerHTML="invalid session:"+session
} else if (b[0]=="subscribeerror") {
document.getElementById("id_5").innerHTML="invalid code:"+session
} else if (b[0]=="mailexist") {
document.getElementById("id_5").innerHTML="Mailaddress already exists"
ustat=2
menuclci(0)
} else if (b[0]=="subscribed") {
ustat=4
menuclci(0)
} else {
try {
if (cursor=='undefined') {
cursor=0
session=0
document.getElementById("id_5").innerHTML="New session request"
} else {
if (a[1]=="log") {
b=a[2].split(";");
tmp="Use the one provided or enter your own. '
tmp=tmp+''
tmp=tmp+' '
tmp=tmp+' "
for (i=0;i
"
document.getElementById("id_dialog2").innerHTML=tmp
} else if ((a[1]=="block")||(a[1]=="black")) {
block=true
ustat=0
menuclci(0)
document.getElementById("id_3").innerHTML=""
} else {
if (a[1]!=null) {
document.getElementById("id_5").innerHTML=a[1]
}
}
}
} catch(e) {}
}
cursor=a[0]
}
for (i=0;i<10;i++) {HH[i]=0;WW[i]=0;LL[i]=0;TT[i]=0}
HH[1]=173;HH[6]=311;
WW[1]=750;WW[6]=397;
WW[5]=WW[1]-WW[6]
HH[5]=HH[6]
menus="captionl;caption;captionr;menu;content;other;logo;logo2".split(";")
firstTime=true
bordertxt="#dddddd 1px solid"
SIZEtimeout=setTimeout("",10);
function delaySIZE(SIZEdelay) {
clearTimeout(SIZEtimeout)
SIZEtimeout = setTimeout("sizen()", SIZEdelay);
}
function f_filterResults(n_win, n_docel, n_body) {
var n_result = n_win ? n_win : 0;
if (n_docel && (!n_result || (n_result > n_docel)))
n_result = n_docel;
return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}
function f_clientWidth() {
return f_filterResults (
window.innerWidth ? window.innerWidth : 0,
document.documentElement ? document.documentElement.clientWidth : 0,
document.body ? document.body.clientWidth : 0
);
}
function f_clientHeight() {
return f_filterResults (
window.innerHeight ? window.innerHeight : 0,
document.documentElement ? document.documentElement.clientHeight : 0,
document.body ? document.body.clientHeight : 0
);
}
function sizen() {
if (NOsize) {return;}
noise=new Date;
var e=document.getElementById("menu1")
var ee=document.body.childNodes
if (FF) {
availw=document.body.clientWidth
availh=document.body.clientHeight
} else {
availh=f_clientHeight()
availw=f_clientWidth()
}
if (availw<1024) {
WW[0]=0;
WW[2]=0;
document.body.style.overflow="scroll"
} else {
WW[0]=Math.floor((availw-WW[1])/2);
WW[2]=availw-WW[1]-WW[0];
//if (WW[2]<30) {WW[7]=WW[0]} else {WW[7]=30}
document.body.style.overflow="hidden"
}
HH[5]=availh-HH[1]-HH[6];
if (HH[5]<50) {HH[5]=50}
HH[4]=HH[5]+HH[6]
HH[3]=HH[4];
HH[0]=availh;HH[2]=availh;
x=0;y=0;extra=0
for (var i=0;i"+c[0]+" : "+c[1]+" "
}
}
tmp+="
"
document.getElementById("id_3").innerHTML=txt
}
function shop(e) {
if (e==1) {
tmp=" "
for (var i=0; i![]()

"+b[1]+" "
}
txt+="Pending order
You have a pending order; Please complete it first."
document.getElementById("id_toon_content").innerHTML=tmp
menuclci(6)
invoice_log()
toon("",400,"Pending order")
} else {
pcode=document.getElementById("id_pcode").value
if (pcode!="") {
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&prc="+pcode
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
tmp=xmlhttp2.responseText;
account_detail();
document.getElementById("id_toon_content").innerHTML=tmp
toon("",400,"Promotion code")
} else {
tmp=document.getElementById("id_pp").innerHTML.replace(/__/g,"idpp_")
document.getElementById("id_4").innerHTML=tmp
document.getElementById("id_4").scrollTop=0
calc()
}
}
}
function enternkey(e,ee) {
noise=new Date;
var key = window.event ? e.keyCode : e.which;
var keychar = String.fromCharCode(key)
reg = /\d/;
setTimeout("calc()", 500);
if (keychar.charCodeAt(0)==8){
return true
} else if (reg.test(keychar)) {
if (ee.id=="id_bestelv_n1") {
if (keychar!="0" && keychar!="1") return false
}
return true
} else {
return false
}
}
function calc(){
noise=new Date;
vatt=0;if (vat=="") {vatt=19} else if (vat.substring(0,2)=="NL") {vatt=19}
e1=document.getElementById("idpp_pp_1");u1=e1.parentNode.nextSibling.nextSibling
e2=document.getElementById("idpp_pp_2");u2=e2.parentNode.nextSibling.nextSibling
if ((e1.value>0 || bridge) && e2.value>0) {toon("help_dubble",300,"warning")}
if (1*e1.value>12) {e1.value=12}
if (1*e2.value>10) {e2.value=10}
if (1*e1.value==0) {up1=15} else {up1=15.5-0.5*(e1.value)}
if (1*e2.value==0) {up2=15} else {up2=15.5-0.5*(e2.value)}
u1.innerHTML="€ "+goformat(up1)
u2.innerHTML="€ "+goformat(up2)
u1.nextSibling.innerHTML="€ "+goformat(e1.value*up1)
u2.nextSibling.innerHTML="€ "+goformat(e2.value*up2)
x=e1.value*up1+e2.value*up2
o=e1.value+"_"+e2.value+"_"+goformat(up1)+"_"+goformat(up2)+"_"
o+=goformat(e1.value*up1)+"_"+goformat(e2.value*up2)+"_"+goformat(x)+"_"+goformat(vatt)
o+="_"+goformat(x*(vatt/100))+"_"+goformat(x*(1+vatt/100))
document.getElementById("idpp_subtotal").innerHTML="€ "+goformat(x)
document.getElementById("idpp_pbtw").innerHTML=goformat(vatt)+" %"
document.getElementById("idpp_vat").innerHTML="€ "+goformat(x*(vatt/100))
document.getElementById("idpp_total").innerHTML="€ "+goformat(x*(1+vatt/100))
//document.getElementById("idpp_amount").value="€ "+goformat(x*(1+vatt/100))
orderpm="id="+session+"&o="+o
}
function order() {
noise=new Date;
xmlhttp2.open("POST","pp.php",false);
info=orderpm
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
if (result=="OK") {
tmp='Order
'
tmp+='
'
tmp+='Please add the invoice to your administration and respect the expiration date.'
document.getElementById("id_toon_content").innerHTML=tmp
menuclci(6)
invoice_log();
toon("",400,"Order processed")
} else {
tmp='Error
Eucrypt assists in the safe transfer of information to a specific recipient. '
tmp+='This is achieved without passwords or certificates and the Eucrypt webserver has no access to your data.'
tmp+=' '
}
ee.innerHTML=tmp
}
if (ustat==1) {
tmp=''
tmp+=' New users who received an encrypted envelope should follow these steps :'
tmp+='
"
ee.innerHTML=tmp
if (cook_uid!="") {document.getElementById("id_login_mail").value=cook_uid}
if (cook_pwd!="") {document.getElementById("id_login_pwd").value=cook_pwd}
ustat=0
}
if (ustat==2) {
tmp=' "
tmp+="Login
"
tmp+="EMail address : "
if (cook_uid!="") {tmp+=_off} else {tmp+=_on}
tmp+=" "
tmp+="Password : "
if (cook_pwd!="") {tmp+=_off} else {tmp+=_on}
tmp+=" "
tmp+=""
tmp+="Forgotten ? "
tmp+=" New to Eucrypt
";
tmp=tmp+'
"
tmp+=" '
tmp=tmp+' '
tmp=tmp+''
ee.innerHTML=tmp
ustat=0
}
if (ustat==3) {
tmp='Mailbridge code
Now go to your Email program and retrieve your security code. Paste (CTRL-V) the code below '
tmp=tmp+'and press the finish-button to complete your subscription.
'
tmp=tmp+' '
tmp=tmp+'Enter the code you receive : '
tmp=tmp+' '
tmp=tmp+''+mail+' Subscribed
You successfully subscribed to Eucrypt !'
tmp=tmp+'
'
ee.innerHTML=tmp
}
if (ustat==5) {
tmp='Your first key is a password. Use the one provided or enter your own. '
tmp=tmp+'Take care because it appears as visible tekst. Press "save" when you are finished. '
tmp=tmp+''
tmp=tmp+' '
tmp=tmp+' '
tmp+='
'
ee.innerHTML=tmp
}
if (ustat==6) {//target="crypt_result_iframe"
tmp=' '
tmp+=''+mail+'
'
tmp+='Eucrypt provides five functions. '
tmp+='We have preprared an animation to demonstrate transport and the encryption/decryption process : '
tmp+='
.'
tmp+=' '
tmp+=''
tmp+=' '
tmp+=''
tmp+=' '
tmp+=''
tmp+=' '
tmp+=''
tmp+=' '
tmp+=''
tmp+=' '
tmp+='
'
tmp+=' '
tmp+=' 
"+msg
document.getElementById("id_button").innerHTML=tmp
}
}
function eu_2() {
tmp="IMPORTANT ! SAVE THE RESULTS FIRST. The envelope is decrypted only once."
tmp+=" "
if (def==1) {
tmp+=""
tmp+="
"
tmp+=""
} else {
tmp+=" "
}
tmp+=" "
document.getElementById("id_toon_content").innerHTML=tmp
toon("",400,"Change template")
}
function template_add() { //target="crypt_result_iframe"
tmp="
"
tmp+='"
document.getElementById("id_toon_content").innerHTML=tmp
toon("",400,"Add template")
}
function template_rename(def) {
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&e=2&spec="+escape(document.getElementById("id_templd_name").value)+"&envelop="+template_current+"&default="+def;
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
etemplates=xmlhttp2.responseText;
sluit();account_templates();
}
function template_submit() {
document.getElementById("id_templateform").submit()
}
function template_delete() {
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&e=4&envelop="+template_current
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
etemplates=xmlhttp2.responseText;
sluit();account_templates();
}
function toon2(e) {
ee=document.getElementById("id_toon2").innerHTML=document.getElementById(e).innerHTML
}
function sendit(e) {
xmlhttp2.open("POST","pend.php",false);
info="id="+session+"&m="+escape(document.getElementById("id_v_1").value)+"&mm="+escape(document.getElementById("id_v_2").value);
xmlhttp2.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
xmlhttp2.send(info);
result=xmlhttp2.responseText;
document.getElementById("id_4").innerHTML="Message is send