var redBullet = "/_looks/liberation/images/red_bullet.gif"; var monLibeGris = "/_looks/liberation/images/mon_libe_ede9e6.gif"; var monLibeBlanc = "/_looks/liberation/images/mon_libe_FFFFFF.gif"; function getPATH_SCRIPT() { return "/_looks/liberation/scripts/"; } function getCssPATH(){ return "/_looks/liberation/css/liberation.css"; } function getDocTitlesURL() { return "/php/AjaxRequest/getDocTitles.php"; } function getPopupUrl() { return "/php/popup.php"; } function getDocsFromAuthorURL() { return "/php/AjaxRequest/getDocsSameAuthor.php"; } function getDocsFromThemeURL() { return "/php/AjaxRequest/getDocsSameTheme.php"; } function getDocsInFolderURL() { return "/php/AjaxRequest/getDocsInFolder.php"; } function getArticlesPlusCommentesURL() { return "/php/AjaxRequest/getArticlesPlusCommentes.php"; } function getArticlesPlusForwardesURL() { return "/php/AjaxRequest/getArticlesPlusForwardes.php"; } function getSendToFriendURL(){ return "/php/sendToFriend.php"; } function getWriteToAuthorURL(){ return "/php/writeToAuthor.php"; } function getSendReactionURL(){ return "/php/sendReaction.php"; } function getAFPURL(nomFichier){ return "/afp//"+nomFichier; } function getURLLibeFree(){ return "http://www.liberation.fr"; } function getHotSpotURL(keywords){ var fullDate = new Date(); var year=fullDate.getFullYear(); var month=fullDate.getMonth()+1; month= (month > 9) ? month: '0'+month; var date=fullDate.getDate(); var hour= (fullDate.getHours() > 9) ? fullDate.getHours(): '0'+fullDate.getHours(); var min= (fullDate.getMinutes() > 9) ? fullDate.getMinutes() : '0'+fullDate.getMinutes(); var dizaineMin = String(min).substring(0,1); return "/php/pages/pageHotspot.php?Keywords="+keywords+"&date="+year+month+date+hour+dizaineMin; } function getListeDepechesAFP(format){ //return "/php/AjaxRequest/getListeDepechesAFP.php?format="+format; return "/php/AjaxRequest/tunnelListeDepechesAFP.php?format="+format; } function getNbReaction(idDoc){ return "/php/AjaxRequest/getNbReaction.php?id="+idDoc; } function validRecherche(){ if (self.document.searchFormHeader.recherche.value=='') { alert("Vous n'avez pas saisi de recherche"); } else { var btn = document.getElementById("btnYahoo"); if (btn != null && btn.checked){ window.open(self.document.searchFormHeader.urlYahoo.value + self.document.searchFormHeader.recherche.value); }else{ self.document.searchFormHeader.submit(); } } } /* function validRecherche() { if (self.document.searchFormHeader.recherche.value=='') { alert("Vous n'avez pas saisi de recherche"); } else { if(self.document.searchFormHeader.select.selectedIndex == "0") { //self.document.searchFormHeader.recherche.value = self.document.searchFormHeader.recherche.value.replace(' ','+'); } self.document.searchFormHeader.submit(); } } */ function validRechercheArchives() { if (self.document.searchArchives.recherche.value=='') { alert("Vous n'avez pas saisi de recherche"); } else { self.document.searchArchives.submit(); } }