function addIcon() {
linksList = document.getElementsByTagName("a");
for (i=0; i< linksList.length;i++) {
if ($(linksList[i]).hasClass("links_popup") && linksList[i].innerHTML.indexOf("/dimg/picto_popup.gif")==-1) {
linksList[i].innerHTML=linksList[i].innerHTML+"<img src=\"/dimg/picto_popup.gif\" alt=\""+popupMsg+"\" />";
};
if ($(linksList[i]).hasClass("links_popup")||$(linksList[i]).hasClass("links_popup_simple")) { $(this).hasClass("protected")
if (linksList[i].onclick==null) {
linksList[i].onclick=StdPopup;
};
}
};
}
function addListener(element, event, listener, bubble) {
if (element.addEventListener) {
if (typeof(bubble) == "undefined") bubble = false;
element.addEventListener(event, listener, bubble);
}
else if (this.attachEvent) {
element.attachEvent("on" + event, listener);
}
}
function StdPopup() { 
var popup = window.open(this.href,'new','width=470,height=450,scrollbars=yes,resizable=yes'); 
popup.focus();
return false;
}
addListener(this, "load", function() { addIcon(); });
addListener(document, "load", function() { addIcon(); });