function dep(donnees, typen) {
var u = Decrypt2(donnees);
var fm = document.forms['formDep'];
if (fm) {
fm.method= (typen=='p')?'post':'get';
var myRegExp = /([^\?]+)\?([^#]+)#?(.*)/i;
var result = myRegExp.exec(u);
if (result && result.length==4) {
fm.action	= result[1] + (((result[3]).length>0)?'#'+result[3]:'');
var str = '';
var result2 = (result[2]).split('&');
for (var i=0; i<result2.length; i++) { var r = result2[i].split('='); if (r.length==2) str += '<input type="hidden" name="'+r[0]+'" value="'+r[1]+'">\n'; }
fm.innerHTML = str;
} else fm.action = u;
fm.submit(); } }
var PS_KEY=new String('sd453dsksdjl;ddqs564645qdsuiouicxv');
function RC4Initialize(strPwd, sbox, cle) {
var str = new String(strPwd);
var intLength = str.length;
for (var a=0; a<=255; a++) { cle[a] = str.charCodeAt((a % intLength)); sbox[a] = a;	}
var tempSwap, b = 0;
for (var a=0; a<=255; a++) { b=(b + sbox[a] + cle[a]) % 256; tempSwap=sbox[a]; sbox[a]=sbox[b]; sbox[b]=tempSwap; } }
function EnDeCrypt(plaintxt) {
var sbox= new Array(256);
var cle= new Array(256);
RC4Initialize(PS_KEY, sbox, cle);
var plain = new String(plaintxt);
var temp, k, cipherby, cipher='';
var i = 0, j = 0;
for (var a=0; a<plain.length; a++) { i=(i + 1) % 256; j=(j + sbox[i]) % 256; temp=sbox[i]; sbox[i]=sbox[j]; sbox[j]=temp; k=sbox[(sbox[i] + sbox[j]) % 256]; cipherby=plain.charCodeAt(a) ^ k; cipher=cipher + String.fromCharCode(cipherby); }
return(cipher); }
function getHex(entree) { var retour; var tabHexa=new String('0123456789ABCDEF'); entree=entree % 256; retour=''+tabHexa.charAt(Math.floor(entree/16)) + tabHexa.charAt(entree % 16); return retour; }
function getDec1Car(entree) { var retour, chr; retour = 0; chr = (new String(entree)).charAt(0).toUpperCase(); if (chr >= '0' && chr <= '9') retour = chr.charCodeAt(0) - '0'.charCodeAt(0); if (chr >= 'A' && chr <= 'F') retour = 10 + chr.charCodeAt(0) - 'A'.charCodeAt(0); return retour; }
function getDec(entree) { var retour, chr1, chr2; retour = 0; chr1 = (new String(entree)).charAt(0).toUpperCase(); chr2 = (new String(entree)).charAt(1).toUpperCase(); retour = getDec1Car(chr1)*16+getDec1Car(chr2); return retour; }
function BinToHex(entree) {	var chr, retour, strEntree; strEntree = new String(entree);	retour = ''; for (var cpt=0; cpt<strEntree.length; cpt++) { chr = getHex(strEntree.charCodeAt(cpt)); retour = retour + chr;	} return retour; }
function HexToBin(entree) { var val, retour, strEntree;	strEntree = new String(entree);	retour = ''; for (var cpt=0; cpt<strEntree.length; cpt=cpt+2) { val = getDec(strEntree.substr(cpt, 2)); retour = retour + String.fromCharCode(val); } return retour; }
function Encrypt2(entree) { return BinToHex(EnDeCrypt(entree)) }
function Decrypt2(entree) { return EnDeCrypt(HexToBin(entree)) }

