function getArticle(url){ document.location.href = url // Displaylogin(url) } function GoP(str_page){ window.location.href=str_page; } function Displaylogin(url){ sizePopupBackground('MasqueLogin') getElById("Popup_background_screen2").style.visibility = 'visible'; getElById("bloc_login").style.visibility = 'visible'; floatNot("bloc_login"); getElById("FRM_LOGIN2").FRM_LINK.value = url centerPopup("bloc_login") } function sizePopupBackground(FunctionName,element){ //oPop = getElById("Popup") var height = document.documentElement.scrollHeight + "px"; var width = document.documentElement.scrollWidth + "px"; if(document.documentElement.scrollHeight==document.body.scrollHeight){ height = document.body.scrollHeight + "px"; } var DivStyle = "position:absolute;left:0px;top:0px;width:100%;height:100px;z-index:80;visibility:hidden;width:"+width+";height:"+height+";min-height:680px;position: absolute;top: 0px;left: 0px;margin: 0;padding: 0;text-align:center;" //background-color:#000000;filter:alpha(opacity=50);opacity:0.50; img = "" str ="" getElById("tempPop").innerHTML = str SizeWitdh() } function SizeWitdh(){ var width = document.documentElement.scrollWidth + "px"; getElById("Popup_background_screen2").style.width = width } function MasqueLogin(){ oDiv = getElById("Popup_background_screen2") oLog = getElById("bloc_login"); oDiv.style.visibility = 'hidden'; oLog.style.visibility = 'hidden'; clearInterval(intervalPop) } function centerPopup(element) { oDiv = getElById(element) var DivHeight = oDiv.offsetHeight var DivWidth = oDiv.offsetWidth var height = document.documentElement.clientHeight var width = document.documentElement.clientWidth var posY = (height/2)-(DivHeight/2) var posX = (width/2)-(DivWidth/2) oDiv.style.left=posX+"px"; window.onresize = function(){ SizeWitdh() centerPopup(element) } } var intervalPop = ""; var offsettop=250 var ns4=document.layers?1:0 var ie4=document.all?1:0 var ns6=document.getElementById&&!document.all?1:0 function ZoomImg(obj,w,h,creditImg){ oDivImg = getElById("img_src") oDivImg.innerHTML = "" if(creditImg!='') getElById("img_info").innerHTML = creditImg; centerPopup("bloc_img_pop"); getElById("bloc_img_pop").style.visibility = 'visible'; floatNot("bloc_img_pop"); sizePopupBackground('masqueImg'); getElById("Popup_background_screen2").style.visibility = 'visible'; } function masqueImg(){ getElById("Popup_background_screen2").style.visibility = 'hidden'; getElById("bloc_img_pop").style.visibility = 'hidden'; getElById("img_src").innerHTML=""; clearInterval(intervalPop) } function floatNot(idDiv){ var ns4=document.layers?1:0 var ie4=document.all?1:0 var ns6=document.getElementById&&!document.all?1:0 var oDivNot = getElById(idDiv); var top = 0; if (ie4) { oDivNot.style.top=(document.documentElement.scrollTop+offsettop)+'px' } else if (ns6){ oDivNot.style.top=window.pageYOffset+offsettop+'px' } else if (ns4) { oDivNot.style.top=eval(window.pageYOffset+offsettop)+'px' } intervalPop = setTimeout("floatNot('"+idDiv+"')",50); } function LoadContact(param){ getElById("FRM_CONTACT_SEL").FR_QUERY.value = param getElById("FRM_CONTACT_SEL").submit(); } function masquePassword(){ getElById("Popup_background_screen2").style.visibility = 'hidden'; getElById("bloc_password_oubli").style.visibility = 'hidden'; clearInterval(intervalPop) } var verifMail ="" function PasswordOubli(){ centerPopup("bloc_password_oubli"); getElById("bloc_password_oubli").style.visibility = 'visible'; floatNot("bloc_password_oubli"); sizePopupBackground('masquePassword'); getElById("Popup_background_screen2").style.visibility = 'visible'; } function DemandePass(imgVerif){ var fo = getElById("FRM_PASSWORD_OUBLI") var err='' if(!verif_email(fo.FRM_EMAIL.value)){ err+= "- Merci de saisir un e-mail valide !\n" } if(fo.img_control.value==''){ err+= '- Merci de saisir l\'image de contrôle !' }else{ if(imgVerif.toUpperCase()=='FALSE'){ err+= "- Image de contrôle invalide !\n" } } if(err!=''){ alert(err) reloadImgCap(); }else{ var param = "param=" + fo.FRM_EMAIL.value AjaxSendSimple('./password_oublie.asp',param,"SendMailPass"); } } function SendMailPass(xhr){ alert(xhr.responseText); getElById("FRM_PASSWORD_OUBLI").FRM_EMAIL.value = ""; getElById("FRM_PASSWORD_OUBLI").img_control.value = ""; masquePassword(); } function VerifImgCapDemandPass(){ var oValue = getElById("FRM_PASSWORD_OUBLI").img_control.value param = "param=" + oValue + "&crypto=67DACDAE7EE7D3B5AA79B69B8869B7A5947DF0E3C89B" AjaxSendSimple('./captcha_verif.asp',param,"loadResultVerifCap") } function loadResultVerifCap(xhr){ DemandePass(xhr.responseText) } function reloadImgCap(){ oFrame = getElById("frameCaptchaPass") var url = oFrame.src oFrame.src = url } function Search(){ if(getElById("KEYWORD_TXT").value=='Actualités, Thématiques, Agenda' || getElById("KEYWORD_TXT").value==''){ alert('Merci de saisir le texte recherché.'); }else{ var fo = getElById("search") fo.submit(); } return false; }