function openNPOD(action,id_article,region,id_npod_doc,id_comprod) { var openNPODOptions='resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=1000,height=600,left=10,top=10'; w=window.open('/npod/npod.php?PHPSESSID=&npodAction='+action+'&id_spip_article='+id_article+'&id_npod_doc='+id_npod_doc+'&id_spip_comprod='+id_comprod+'&ref_suffixe='+region,'PODHippo',openNPODOptions); w.focus(); } function openNPODDiffDoc(id_npod_doc) { w=window.open('/npod/npod.php?PHPSESSID=&npodAction=spipDiffDocument&id_npod_doc='+id_npod_doc,'PODHippoDiff','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=900,height=600,left=10,top=10'); w.focus(); } function openNPODDiscountDoc(id_npod_doc) { w=window.open('/npod/npod.php?PHPSESSID=&npodAction=spipDiscountDocument&id_npod_doc='+id_npod_doc,'PODHippoDiff','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=900,height=600,left=10,top=10'); w.focus(); } function openIMG(page) { window.open(page,'IMGHippo','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=900,height=700,left=10,top=10'); } function confirmAction(Msg) { if (window.confirm(Msg)) { return true; } else { return false; } } function chainHandler(obj, handlerName, handler) { obj[handlerName] = (function(existingFunction) { return function() { handler.apply(this, arguments); if (existingFunction) existingFunction.apply(this, arguments); }; })(handlerName in obj ? obj[handlerName] : null); };