function MM_jumpMenu(targ,selObj,restore){ eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } function fenetreCent(url,nom,largeur,hauteur,options) { var haut=(screen.height-hauteur)/2; var Gauche=(screen.width-largeur)/2; window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options); } //PopUp function OuvrirPop(url,nom,haut,Gauche,largeur,hauteur,options) { window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options); } //--> function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i=maxlength) return false else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){ var pressedkey=/[a-zA-Z0-9\.\,\/]/ if (pressedkey.test(String.fromCharCode(e.which))) e.stopPropagation() } } function countlimit(maxlength,e,placeholder){ var theform=eval(placeholder) var lengthleft=maxlength-theform.value.length var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder) if (window.event||e.target&&e.target==eval(placeholder)){ if (lengthleft<0) theform.value=theform.value.substring(0,maxlength) placeholderobj.innerHTML=lengthleft } } function displaylimit(thename, theid, thelimit){ var theform=theid!=""? document.getElementById(theid) : thename var limit_text=''+thelimit+' caracteres Maximum.' if (document.all||ns6) document.write(limit_text) if (document.all){ eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)} eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)} } else if (ns6){ document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true); } } // FIN DECOMPTE TEXTE AREA // POPUP PROMO function showaction(url) { document.getElementById('page_action_iframe').contentWindow.document.body.innerHTML='Chargement en cours...'; document.getElementById("page_action").style.visibility = "visible"; // ici, l'iframe prend tout la place disponible, mais il est aussi pssible de definir une largeur et une hauteur finie document.getElementById("page_action_iframe").style.width = "900px"; document.getElementById("page_action_iframe").style.height = "580px"; frames['page_action_iframe'].location.href= url ; } function hideaction() { document.getElementById("page_action").style.visibility = "hidden"; document.getElementById("page_action_iframe").style.width = "1px"; document.getElementById("page_action_iframe").style.height = "1px"; }