function crypt(str, d) {
	res = "";
	for(var i=0;i<str.length;i++)
		res+=String.fromCharCode(str.charCodeAt(i)+d);
	return res;
}


// Retourne la taille de l'objet envoyé en paramètre
function getSize2(element) {
	var elem=element, tagname="", w=0, h=0;

	while ((typeof(elem)=="object") && (typeof(elem.tagName)!="undefined")) {
		alert(elem.offsetWidth);

		w+=elem.offsetWidth;
		h+=elem.offsetHeight;
		tagname=elem.tagName.toUpperCase();

		if(tagname=="BODY")
			elem=0;

		if(typeof(elem)=="object")
			if (typeof(elem.offsetParent)=="object")
				elem=elem.offsetParent;

	}

	position = new Object();
	position.w = w;
	position.h = h;
	return position;
}
