var redBullet = "http://s.liberation.fr/_looks/liberation/images/red_bullet.gif";
var monLibeGris = "http://s.liberation.fr/_looks/liberation/images/mon_libe_ede9e6.gif";
var monLibeBlanc = "http://s.liberation.fr/_looks/liberation/images/mon_libe_FFFFFF.gif";
function getPATH_SCRIPT()
{
return "http://s.liberation.fr/_looks/liberation/scripts/";
}
function getCssPATH(){
return "http://s.liberation.fr/_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");
return false;
} else {
self.document.searchFormHeader.q.value=self.document.searchFormHeader.recherche.value;
var btn = document.getElementById("btnGoogle");
if (btn != null && btn.checked){
self.document.searchFormHeader.target = "_blank";
self.document.searchFormHeader.submit();
return false;
}else{
self.document.searchFormHeader.submit();
return true;
}
}
}
/*
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();
}
}