 function Tohour(target)
{

	if (target.value.indexOf(":",0) == -1 && target.value.length != 0)
	{
nb = target.value.length;
tp = nb - 2;
tp1 = nb - 4;

minute = target.value.substr(tp,2);
heure = target.value.substr(tp1,2);

target.value = heure+":"+minute;
	}
}

 function Todate(target)
{

	if (target.value.indexOf("/",0) == -1)
	{
nb = target.value.length;
tp =0;
tp1 = nb - 6;
tp2 = nb - 4;

jour = target.value.substr(tp,2);
mois = target.value.substr(tp1,2);
annee = target.value.substr(tp2,4);

target.value = jour+"/"+mois+"/"+annee;
	}
}
function getAnchorPosition(anchorname){var useWindow=false;var coordinates=new Object();var x=0,y=0;var use_gebi=false, use_css=false, use_layers=false;if(document.getElementById){use_gebi=true;}else if(document.all){use_css=true;}else if(document.layers){use_layers=true;}if(use_gebi && document.all){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_gebi){var o=document.getElementById(anchorname);x=AnchorPosition_getPageOffsetLeft(o);y=AnchorPosition_getPageOffsetTop(o);}else if(use_css){x=AnchorPosition_getPageOffsetLeft(document.all[anchorname]);y=AnchorPosition_getPageOffsetTop(document.all[anchorname]);}else if(use_layers){var found=0;for(var i=0;i<document.anchors.length;i++){if(document.anchors[i].name==anchorname){found=1;break;}}if(found==0){coordinates.x=0;coordinates.y=0;return coordinates;}x=document.anchors[i].x;y=document.anchors[i].y;}else{coordinates.x=0;coordinates.y=0;return coordinates;}coordinates.x=x;coordinates.y=y;return coordinates;}
function getAnchorWindowPosition(anchorname){var coordinates=getAnchorPosition(anchorname);var x=0;var y=0;if(document.getElementById){if(isNaN(window.screenX)){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else{x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}}else if(document.all){x=coordinates.x-document.body.scrollLeft+window.screenLeft;y=coordinates.y-document.body.scrollTop+window.screenTop;}else if(document.layers){x=coordinates.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;y=coordinates.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;}coordinates.x=x;coordinates.y=y;return coordinates;}
function AnchorPosition_getPageOffsetLeft(el){var ol=el.offsetLeft;while((el=el.offsetParent) != null){ol += el.offsetLeft;}return ol;}
function AnchorPosition_getWindowOffsetLeft(el){return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;}
function AnchorPosition_getPageOffsetTop(el){var ot=el.offsetTop;while((el=el.offsetParent) != null){ot += el.offsetTop;}return ot;}
function AnchorPosition_getWindowOffsetTop(el){return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;}

/* SOURCE FILE: PopupWindow.js */
function PopupWindow_getXYPosition(anchorname){var coordinates;if(this.type == "WINDOW"){coordinates = getAnchorWindowPosition(anchorname);}else{coordinates = getAnchorPosition(anchorname);}this.x = coordinates.x;this.y = coordinates.y;}
function PopupWindow_setSize(width,height){this.width = width;this.height = height;}
function PopupWindow_populate(contents){this.contents = contents;this.populated = false;}
function PopupWindow_setUrl(url){this.url = url;}
function PopupWindow_setWindowProperties(props){this.windowProperties = props;}
function PopupWindow_refresh(){if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).innerHTML = this.contents;}else if(this.use_css){document.all[this.divName].innerHTML = this.contents;}else if(this.use_layers){var d = document.layers[this.divName];d.document.open();d.document.writeln(this.contents);d.document.close();}}else{if(this.popupWindow != null && !this.popupWindow.closed){if(this.url!=""){this.popupWindow.location.href=this.url;}else{this.popupWindow.document.open();this.popupWindow.document.writeln(this.contents);this.popupWindow.document.close();}this.popupWindow.focus();}}}
function PopupWindow_showPopup(anchorname){this.getXYPosition(anchorname);this.x += this.offsetX;this.y += this.offsetY;if(!this.populated &&(this.contents != "")){this.populated = true;this.refresh();}if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).style.left = this.x + "px";document.getElementById(this.divName).style.top = this.y;document.getElementById(this.divName).style.visibility = "visible";}else if(this.use_css){document.all[this.divName].style.left = this.x;document.all[this.divName].style.top = this.y;document.all[this.divName].style.visibility = "visible";}else if(this.use_layers){document.layers[this.divName].left = this.x;document.layers[this.divName].top = this.y;document.layers[this.divName].visibility = "visible";}}else{if(this.popupWindow == null || this.popupWindow.closed){if(this.x<0){this.x=0;}if(this.y<0){this.y=0;}if(screen && screen.availHeight){if((this.y + this.height) > screen.availHeight){this.y = screen.availHeight - this.height;}}if(screen && screen.availWidth){if((this.x + this.width) > screen.availWidth){this.x = screen.availWidth - this.width;}}var avoidAboutBlank = window.opera ||( document.layers && !navigator.mimeTypes['*']) || navigator.vendor == 'KDE' ||( document.childNodes && !document.all && !navigator.taintEnabled);this.popupWindow = window.open(avoidAboutBlank?"":"about:blank","window_"+anchorname,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"");}this.refresh();}}
function PopupWindow_hidePopup(){if(this.divName != null){if(this.use_gebi){document.getElementById(this.divName).style.visibility = "hidden";}else if(this.use_css){document.all[this.divName].style.visibility = "hidden";}else if(this.use_layers){document.layers[this.divName].visibility = "hidden";}}else{if(this.popupWindow && !this.popupWindow.closed){this.popupWindow.close();this.popupWindow = null;}}}
function PopupWindow_isClicked(e){if(this.divName != null){if(this.use_layers){var clickX = e.pageX;var clickY = e.pageY;var t = document.layers[this.divName];if((clickX > t.left) &&(clickX < t.left+t.clip.width) &&(clickY > t.top) &&(clickY < t.top+t.clip.height)){return true;}else{return false;}}else if(document.all){var t = window.event.srcElement;while(t.parentElement != null){if(t.id==this.divName){return true;}t = t.parentElement;}return false;}else if(this.use_gebi && e){var t = e.originalTarget;while(t.parentNode != null){if(t.id==this.divName){return true;}t = t.parentNode;}return false;}return false;}return false;}
function PopupWindow_hideIfNotClicked(e){if(this.autoHideEnabled && !this.isClicked(e)){this.hidePopup();}}
function PopupWindow_autoHide(){this.autoHideEnabled = true;}
function PopupWindow_hidePopupWindows(e){for(var i=0;i<popupWindowObjects.length;i++){if(popupWindowObjects[i] != null){var p = popupWindowObjects[i];p.hideIfNotClicked(e);}}}
function PopupWindow_attachListener(){if(document.layers){document.captureEvents(Event.MOUSEUP);}window.popupWindowOldEventListener = document.onmouseup;if(window.popupWindowOldEventListener != null){document.onmouseup = new Function("window.popupWindowOldEventListener();PopupWindow_hidePopupWindows();");}else{document.onmouseup = PopupWindow_hidePopupWindows;}}
function PopupWindow(){if(!window.popupWindowIndex){window.popupWindowIndex = 0;}if(!window.popupWindowObjects){window.popupWindowObjects = new Array();}if(!window.listenerAttached){window.listenerAttached = true;PopupWindow_attachListener();}this.index = popupWindowIndex++;popupWindowObjects[this.index] = this;this.divName = null;this.popupWindow = null;this.width=0;this.height=0;this.populated = false;this.visible = false;this.autoHideEnabled = false;this.contents = "";this.url="";this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";if(arguments.length>0){this.type="DIV";this.divName = arguments[0];}else{this.type="WINDOW";}this.use_gebi = false;this.use_css = false;this.use_layers = false;if(document.getElementById){this.use_gebi = true;}else if(document.all){this.use_css = true;}else if(document.layers){this.use_layers = true;}else{this.type = "WINDOW";}this.offsetX = 0;this.offsetY = 0;this.getXYPosition = PopupWindow_getXYPosition;this.populate = PopupWindow_populate;this.setUrl = PopupWindow_setUrl;this.setWindowProperties = PopupWindow_setWindowProperties;this.refresh = PopupWindow_refresh;this.showPopup = PopupWindow_showPopup;this.hidePopup = PopupWindow_hidePopup;this.setSize = PopupWindow_setSize;this.isClicked = PopupWindow_isClicked;this.autoHide = PopupWindow_autoHide;this.hideIfNotClicked = PopupWindow_hideIfNotClicked;}


/* SOURCE FILE: ColorPicker2.js */

ColorPicker_targetInput = null;
function ColorPicker_writeDiv(){document.writeln("<DIV ID=\"colorPickerDiv\" STYLE=\"position:absolute;visibility:hidden;\"> </DIV>");}
function ColorPicker_show(anchorname){this.showPopup(anchorname);}
function ColorPicker_pickColor(color,obj){obj.hidePopup();pickColor(color);}
function pickColor(color){if(ColorPicker_targetInput==null){alert("Target Input is null, which means you either didn't use the 'select' function or you have no defined your own 'pickColor' function to handle the picked color!");return;}ColorPicker_targetInput.value = color;}
function ColorPicker_select(inputobj,linkname){if(inputobj.type!="text" && inputobj.type!="hidden" && inputobj.type!="textarea"){alert("colorpicker.select: Input object passed is not a valid form input object");window.ColorPicker_targetInput=null;return;}window.ColorPicker_targetInput = inputobj;this.show(linkname);}
function ColorPicker_highlightColor(c){var thedoc =(arguments.length>1)?arguments[1]:window.document;var d = thedoc.getElementById("colorPickerSelectedColor");d.style.backgroundColor = c;d = thedoc.getElementById("colorPickerSelectedColorValue");d.innerHTML = c;}
function ColorPicker(){var windowMode = false;if(arguments.length==0){var divname = "colorPickerDiv";}else if(arguments[0] == "window"){var divname = '';windowMode = true;}else{var divname = arguments[0];}if(divname != ""){var cp = new PopupWindow(divname);}else{var cp = new PopupWindow();cp.setSize(225,250);}cp.currentValue = "#FFFFFF";cp.writeDiv = ColorPicker_writeDiv;cp.highlightColor = ColorPicker_highlightColor;cp.show = ColorPicker_show;cp.select = ColorPicker_select;var colors = new Array("#000000","#000033","#000066","#000099","#0000CC","#0000FF","#330000","#330033","#330066","#330099","#3300CC",
"#3300FF","#660000","#660033","#660066","#660099","#6600CC","#6600FF","#990000","#990033","#990066","#990099",
"#9900CC","#9900FF","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#FF0000","#FF0033","#FF0066",
"#FF0099","#FF00CC","#FF00FF","#003300","#003333","#003366","#003399","#0033CC","#0033FF","#333300","#333333",
"#333366","#333399","#3333CC","#3333FF","#663300","#663333","#663366","#663399","#6633CC","#6633FF","#993300",
"#993333","#993366","#993399","#9933CC","#9933FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF",
"#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#006600","#006633","#006666","#006699","#0066CC",
"#0066FF","#336600","#336633","#336666","#336699","#3366CC","#3366FF","#666600","#666633","#666666","#666699",
"#6666CC","#6666FF","#996600","#996633","#996666","#996699","#9966CC","#9966FF","#CC6600","#CC6633","#CC6666",
"#CC6699","#CC66CC","#CC66FF","#FF6600","#FF6633","#FF6666","#FF6699","#FF66CC","#FF66FF","#009900","#009933",
"#009966","#009999","#0099CC","#0099FF","#339900","#339933","#339966","#339999","#3399CC","#3399FF","#669900",
"#669933","#669966","#669999","#6699CC","#6699FF","#999900","#999933","#999966","#999999","#9999CC","#9999FF",
"#CC9900","#CC9933","#CC9966","#CC9999","#CC99CC","#CC99FF","#FF9900","#FF9933","#FF9966","#FF9999","#FF99CC",
"#FF99FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#33CC00","#33CC33","#33CC66","#33CC99",
"#33CCCC","#33CCFF","#66CC00","#66CC33","#66CC66","#66CC99","#66CCCC","#66CCFF","#99CC00","#99CC33","#99CC66",
"#99CC99","#99CCCC","#99CCFF","#CCCC00","#CCCC33","#CCCC66","#CCCC99","#CCCCCC","#CCCCFF","#FFCC00","#FFCC33",
"#FFCC66","#FFCC99","#FFCCCC","#FFCCFF","#00FF00","#00FF33","#00FF66","#00FF99","#00FFCC","#00FFFF","#33FF00",
"#33FF33","#33FF66","#33FF99","#33FFCC","#33FFFF","#66FF00","#66FF33","#66FF66","#66FF99","#66FFCC","#66FFFF",
"#99FF00","#99FF33","#99FF66","#99FF99","#99FFCC","#99FFFF","#CCFF00","#CCFF33","#CCFF66","#CCFF99","#CCFFCC",
"#CCFFFF","#FFFF00","#FFFF33","#FFFF66","#FFFF99","#FFFFCC","#FFFFFF");var total = colors.length;var width = 18;var cp_contents = "";var windowRef =(windowMode)?"window.opener.":"";if(windowMode){cp_contents += "<HTML><HEAD><TITLE>Select Color</TITLE></HEAD>";cp_contents += "<BODY MARGINWIDTH=0 MARGINHEIGHT=0 LEFTMARGIN=0 TOPMARGIN=0><CENTER>";}cp_contents += "<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=0>";var use_highlight =(document.getElementById || document.all)?true:false;for(var i=0;i<total;i++){if((i % width) == 0){cp_contents += "<TR>";}if(use_highlight){var mo = 'onMouseOver="'+windowRef+'ColorPicker_highlightColor(\''+colors[i]+'\',window.document)"';}else{mo = "";}cp_contents += '<TD BGCOLOR="'+colors[i]+'"><FONT SIZE="-3"><A HREF="#" onClick="'+windowRef+'ColorPicker_pickColor(\''+colors[i]+'\','+windowRef+'window.popupWindowObjects['+cp.index+']);return false;" '+mo+' STYLE="text-decoration:none;">&nbsp;&nbsp;&nbsp;</A></FONT></TD>';if( ((i+1)>=total) ||(((i+1) % width) == 0)){cp_contents += "</TR>";}}if(document.getElementById){var width1 = Math.floor(width/2);var width2 = width = width1;cp_contents += "<TR><TD COLSPAN='"+width1+"' BGCOLOR='#ffffff' ID='colorPickerSelectedColor'>&nbsp;</TD><TD COLSPAN='"+width2+"' ALIGN='CENTER' ID='colorPickerSelectedColorValue'>#FFFFFF</TD></TR>";}cp_contents += "</TABLE>";if(windowMode){cp_contents += "</CENTER></BODY></HTML>";}cp.populate(cp_contents+"\n");cp.offsetY = 25;cp.autoHide();return cp;}

function calendar(dh){this.Version="1.41d";this.fu=0;this.cm=0;this.ee=0;this.bi=new az(dh);this.ch=new Date();this.dq=this.ch.getFullYear();this.i=glbCalendars.length;this.cf=Array(43);this.aryMonths=Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");this.aryDays=Array("S","M","T","W","T","F","S","S");this.dc=['January','February','March','April','May','June','July','August','September','October','November','December'];this.dm=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];this.cr="Please select a future date";glbCalendars[glbCalendars.length]=this;this.y="caldiv_"+this.i;this.by=false;this.Div=null;this.ed=null;this.cw=false;this.eb=false;this.ck=0;this.cv=0;this.db={x:0,y:0,dy:0,dx:0};this.dl={x:0,y:0,dy:0,dx:0};this.dz={x:0,y:0,dy:0,dx:0};this.dg="";this.dk=false;var gj=(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);this.ge=gj?"title":"alt";this.gd=Array(3);this.fa="";this.bt=null;this.da=null;this.cu=null;this.bs=this.bi.c("FIELD")?eval(this.bi.c("FIELD")):null;this.dj=this.bi.c("FORMAT")?this.bi.c("FORMAT"):"0";this.cl=this.bi.c("DELIMITER")?this.bi.c("DELIMITER"):"/";this.x=false;switch(this.dj){case"1":this.dp="D"+this.cl+"M"+this.cl+"YYYY";break;case"2":this.dp="YYYY"+this.cl+"M"+this.cl+"D";break;default:this.dp="M"+this.cl+"D"+this.cl+"YYYY";};this.fn=this.bi.c("ZEROS")==false?this.bi.c("ZEROS"):true;this.fm=this.bi.c("MOUSEOVER")==true?this.bi.c("MOUSEOVER"):false;this.fp=this.bi.c("SHOWDAYS")==false?this.bi.c("SHOWDAYS"):true;this.fl=this.bi.c("DELAY")?this.bi.c("DELAY"):2000;this.bp=this.bi.c("BEGINONMONDAY")?1:0;this.dv=this.bi.c("ICONLEFT")?this.bi.c("ICONLEFT"):null;this.ea=this.bi.c("ICONTOP")?this.bi.c("ICONTOP"):null;this.br=this.bi.c("DIR")?this.bi.c("DIR"):"basic";this.bx=this.bi.c("MONTH")?this.bi.c("MONTH"):1;this.cb=this.bi.c("YEAR")?this.bi.c("YEAR"):1;this.ej=this.bi.c("SHADOW")==true?true:false;this.fk=this.bi.c("CLOSE")==false?false:true;this.co=this.bi.c("MOVEMODE")?this.bi.c("MOVEMODE"):0;this.de=this.bi.c("INVALID")?this.bi.c("INVALID"):0;this.du=this.bi.c("FUNCTION")?this.bi.c("FUNCTION"):null;this.fj=this.bi.c("TOOLTIP")?this.bi.c("TOOLTIP"):"Click here to visually select a date with DateClick...";this.ex=this.bi.c("STATIC")?this.bi.c("STATIC"):0;if(this.bi.c("MASK"))this.dp=this.bi.c("MASK");this.fi=this.fj;var bu;if(this.br){if(this.br.indexOf("/")>=0){bu=this.br.split("/");this.j=bu[bu.length-1];}else{this.j=this.br?this.br:"basic";};}else{this.j=this.br?this.br:"basic";};this.z=z;this.m=m;this.p=p;this.n=n;this.as=as;this.am=am;this.al=al;this.ak=ak;this.aq=aq;this.ap=ap;this.ar=ar;this.aw=aw;this.k=k;this.ae=ae;this.w=w;this.ao=ao;this.aj=aj;this.h=h;this.writeCalendar=writeCalendar;this.selectDate=selectDate;this.ad=ad;this.ag=ag;this.o=o;this.l=l;this.d=d;this.q=q;this.t=t;this.v=v;this.ab=ab;this.ax=ax;this.aa=aa;this.g=g;this.r=r;this.s=s;this.setDefDate=setDefDate;this.at=at;this.ac=ac;a=this;function bg(){};function at(cp){if(a.bs)a.bs.value=ac(cp);};function writeCalendar(){var ep,ce;ep=document.all?"onClick":"onMouseDown";var ew=(document.all&&!document.getElementById)?"width:20;":"";var fg=a.fm?"onMouseOver":ep,df;if(this.bi.c("SHADOW")){alert("SHADOW is only available in paid versions of DateClick.  This version may include code to track domains that use it illegally.");df="";}else df="";var ct=a.ea?"top:"+a.ea+"px;":"";ct+=a.dv?"left:"+a.dv+"px;":"";ct+=ct.length>0?"position: absolute;":"";a.h();if(a.ex<1){document.write("<img src='"+a.br+"/calendar.gif' border='0' align='top' style='"+ct+"' "+fg+"='glbCalendars["+a.i+"].setDefDate();glbCalendars["+a.i+"].z(event);if (window.event)window.event.cancelBubble=true;' title='"+a.fi+"' />");ce="display:none;";}else{if(this.bi.c("STATIC")){alert("STATIC is only available in paid versions of DateClick.  This version may include code to track domains that use it illegally.");ce="display:none;"};};document.write("<div id='"+a.y+"' ");document.write("onMouseOut='glbCalendars["+a.i+"].t();' ");document.write("style='position:absolute;"+df+ew+""+ce+"' class='"+a.j+"-cl-body'> ");document.write(a.d());document.write("</div>");if(a.cb){document.write("<div id='"+a.y+"_year' ");document.write("onMouseOut='glbCalendars["+a.i+"].t();' ");document.write("onMouseOver='glbCalendars["+a.i+"].ar(this);' ");document.write("style='position:absolute;display:none;background-color:white;'> ");document.write(a.l());document.write("</div>");};if(a.bx){document.write("<div id='"+a.y+"_month' ");document.write("onMouseOut='glbCalendars["+a.i+"].v();' ");document.write("onMouseOver='glbCalendars["+a.i+"].ar(this);' ");document.write("style='position:absolute;display:none;background-color:white;'> ");document.write(a.o());document.write("</div>");};document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+a.y+"_ghost'></IFRAME>\n");document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+a.y+"_ghost_mo'></IFRAME>\n");document.write("<IFRAME src=\"javascript:false;\" style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px;COLOR: #FFFFFF;BACKGROUND-COLOR: #FFFFFF;' frameBorder='0' scrolling='no' id='"+a.y+"_ghost_year'></IFRAME>\n");document.write("<IFRAME style='DISPLAY: none; LEFT: 0px; POSITION: absolute; TOP: 0px' frameBorder='0' scrolling='no' id='tk' src=''></IFRAME>\n");if(this.dg){if(confirm("The following options are not available in DateClick Standard Edition:\n"+this.dg+"\nTo obtain DateClick Professional or Developer, please "+"click 'OK' to be redirected straight to our website.")){document.location.href="http://www.primorissoftware.com/purchase.asp";};};};function be(){};function z(el){var cal,ed,cz,cp;el=ba(el);cz=a.q(el);av();if(cs)a.x=true;if(document.getElementById){cal=document.getElementById(a.y);if(a.x)ed=document.getElementById(a.y+"_ghost");}else if(document.all){cal=document.all[a.y];if(a.x)ed=document.all[a.y+"_ghost"];}else cal=document.layers[a.y];a.Div=cal;a.ed=ed;if(a.eb){if(a.x){a.g(ed,cal);ed.style.display="block";};return false;};a.ae();clearInterval(a.bt);for(var i=0;i<glbCalendars.length;i++){if(glbCalendars[i]==a)glbCalendars[i].by=true;else glbCalendars[i].by=false;if(!glbCalendars[i].by){glbCalendars[i].m();};};if(cal){cal.style.zIndex=++dd;cal.style.display="block";if(!a.ck){a.aa(cal,cz);};a.eb=true;a.db=f(cal);if(window.event){window.event.cancelBubble=true;window.event.returnValue=false;};};return false;};function am(el){var cal,bj,rgn,ed,cz=a.q(el);if(a.cw)return false;clearInterval(a.bt);if(document.getElementById){cal=document.getElementById(a.y);bj=document.getElementById(a.y+"_month");if(a.x)ed=document.getElementById(a.y+"_ghost_mo");}else if(document.all){cal=document.all[a.y];bj=document.all[a.y+"_month"];if(a.x)ed=document.all[a.y+"_ghost_mo"];}else{cal=document.layers[a.y];bj=document.layers[a.y+"_month"];};a.p();if(cal){bj.style.display="block";bj.style.zIndex=++dd;a.r(cal,bj);a.dl=f(bj);if(a.x){a.g(ed,bj);ed.style.display="block";};};};function as(el){var cal,bk,rgn,cz=a.q(el);if(a.cw)return false;clearInterval(a.bt);if(document.getElementById){cal=document.getElementById(a.y);bk=document.getElementById(a.y+"_year");if(a.x)ed=document.getElementById(a.y+"_ghost_year");}else if(document.all){cal=document.all[a.y];bk=document.all[a.y+"_year"];if(a.x)ed=document.all[a.y+"_ghost_year"];}else{cal=document.layers[a.y];bk=document.layers[a.y+"_year"];};a.n();if(cal){bk.style.display="block";a.s(cal,bk);bk.style.zIndex=++dd;a.dz=f(bk);if(a.x){a.g(ed,bk);ed.style.display="block";};};};function m(){var cal,ed;if(!a.eb)return false;if(document.getElementById){cal=document.getElementById(a.y).style;if(a.x)ed=document.getElementById(a.y+"_ghost").style;}else if(document.all){cal=document.all[a.y].style;if(a.x)ed=document.all[a.y+"_ghost"].style;}else{cal=document.layers[a.y];};if(cal){cal.display="none";if(a.x)ed.display="none";};if(a.cb)a.p();if(a.bx)a.n();a.eb=false;clearInterval(a.bt);};function n(){var bj,ed;if(document.getElementById){bj=document.getElementById(a.y+"_month");if(bj)bj=bj.style;if(a.x)ed=document.getElementById(a.y+"_ghost_mo").style;}else if(document.all){bj=document.all[a.y+"_month"];if(bj)bj=bj.style;if(a.x)ed=document.all[a.y+"_ghost_mo"].style;}else{bj=document.layers[a.y+"_month"];};if(bj){bj.display="none";a.dl={x:0,y:0,dy:0,dx:0};if(a.x)ed.display="none";};};function p(){var bk,ed;if(document.getElementById){bk=document.getElementById(a.y+"_year");if(bk)bk=bk.style;if(a.x)ed=document.getElementById(a.y+"_ghost_year").style;}else if(document.all){bk=document.all[a.y+"_year"];if(bk)bk=bk.style;if(a.x)ed=document.all[a.y+"_ghost_year"].style;}else{bk=document.layers[a.y+"_year"];};if(bk){bk.display="none";a.dz={x:0,y:0,dy:0,dx:0};if(a.x)ed.display="none";};};function bf(){};function ar(bm){clearInterval(a.bt);if(bm.className==a.j+"-cl-on-month")bm.className=a.j+"-cl-on-month-lit";else if(bm.className==a.j+"-cl-off-month")bm.className=a.j+"-cl-off-month-lit";else if(bm.className==a.j+"-cl-year")bm.className=a.j+"-cl-year-lit";};function aw(bm){if(bm.className==a.j+"-cl-on-month-lit")bm.className=a.j+"-cl-on-month";else if(bm.className==a.j+"-cl-off-month-lit")bm.className=a.j+"-cl-off-month";else if(bm.className==a.j+"-cl-year-lit")bm.className=a.j+"-cl-year";};function al(){a.ch.setMonth(++a.cm);h();k(a.y,d());};function aq(){a.dq+=10;k(a.y+"_year",l());};function ak(){a.ch.setMonth(--a.cm);h();k(a.y,d());};function ap(){a.dq-=10;k(a.y+"_year",l());};function selectDate(td){var ek=new Date(td.getAttribute(a.ge));if(a.de==1&&Date.ay(ek.toLocaleString())<Date.ay(a.ac(Date()))){alert(a.cr);}else if(a.de==2&&Date.ay(ek.toLocaleString())<=Date.ay(a.ac(Date()))){alert(a.cr);};a.fa=a.ac(ek);if(a.bs){if(a.bs)a.bs.value=a.ac(ek);};if(this.bi.c("FUNCTION"))alert("FUNCTION is only available in paid versions of DateClick.  This version may include code to track domains that use it illegally.");if(a.fk)a.m();};function ag(fo,gf){a.ch.setFullYear(fo);h();k(a.y,d());a.by=true;a.p();if(window.event)event.cancelBubble=true;else gf.stopPropagation();};function ad(fc,gf){a.ch.setMonth(fc);h();k(a.y,d());a.by=true;a.n();if(window.event)event.cancelBubble=true;else gf.stopPropagation();};function bc(){};function ac(cp){fh=['st','nd','rd','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','th','st','nd','rd','th','th','th','th','th','th','th','st'];var bw=a.dp,es='DMYHdhmst'.split(''),ft=new Array(),ev=0,ez,ey=/\[(\d+)\]/;var cx=new Date(cp),day=cx.getDay(),date=cx.getDate(),month=cx.getMonth(),year=cx.getFullYear().toString(),hours=cx.getHours(),minutes=cx.getMinutes(),seconds=cx.getSeconds(),bn=new Object();bn['D']=date;bn['d']=date+fh[date-1];bn['DD']=(date<10)?'0'+date:date;bn['DDD']=a.dm[day].substring(0,3);bn['DDDD']=a.dm[day];bn['M']=month+1;bn['MM']=(month+1<10)?'0'+(month+1):month+1;bn['MMM']=a.dc[month].substring(0,3);bn['MMMM']=a.dc[month];bn['Y']=(year.charAt(2)=='0')?year.charAt(3):year.substring(2,4);bn['YY']=year.substring(2,4);bn['YYYY']=year;for(var i=0;i<es.length;i++){ez=new RegExp('('+es[i]+'+)');while(ez.test(bw)){ft[ev]=RegExp.$1;bw=bw.replace(RegExp.$1,'['+ev+']');ev++;};}while(ey.test(bw)){bw=bw.replace(ey,bn[ft[RegExp.$1]]);};return bw;};function ae(){a.Div.onmousedown=a.w;if(isNaN(parseInt(a.Div.style.left)))a.Div.style.left="0px";if(isNaN(parseInt(a.Div.style.top)))a.Div.style.top="0px";a.Div.onDragStart=new Function();a.Div.onDragEnd=new Function();a.Div.onDrag=new Function();};function w(dt){dt=ba(dt);var y=parseInt(a.Div.style.top),x=parseInt(a.Div.style.left);a.n();a.p();a.Div.onDragStart(x,y);a.cw=true;if(a.co){a.ck=dt.clientX;a.cv=dt.clientY;a.dk=false;};document.onmousemove=a.ao;document.onmouseup=a.aj;return false;};function ao(dt){dt=ba(dt);var gp=dt.clientY,go=dt.clientX,y=parseInt(a.Div.style.top),x=parseInt(a.Div.style.left),gh,gi;gh=x+(go-a.ck);gi=y+(gp-a.cv);if(a.co>0){if(!a.dk){a.Div.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=60);";if(a.Div.style.cursor)a.Div.style.cursor="move";a.dk=true;};a.Div.style["left"]=gh+"px";a.Div.style["top"]=gi+"px";a.ck=go;a.cv=gp;if(a.ed)a.ed.style.display="none";};a.Div.onDrag(gh,gi);return false;};function aj(){document.onmousemove=null;document.onmouseup=null;a.Div.onDragEnd(parseInt(a.Div.style["left"]),parseInt(a.Div.style["top"]));if(a.co){a.Div.style.filter="";if(a.Div.style.cursor)a.Div.style.cursor="arrow";a.db=f(a.Div);if(a.ed){a.g(a.ed,a.Div);a.ed.style.display="block";};if(a.co>1){a.ck=0;a.cv=0;};};a.cw=false;};function h(){var cg,an=0,gg,lastOfMonth,fs=a.ch,i,gs=1;a.fu=fs.getDate();a.cm=fs.getMonth();a.ee=fs.getFullYear();cg=new Date(a.ee,a.cm,1);an-=cg.getDay()>0?cg.getDay():cg.getDay()+7;for(i=0;i<43;i++){a.cf[i]=new Date(cg.getFullYear(),cg.getMonth(),++an);};};function o(){var innerHTML="";innerHTML+="<table cellspacing=0 cellpadding=0 border=0>";innerHTML+="<tr>";for(var i=0;i<12;i++){if(i%6==0)innerHTML+="</tr><tr>";innerHTML+="<td class='"+a.j+"-cl-year' onMouseOver='glbCalendars["+a.i+"].ar(this);' onMouseOut='glbCalendars["+a.i+"].aw(this);' style='cursor: hand; cursor: pointer;' onClick='glbCalendars["+a.i+"].ad("+i+",event);'>";innerHTML+=a.aryMonths[i];innerHTML+="</td>";};innerHTML+="</tr>";innerHTML+="</table>";return innerHTML;};function l(){var innerHTML="";innerHTML+="<table cellspacing=0 cellpadding=0 border=0>";innerHTML+="<tr>";innerHTML+="<td class='"+a.j+"-cl-year' onMouseOver='glbCalendars["+a.i+"].ar(this);' onMouseOut='glbCalendars["+a.i+"].aw(this);' style='cursor: hand; cursor: pointer;' onMouseDown='glbCalendars["+a.i+"].aq();' align='center' valign='center'>";innerHTML+="<img src='"+a.br+"/up.gif' border='0' />";innerHTML+="</td>";innerHTML+="</tr>";for(var i=parseInt(a.dq);i>parseInt(a.dq)-10;i--){innerHTML+="<tr>";innerHTML+="<td class='"+a.j+"-cl-year' onMouseOver='glbCalendars["+a.i+"].ar(this);' onMouseOut='glbCalendars["+a.i+"].aw(this);' style='cursor: hand; cursor: pointer;' onClick='glbCalendars["+a.i+"].ag("+i+",event);'>";innerHTML+=i;innerHTML+="</td>";innerHTML+="</tr>";};innerHTML+="<tr>";innerHTML+="<td class='"+a.j+"-cl-year' onMouseOver='glbCalendars["+a.i+"].ar(this);' onMouseOut='glbCalendars["+a.i+"].aw(this);' style='cursor: hand; cursor: pointer;' onMouseDown='glbCalendars["+a.i+"].ap();' align='center' valign='center'>";innerHTML+="<img src='"+a.br+"/down.gif' border='0' />";innerHTML+="</td>";innerHTML+="</tr>";innerHTML+="</table>";return innerHTML;};function d(){var innerHTML="",bu,dw,ca="none",cj="none",en;innerHTML+="<table cellspacing=0 cellpadding=0 border=0 id='cal' class='"+a.j+"-cl-innertable'>";innerHTML+="<tr class='"+a.br+"-header-row'>";innerHTML+="<td align='left' class='"+a.j+"-cl-header' onMouseOver='glbCalendars["+a.i+"].ar(this);'>";innerHTML+="<img src='"+a.br+"/prev.gif' border='0' onClick='window.event.returnValue=false;return false;' onMouseDown='glbCalendars["+a.i+"].ak();return false;' style='cursor:hand;cursor:pointer;' />";innerHTML+="</td>";innerHTML+="<td align='center' class='"+a.j+"-cl-header' onMouseOver='glbCalendars["+a.i+"].ar(this);'>";if(a.bx==2)ca="onMouseOver";else if(a.bx==1)ca="onClick";innerHTML+="<span class='"+a.j+"-cl-header' "+ca+"='return glbCalendars["+a.i+"].am(event);' "+(ca=="none"?"style='cursor:default;'":"style='cursor:hand;cursor:pointer;text-decoration:underline;'")+">";innerHTML+=a.aryMonths[a.cm];innerHTML+="</span>&nbsp;";if(a.cb==2)cj="onMouseOver";else if(a.cb==1)cj="onClick";innerHTML+="<span class='"+a.j+"-cl-header' "+cj+"='return glbCalendars["+a.i+"].as(event);' "+(cj=="none"?"style='cursor:default;'":"style='cursor:hand;cursor:pointer;text-decoration:underline;'")+">";innerHTML+=a.ee;innerHTML+="</span>";innerHTML+="</td>";innerHTML+="<td align='right' class='"+a.j+"-cl-header' onMouseOver='glbCalendars["+a.i+"].ar(this);'>";innerHTML+="<img src='"+a.br+"/next.gif' border='0' onClick='window.event.returnValue=false;return false;' onMouseDown='glbCalendars["+a.i+"].al();return false;' style='cursor:hand;cursor:pointer;' />";innerHTML+="</td>";innerHTML+="</tr>";innerHTML+="<tr>";innerHTML+="<td colspan=4 style='background-color:white;'>";innerHTML+="<table cellspacing=0 cellpadding=0 border=0 class='"+a.j+"-cl-innertable'>";if(a.fp){innerHTML+="<tr class='"+a.j+"-cl-days'>";for(var x=0;x<7;x++){innerHTML+="<td class='"+a.j+"-cl-day' onMouseOver='glbCalendars["+a.i+"].ar(this);' onMouseOut='glbCalendars["+a.i+"].aw(this);'>";innerHTML+=a.aryDays[a.bp+x];innerHTML+="</td>";};innerHTML+="</tr>";};var cd;for(var i=1;i<42;){innerHTML+="<tr>";for(var gs=0;gs<7;++gs,i++){cd=a.bs?a.bs.value:null;en=ac(a.cf[i-1+a.bp]);dw=a.cf[i-1+a.bp].toGMTString();bu=a.cf[i-1+a.bp].getMonth()==a.cm?"cl-on-month":"cl-off-month";if(a.de==1&&Date.ay(a.cf[i-1+a.bp])<Date.ay(a.ac(Date()))){bu=" "+a.j+"-old";}else if(a.de==2&&Date.ay(a.cf[i-1+a.bp])<=Date.ay(a.ac(Date()))){bu=" "+a.j+"-old";}else if(new Date(a.dj=="1"?bd(cd):cd).toGMTString()==dw){bu=" "+a.j+"-tgt";};innerHTML+="<td class='"+a.j+"-"+bu+"' onMouseOver='glbCalendars["+a.i+"].ar(this);' onMouseOut='glbCalendars["+a.i+"].aw(this);' title='"+en+"' style='cursor: hand; cursor: pointer;' "+a.ge+"='"+dw+"' onClick='glbCalendars["+a.i+"].selectDate(this);'>";innerHTML+=a.cf[i-1+a.bp].getDate();innerHTML+="</td>";};innerHTML+="</tr>";};innerHTML+="</table>";innerHTML+="</td>";innerHTML+="</tr>";innerHTML+="</table>";return(innerHTML);};function k(ef,fx){if(document.getElementById){document.getElementById(ef).innerHTML=fx;}else if(document.all){document.all[ef].innerHTML=fx;}else if(document.layers){with(document.layers[ef].document){open();write(fx);close();};};return null;};function q(dt){var ff=0,fe=0;if(!dt)dt=window.event;if(dt){if(dt.pageX||dt.pageY){ff=dt.pageX+"px";fe=dt.pageY+"px";}else if(dt.clientX||dt.clientY){ff=dt.clientX+document.body.scrollLeft+"px";fe=dt.clientY+document.body.scrollTop+"px";};};var retVal={x:ff,y:fe};return retVal;};function t(){if(a.bt){clearInterval(a.bt);a.bt=null;};a.bt=setInterval("glbCalendars["+a.i+"].m()",a.fl);};function v(){if(a.cu){clearInterval(a.cu);a.cu=null;};a.cu=setInterval("glbCalendars["+a.i+"].n()",4000);a.t();};function ab(){if(a.da){clearInterval(a.da);a.da=null;};a.da=setInterval("glbCalendars["+a.i+"].p()",4000);a.t();};function ax(ds){var retVal;if(ds<=9){retVal=a.fn?"0"+ds:ds;}else retVal=ds;return retVal;};function aa(cal,cn){var cy=f(cal),eh=au();if(cy["dy"]+cn["x"]>eh["x"])cal.style.left=cn["x"]-cy["dy"]+"px";else cal.style.left=cn["x"];if(cy["dx"]+cn["y"]>eh["y"])cal.style.top=cn["y"]-cy["dx"]+"px";else{cal.style.top=cn["y"];};if(cal.style.top<=0)cal.style.top=1;if(cal.style.left<=0)cal.style.left=1;};function g(dr,cal){var cy=f(cal);if(cy.x>0){dr.style.left=cy.x;dr.style.top=cy.y;dr.style.width=cy.dy;dr.style.height=cy.dx;dr.style.zIndex=0;dr.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';};};function r(cal,gb){var bz=f(cal),cy=f(gb),eh=au(),fr=bz["dy"]/2,fz=cy["dy"]/2,fq=bz["x"]-(fz-fr),et=bz["dx"]+bz["y"];gb.style.left=fq+"px";if(et+cy["dx"]>eh["y"])gb.style.top=et-cy["dx"];else gb.style.top=et+"px";};function s(cal,yr){var bz=f(cal),fd=f(yr),eh=au();if(fd["dy"]+bz["x"]+bz["dy"]>eh["x"])yr.style.left=eh["x"]-fd["dy"];else yr.style.left=bz["x"]+bz["dy"]+"px";if(fd["dx"]+bz["y"]>eh["y"])yr.style.top=bz["y"];else yr.style.top=bz["y"]+"px";};function setDefDate(){var cd;if(a.bs){cd=a.bs.value;if(a.bs.value!=""){cp=new Date(a.dj=="1"?bd(cd):cd.replace(/\./g,"-"));}else cp=new Date();}else cp=new Date();if(isNaN(cp))a.ch=new Date();else a.ch=cp;h();k(a.y,d());};var a;};function bh(){};function az(dh){this.eq=new Array();this.eu=new Array();this.ay=ay;this.c=c;ay(dh,this);function ay(fb,ei){var i,aryOptions,em,b;if(fb)aryOptions=fb.split(";");else return;var em,strValue,bb;for(i=0;i<aryOptions.length;i++){bb=aryOptions[i].indexOf(":");if(bb>0){em=aryOptions[i].substring(0,bb).toUpperCase();b=aryOptions[i].substring(bb+1,aryOptions[i].length);if(b.toLowerCase()=="true")b=true;else if(b.toLowerCase()=="false")b=false;ei.eu[i]=em;ei.eq[i]=b;};};};function c(fv){var i;for(i=0;i<this.eu.length;i++){if(this.eu[i]==fv){return this.eq[i];};};return null;};};function docClick(el){var fy=false,cc={x:0,y:0};if(window.event){cc.x=event.clientX+document.body.scrollLeft;cc.y=event.clientY+document.body.scrollTop;}else if(el){cc.x=el.pageX;cc.y=el.pageY;};for(var i=0;i<glbCalendars.length;i++){if(!af(cc,glbCalendars[i].db)&&!af(cc,glbCalendars[i].dl)&&!af(cc,glbCalendars[i].dz)){glbCalendars[i].m();}else fy=true;glbCalendars[i].by=false;};};function af(ga,db){if((ga.x>db.x&&ga.x<db.x+db.dy)&&(ga.y>db.y&&ga.y<db.y+db.dx));return true;return false;};function f(cq){var bv={x:0,y:0,dy:0,dx:0};if(cq!=null){bv.dx=cq.offsetHeight;bv.dy=cq.offsetWidth;while(cq){bv.x+=cq.offsetLeft;bv.y+=cq.offsetTop;cq=cq.offsetParent;};return(bv);};};function au(){var bv={x:0,y:0};if(document.body.clientWidth){bv.x+=document.body.clientWidth;bv.y+=document.body.clientHeight;}else if(window.innerWidth){bv.x+=window.innerWidth;bv.y+=window.innerHeight;};return(bv);};var bo="";if(typeof(document.media)=='string'&&document.getElementById&&document.all)bo="ie6";else if(document.getElementById&&document.all)bo="ie5";else if(document.getElementById&&!document.all)bo="ns6";else if(document.all)bo="ie4";else if(document.layers)bo="ns4";else bo="other";var dd=9999;switch(bo){case"ie5":case"ie6":if(document.attachEvent)document.attachEvent('onclick',docClick);break;case"ns6":break;case"ns4":break;};function ba(dt){if(typeof dt=='undefined')dt=window.event;if(dt){if(typeof dt.layerX=='undefined')dt.layerX=dt.offsetX;if(typeof dt.layerY=='undefined')dt.layerY=dt.offsetY;};return dt;};function av(){if(bo=="ie6"&&!window.opera){if(!document.getElementsByTagName("select"))cs=false;else cs=true;}else cs=false;};function bd(vl){var S=vl,D;S=S.replace(/(\d+).(\d+).(\d+)/,'$3/$2/$1');S=S.replace(/^(\d\d\/)/,'20$1');D=new Date(S);return D;};var glbCalendars=Array(),cs=Array();


function EcrireCookie(nom, valeur)
{
var argv=EcrireCookie.arguments;
var argc=EcrireCookie.arguments.length;
var expires=(argc > 2) ? argv[2] : null;
var path=(argc > 3) ? argv[3] : null;
var domain=(argc > 4) ? argv[4] : null;
var secure=(argc > 5) ? argv[5] : false;
document.cookie=nom+"="+escape(valeur)+
((expires==null) ? "" : ("; expires="+expires.toGMTString()))+
((path==null) ? "" : ("; path="+path))+
((domain==null) ? "" : ("; domain="+domain))+
((secure==true) ? "; secure" : "");
}

function getCookieVal(offset)
{
var endstr=document.cookie.indexOf (";", offset);
if (endstr==-1) endstr=document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function LireCookie(nom)
{
var arg=nom+"=";
var alen=arg.length;
var clen=document.cookie.length;
var i=0;
while (i<clen)
{
var j=i+alen;
if (document.cookie.substring(i, j)==arg) return getCookieVal(j);
i=document.cookie.indexOf(" ",i)+1;
if (i==0) break;

}
return null;
}

function EffaceCookie(nom)
{
date=new Date;
date.setFullYear(date.getFullYear()-1);
EcrireCookie(nom,null,date);
}


function OuvrirPopup(page,nom,option) {
       window.open(page,"nom",option);
    }
    
function list_mouse(tr,class_out,class_over)
{
	var thisclass = tr.className;
	if (thisclass == class_out)
	tr.className = class_over;
	else
	tr.className = class_out;

}

// AJAX AJOUT
function sendData(param, page,sendto)
	{

		if(document.all)
		{
			//Internet Explorer
			var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
		}//fin if
		else
		{
		    //Mozilla
			var XhrObj = new XMLHttpRequest();
		}//fin else

			
		XhrObj.open("POST", page);
		toto = document.getElementById(sendto);
		//Ok pour la page cible
		XhrObj.onreadystatechange = function()
		{
			if (XhrObj.readyState == 4 && XhrObj.status == 200)
			{
			toto.innerHTML = XhrObj.responseText ;
			}
		}

		XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
		XhrObj.send(param);
	}//fin fonction SendData
        
        
function send_mail()
{
var tg="<";					/*si vous voulez valider la syntaxe W3C*/
var nom="contact";
var arob="@";

/*car tous les navigateurs n'acceptent pas de l'Unicode (&#64; ou de l'hexa &#x040;...)*/

/*certains navigateurs (comme Mozilla) et robots le décodent lors du chargement*/

var address="";	/*début du nom du prestataire*/

var domain="cap-incentive.com";			/*fin du nom du prestataire*/

var texte="contact [at] cap-incentive.com";		/*texte à afficher - ne pas mettre l'adresse*/

var subject='Message%20depuis%20cap-incentive.com';

document.write(tg+"a hr"+"ef=mai"+"lto:"+nom);

document.write(arob+address+domain+'?subject=' + subject +">"+texte+tg+"/a>");
}
        