﻿var VitesseOuverture=20,Incrementation=30,leLien="sell",NomDiv="DivCachee",PropRight=550,PropBottom=700,ouverture;function Enregistre(){window.document.getElementById(leLien).onclick=ouvrir}function ouvrir(){window.document.getElementById(leLien).onclick="";window.document.getElementById(NomDiv).style.clip="rect(auto, 0px, 0px, auto)";window.document.getElementById(NomDiv).style.display="block";ouverture=window.setInterval("aggrandissement()",VitesseOuverture)}function aggrandissement(){clipProp=window.document.getElementById(NomDiv).style.clip.split(" ");pixel="px";if(!document.all)pixel+=",";theRight=new Number(clipProp[1].replace(new RegExp(pixel),""));theBottom=new Number(clipProp[2].replace(new RegExp(pixel),""));if(theBottom<PropBottom)theBottom=theBottom+Incrementation;if(theRight<PropRight)theRight=theRight+Incrementation;else{window.clearInterval(ouverture);window.document.getElementById(leLien).onclick=cacheBloc}window.document.getElementById(NomDiv).style.clip="rect(auto, "+theRight+"px, "+theBottom+"px, auto)"}function cacheBloc(){window.document.getElementById(NomDiv).style.display="none";window.document.getElementById(leLien).onclick=ouvrir}var VitesseOuverture2=20,Incrementation2=30,leLien2="CallMe",NomDiv2="DivCachee2",PropRight2=650,PropBottom2=700,ouverture2;function Enregistre2(){window.document.getElementById(leLien2).onclick=ouvrir2}function ouvrir2(){window.document.getElementById(leLien2).onclick="";window.document.getElementById(NomDiv2).style.clip="rect(auto, 0px, 0px, auto)";window.document.getElementById(NomDiv2).style.display="block";ouverture2=window.setInterval("aggrandissement2()",VitesseOuverture2)}function aggrandissement2(){clipProp=window.document.getElementById(NomDiv2).style.clip.split(" ");pixel="px";if(!document.all)pixel+=",";theRight=new Number(clipProp[1].replace(new RegExp(pixel),""));theBottom=new Number(clipProp[2].replace(new RegExp(pixel),""));if(theBottom<PropBottom2)theBottom=theBottom+Incrementation2;if(theRight<PropRight2)theRight=theRight+Incrementation2;else{window.clearInterval(ouverture2);window.document.getElementById(leLien2).onclick=cacheBloc2}window.document.getElementById(NomDiv2).style.clip="rect(auto, "+theRight+"px, "+theBottom+"px, auto)"}function cacheBloc2(){window.document.getElementById(NomDiv2).style.display="none";window.document.getElementById(leLien2).onclick=ouvrir2}window.onload=function(){Enregistre();Enregistre2()};function DisplayWindowStatus(a){window.status=a}IE4=document.all?1:0;NS4=document.layers?1:0;FX4=document.getElementById?1:0;VERSION4=IE4|NS4|FX4?1:0;if(!VERSION4)event=null;function helpGetOffset(a,c){var b=a["offset"+c];if(c=="Top")b+=a.offsetHeight;while((a=a.offsetParent)!=null){b+=a["offset"+c];if(a.border&&a.border!=0)b++}return b}function helpDown(){if(IE4)document.all.helpBox.style.visibility="hidden";else if(NS4)document.helpBox.visibility="hidden";if(FX4)document.getElementById("helpBox").style.visibility="hidden"}function helpOver(c,e){if(!VERSION4)return;var b,a;if(IE4){b=c.srcElement;a=document.all.helpBox}else if(NS4){b=c.target;a=document.helpBox}else if(FX4){b=c.target;a=document.getElementById("helpBox")}if(!b.onmouseout)b.onmouseout=helpDown;var d='<DIV CLASS="helpBoxDIV">'+e+"</DIV>";if(IE4){a.innerHTML=d;a.style.top=helpGetOffset(b,"Top")+2;a.style.left=helpGetOffset(b,"Left")+30;a.style.visibility="visible"}else if(NS4){a.document.write(d);a.document.close();a.document.bgColor="yellow";a.top=b.y+20;a.left=b.x;a.visibility="show"}else if(FX4){a.innerHTML=d;a.style.top=helpGetOffset(b,"Top")+2;a.style.left=helpGetOffset(b,"Left")+30;a.style.visibility="visible"}}function on(texte){(eval(texte)).style.visibility="visible"}function off(texte){(eval(texte)).style.visibility="hidden"}function ChangeMessage(b,a){if(document.getElementById)document.getElementById(b).innerHTML=a}function largeur_fenetre(){if(window.innerWidth)return window.innerWidth;else if(document.body&&document.body.offsetWidth)return document.body.offsetWidth;else return 0}function hauteur_fenetre(){if(window.innerHeight)return window.innerWidth;else if(document.body&&document.body.offsetHeight)return document.body.offsetHeight;else return 0}function xpos_logo(){if(window.innerWidth){xpos=(window.innerWidth-720)/2;document.getElementById("LogoSpan").style.left=xpos;return xpos}else if(document.body&&document.body.offsetWidth){xpos=(document.body.offsetWidth-720)/2;LogoSpan.style.left=xpos;return xpos}else return 0}function reconstruction(){if(largeur!=largeur_fenetre()||hauteur!=hauteur_fenetre())window.history.go(0)}function Affiche_Cache(nObjet,Txt){var ns4=document.layers,ie4=document.all,ns6=document.getElementById&&!document.all;if(ie4){(eval(nObjet)).innerHTML=Txt;(eval(nObjet)).style.visibility=(eval(nObjet)).style.visibility=="visible"?"hidden":"visible"}else if(ns4){document.eval(nObjet).visibility=document.eval(nObjet).visibility=="show"?"hidden":"show";document.eval(nObjet).innerHTML=Txt}else if(ns6){var divns6=document.getElementsByTagName("div");divns6[nObjet].style.visibility=divns6[nObjet].style.visibility=="visible"?"hidden":"visible";divns6[nObjet].innerHTML=Txt}}function open_popup(a){i1=new Image;i1.src=a;html='<HTML><HEAD><TITLE>Image</TITLE><link rel="stylesheet" href="/common/inc/common_stylesheet.css"></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 bgcolor=white><table><tr><td><CENTER><a class=link6 href="javascript:window.close()"><IMG SRC="'+a+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+80)"></a></CENTER></td></tr><tr><td align=center><!--<a class=link6 href="javascript:window.close()">Close</a>--><p></td></tr></table></BODY></HTML>';popupImage=window.open("","_blank","screenX=0,left=0, screenY=0, top=0, toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1");popupImage.document.open();popupImage.document.write(html);popupImage.document.close()}function open_popup1(a){i1=new Image;i1.src=a;html='<HTML><HEAD><TITLE>Image</TITLE><link rel="stylesheet" href="/common/inc/common_stylesheet.css"></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 bgcolor=white><table><tr><td><CENTER><IMG SRC="'+a+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+80)"></CENTER></td></tr><tr><td align=center><a class=link6 href="javascript:window.close()">Close</a><p></td></tr></table></BODY></HTML>';popupImage=window.open("","_blank","screenX=0,left=0, screenY=0, top=0, toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1");popupImage.document.open();popupImage.document.write(html);popupImage.document.close()}function open_popup2(a){i1=new Image;i1.src=a;html='<HTML><HEAD><TITLE>Image</TITLE><link rel="stylesheet" href="/common/inc/common_stylesheet.css"></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 bgcolor=white><table><tr><td><CENTER><IMG SRC="'+a+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+80)"></CENTER></td></tr><tr><td align=center><a class=link6 href="javascript:window.close()">Close</a><p></td></tr></table></BODY></HTML>';popupImage=window.open("","_blank","screenX=0,left=0, screenY=0, top=0, toolbar=0,location=0,directories=0,menuBar=0,scrollbars=1,resizable=1");popupImage.document.open();popupImage.document.write(html);popupImage.document.close()}function afficheMaxi(c,b){var a=new Image;a.src=c;var d=a.height,e=a.width;html="<HTML><HEAD><TITLE>"+b+'</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 bgcolor=black><table border=0 cellspacing=0 cellpadding=0><tr><td align=center valign=middle><a class=link6 href="javascript:window.close()"><IMG SRC="'+c+'" BORDER=0 NAME=imageTest alt="'+b+'" onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+40)"></a></td></tr></table></BODY></HTML>';popupImage=window.open("","_blank","screenX=0,left=0, screenY=0, top=0, toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1");popupImage.document.open();popupImage.document.write(html);popupImage.document.close()}function popup_new(e,b,a,c){var f=(screen.height-a)/2,d=(screen.width-b)/2;fen=window.open(e,"_blank","top="+f+",left="+d+",width="+b+",height="+a+","+c)}function submit_formulaire(){setTimeout("document.formulaire.submit()",1e3)}function OpenPopup(a){if(a.ListeUrl.selectedIndex!=0)window.open(a.ListeUrl.options[a.ListeUrl.selectedIndex].value,"fenetre","top=0,left=0")}function ImprimerPage(){printIt()}function printIt(){if(document.all){printText=contenu.innerHTML;popup_resultat=window.open("","_print","width=800,height=400, scrollbars=yes, resizable=yes");popup_resultat.document.open();popup_resultat.document.writeln('<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><link rel="stylesheet" href="/common/css/style_ft.css"></HEAD><BODY BGCOLOR=#FFFFFF>');popup_resultat.document.writeln(printText);popup_resultat.document.writeln("</body></html>");popup_resultat.document.close();popup_resultat.print()}if(document.layers)if(document.URL.indexOf("/html/")==-1)window.print();else window.print()}function subform(a){a.submit();setTimeout("",5e3)}function preload(){var a=new load("/img/bt_fu_off.gif","/img/bt_fu_on.gif","/img/bt_ft_off.gif","/img/bt_ft_on.gif","/img/bt_eb_off.gif","/img/bt_eb_on.gif","/img/bt_mo_off.gif","/img/bt_mo_on.gif","/img/accueil_ft_out.gif","/img/accueil_ft_over.gif","/img/accueil_tms_out.gif","/img/accueil_tms_over.gif","/img/accueil_ci_out.gif","/img/accueil_ci_over.gif","/img/accueil_ci_bullet_out.gif")}function MM_swapImgRestore(){var a,b,c=document.MM_sr;for(a=0;c&&a<c.length&&(b=c[a])&&b.oSrc;a++)b.src=b.oSrc}function MM_findObj(c,a){var e,b,d;if(!a)a=document;if((e=c.indexOf("?"))>0&&parent.frames.length){a=parent.frames[c.substring(e+1)].document;c=c.substring(0,e)}if(!(d=a[c])&&a.all)d=a.all[c];for(b=0;!d&&b<a.forms.length;b++)d=a.forms[b][c];for(b=0;!d&&a.layers&&b<a.layers.length;b++)d=MM_findObj(c,a.layers[b].document);return d}function MM_swapImage(){var b,d=0,a,c=MM_swapImage.arguments;document.MM_sr=[];for(b=0;b<c.length-2;b+=3)if((a=MM_findObj(c[b]))!=null){document.MM_sr[d++]=a;if(!a.oSrc)a.oSrc=a.src;a.src=c[b+2]}}function MM_findObj(c,a){var e,b,d;if(!a)a=document;if((e=c.indexOf("?"))>0&&parent.frames.length){a=parent.frames[c.substring(e+1)].document;c=c.substring(0,e)}if(!(d=a[c])&&a.all)d=a.all[c];for(b=0;!d&&b<a.forms.length;b++)d=a.forms[b][c];for(b=0;!d&&a.layers&&b<a.layers.length;b++)d=MM_findObj(c,a.layers[b].document);return d}function MM_showHideLayers(){var c,e,a,b,d=MM_showHideLayers.arguments;for(c=0;c<d.length-2;c+=3)if((b=MM_findObj(d[c]))!=null){a=d[c+2];if(b.style){b=b.style;a=a=="show"?"visible":(a="hide")?"hidden":a}b.visibility=a}}function popup(a){fen=window.open(a,"poppage","toolbars=no,scrollbars=no,location=no,statusbar=no,menubars=no,directories=no,resizable=no,width=400,height=450,screenX=200, screenY=100, left=200,top=100")}function popup_passwd(a){fen=window.open(a,"poppage","toolbars=no,scrollbars=no,location=no,statusbar=no,menubars=no,directories=no,resizable=no,width=250,height=200,screenX=300, screenY=200, left=300,top=200")}function open_window(c){var a=500,d=(screen.height-a)/2,b=450,e=(screen.width-b)/2;pop_up=window.open(c,"Popup_pub","status=no,scrollbars=no,resizable=no,location=no,directories=no,height="+a+",width="+b+",top="+d+",left="+e)}function VersionNavigateur(b,a){if(navigator.appVersion.substring(0,3)>=b&&navigator.appName=="Netscape"||navigator.appVersion.substring(0,3)>=a&&navigator.appName.substring(0,9)=="Microsoft")return true;else return false}var isIE4=false;function CheckBrowser(){if(navigator.appName=="Microsoft Internet Explorer"&&navigator.appVersion.charAt(0)>=4)isIE4=true}function mOvr(a,b){if(!a.contains(event.fromElement)){a.style.cursor="hand";a.bgColor=b}}function mOut(a,b){if(!a.contains(event.toElement)){a.style.cursor="default";a.bgColor=b}}function mClk(c,a,b){c.bgColor=a;document.location=b}function mOvrTop(a,b){if(!a.contains(event.fromElement)){a.style.cursor="hand";a.bgColor=b}}function mOutTop(a,b){if(!a.contains(event.toElement)){a.style.cursor="default";a.bgColor=b}}function textdefil(){document.form1.deftext.value=msg.substring(position,position+70);position++;if(position==xlong)position=0;setTimeout("textdefil()",100)}function k2000effet(){k2000aff="";for(k2000a=0;k2000a<k2000text.length;k2000a++){k2000lettre=k2000text.charAt(k2000a);if(k2000a==k2000pos||k2000a==k2000pos+k2000increment)k2000aff+="<FONT COLOR=#FE9E32>"+k2000lettre+"</FONT>";else k2000aff+=k2000lettre}document.getElementById("k2000").innerHTML=k2000aff;if(k2000pos==k2000text.length)k2000increment=-1;if(k2000pos==0&&k2000increment==-1)k2000increment=1;k2000pos=k2000pos+k2000increment;timer=setTimeout("k2000effet()",30)}function disp_k2000effet(a){if(document.getElementById&&document.all){document.write("<DIV ID=k2000>"+a+"</DIV>");k2000effet()}else document.write(a)}function Show_Stuff(b,a){element=document.getElementById(b);if(a=="show")element.style.display="block";if(a=="hide")element.style.display="none"}var NUM_CENTYEAR=30,BUL_TIMECOMPONENT=false,BUL_YEARSCROLL=true,calendars=[],RE_NUM=/^\-?\d+$/;function calendar1(a){this.gen_date=cal_gen_date1;this.gen_time=cal_gen_time1;this.gen_tsmp=cal_gen_tsmp1;this.prs_date=cal_prs_date1;this.prs_time=cal_prs_time1;this.prs_tsmp=cal_prs_tsmp1;this.popup=cal_popup1;if(!a)return cal_error("Error calling the calendar: no target control specified");if(a.value==null)return cal_error("Error calling the calendar: parameter specified is not valid target control");this.target=a;this.time_comp=BUL_TIMECOMPONENT;this.year_scroll=BUL_YEARSCROLL;this.id=calendars.length;calendars[this.id]=this}function cal_popup1(b){if(b)this.dt_current=this.prs_tsmp(b);else{this.dt_current=this.prs_tsmp(this.target.value);this.dt_selected=this.dt_current}if(!this.dt_current)return;var a=window.open("../../calendar.html?datetime="+this.dt_current.valueOf()+"&id="+this.id,"Calendar","width=200,height="+(this.time_comp?215:190)+",status=no,resizable=no,top=200,left=200,dependent=yes,alwaysRaised=yes");a.opener=window;a.focus()}function cal_gen_tsmp1(a){return this.gen_date(a)+" "+this.gen_time(a)}function cal_gen_date1(a){return (a.getDate()<10?"0":"")+a.getDate()+"-"+(a.getMonth()<9?"0":"")+(a.getMonth()+1)+"-"+a.getFullYear()}function cal_gen_time1(a){return (a.getHours()<10?"0":"")+a.getHours()+":"+(a.getMinutes()<10?"0":"")+a.getMinutes()+":"+(a.getSeconds()<10?"0":"")+a.getSeconds()}function cal_prs_tsmp1(a){if(!a)return new Date;if(RE_NUM.exec(a))return new Date(a);var b=a.split(" ");return this.prs_time(b[1],this.prs_date(b[0]))}function cal_prs_date1(c){var a=c.split("-");if(a.length!=3)return cal_error("Invalid date format: '"+c+"'.\nFormat accepted is dd-mm-yyyy.");if(!a[0])return cal_error("Invalid date format: '"+c+"'.\nNo day of month value can be found.");if(!RE_NUM.exec(a[0]))return cal_error("Invalid day of month value: '"+a[0]+"'.\nAllowed values are unsigned integers.");if(!a[1])return cal_error("Invalid date format: '"+c+"'.\nNo month value can be found.");if(!RE_NUM.exec(a[1]))return cal_error("Invalid month value: '"+a[1]+"'.\nAllowed values are unsigned integers.");if(!a[2])return cal_error("Invalid date format: '"+c+"'.\nNo year value can be found.");if(!RE_NUM.exec(a[2]))return cal_error("Invalid year value: '"+a[2]+"'.\nAllowed values are unsigned integers.");var b=new Date;b.setDate(1);if(a[1]<1||a[1]>12)return cal_error("Invalid month value: '"+a[1]+"'.\nAllowed range is 01-12.");b.setMonth(a[1]-1);if(a[2]<100)a[2]=Number(a[2])+(a[2]<NUM_CENTYEAR?2e3:1900);b.setFullYear(a[2]);var d=new Date(a[2],a[1],0);b.setDate(a[0]);if(b.getMonth()!=a[1]-1)return cal_error("Invalid day of month value: '"+a[0]+"'.\nAllowed range is 01-"+d.getDate()+".");return b}function cal_prs_time1(c,b){if(!b)return null;var a=String(c?c:"").split(":");if(!a[0])b.setHours(0);else if(RE_NUM.exec(a[0]))if(a[0]<24)b.setHours(a[0]);else return cal_error("Invalid hours value: '"+a[0]+"'.\nAllowed range is 00-23.");else return cal_error("Invalid hours value: '"+a[0]+"'.\nAllowed values are unsigned integers.");if(!a[1])b.setMinutes(0);else if(RE_NUM.exec(a[1]))if(a[1]<60)b.setMinutes(a[1]);else return cal_error("Invalid minutes value: '"+a[1]+"'.\nAllowed range is 00-59.");else return cal_error("Invalid minutes value: '"+a[1]+"'.\nAllowed values are unsigned integers.");if(!a[2])b.setSeconds(0);else if(RE_NUM.exec(a[2]))if(a[2]<60)b.setSeconds(a[2]);else return cal_error("Invalid seconds value: '"+a[2]+"'.\nAllowed range is 00-59.");else return cal_error("Invalid seconds value: '"+a[2]+"'.\nAllowed values are unsigned integers.");b.setMilliseconds(0);return b}function cal_error(a){alert(a);return null}