function addToFavorites(a){if(window.external){window.external.AddFavorite(a.getAttribute('href'),a.getAttribute('title'))}}function bookmarksite(a,b){if(document.all){window.external.AddFavorite(b,a)}else if(window.sidebar){window.sidebar.addPanel(a,b,"")}else{messageAlert('<br /><br />Désolé, votre navigateur ne prend pas en charge cette fonctionnalité !')}}function noScroll(a){var b=0;var c=0;var d=0;var e=0;if(document.getElementById){c=1;b=1}else{if(document.all){d=1;b=1}else{browserVersion=parseInt(navigator.appVersion);if((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)){e=1;b=1}}}if(e){return true}else{if(d){document.body.scroll="auto"}else{if(c){document.body.scroll="auto"}}}}function verifMail(a,b,c){theObject=eval("document."+a+"."+b+"");longueur=theObject.value.length;position=theObject.value.indexOf("@");left_str=theObject.value.substring(0,position);right_str=theObject.value.substring(position+1,longueur);left_len=left_str.length;right_len=right_str.length;right_longueur=right_str.length;right_position=right_str.lastIndexOf(".");l_right_str=right_str.substring(0,right_position);r_right_str=right_str.substring(right_position+1,right_longueur);l_right_len=l_right_str.length;r_right_len=r_right_str.length;var d=/[#|,\/'éèà`~&"{(\[\\ç^)\]=}¨^$£¤%ù*µ!§:;?<> ]/i;var e=/[#|,\/'éèà`~&"{(\[\\ç^)\]=}¨^$£¤%ù*µ!§:;?<> ]/g;if(d.test(theObject.value)==true){if(c){theObject.focus()};return false}if(e.test(theObject.value)==true){if(c){theObject.focus()};return false}if(theObject.value.indexOf("@")==-1){if(c){theObject.focus()}return false}if((left_len==0)||(right_len==0)){if(c){theObject.focus()}return false}if(right_str.indexOf(".")==-1){if(c){theObject.focus()}return false}if((r_right_len<2)||(r_right_len>4)){if(c){theObject.focus()}return false}if(l_right_len==0){if(c){theObject.focus()}return false}return true}function verifNewsMail(a,b){myAlert.temp=5;testMail=verifMail(a.name,b.name);if(b.value==""){b.focus();messageAlert('<br /><br />Vous devez saisir un email !',b.id);return false}if(testMail==false){b.focus();messageAlert('<br /><br />Le mail entré n\'est pas valide !',b.id);return false}return true}function verifLogin(a){login=(!a.login_p)?"login":a.login_p.name;pass=(!a.pass_p)?"pass":a.pass_p.name;testMail=verifMail(a.id,login);if(a.elements[login].value==""){a.elements[login].focus();messageAlert('<br /><br />Vous devez saisir un email !',a.elements[login].id);return false}if(testMail==false){a.elements[login].focus();messageAlert('<br /><br />Le mail entré n\'est pas valide !',a.elements[login].id);return false}if(a.elements[pass].value==""){a.elements[pass].focus();messageAlert('<br /><br />Vous devez saisir un mot de passe.',a.elements[pass].id);return false}return true}function trim(s){return s.replace(/^\s+|\s+$/g,"")}function isInteger(s){var n=trim(s);return n.length>0&&!(/[^0-9]/).test(n)}function isFloat(s){var n=trim(s);return n.length>0&&!(/[^0-9.]/).test(n)&&(/\.\d/).test(n)}function verifFormnews(a){testMail=verifMail(a.name,'mail_user');if(testMail==false){alert('Votre mail n\'est pas correct');a.mail_user.focus();return false}else{return true}}function verifFormSearch(a){if(trim(a.insearch.value).length<4){a.insearch.focus();messageAlert('<br /><br />Vous devez mettre au moins 4 caractères !!!<br /><br />Affiner la recherche en utilisant le signe +,<br />exemple : télévision+LCD','insearch');return false}return true}function divInfoClose(a){thediv=eval("document.getElementById('"+a+"')");thediv.style.display='none'}function popupcentree(a,b,c,d,e){var f=(screen.height-d)/2;var g=(screen.width-c)/2;var h=window.open(a,b,"top="+f+",left="+g+",width="+c+",height="+d+","+e)}function IsNumeric(a){var b="0123456789";var c="";for(i=0;i<a.length;i++){c=a.charAt(i);if(b.indexOf(c)==-1)return false}return true}function IsTel(a,b){if(b){var c=new RegExp(/^(\(?\+?0{0,2}(\.|-| ){0,1}\)?( )?[0-9]{0,3})(\.|-| ){0,1}(0?)(1|2|3|4|5|6|8|9)(\.|-| ){0,1}[0-9]{2}(\.|-| ){0,1}[0-9]{2}(\.|-| ){0,1}[0-9]{2}(\.|-| ){0,1}[0-9]{2}$/gi)}else{var c=new RegExp(/^(01|02|03|04|05|06|08|09)(\.|-| ){0,1}[0-9]{2}(\.|-| ){0,1}[0-9]{2}(\.|-| ){0,1}[0-9]{2}(\.|-| ){0,1}[0-9]{2}$/gi)}return c.test(a)}function IsDate(b){if(b=="")return false;var e=new RegExp("^[0-9]{2}\/[0-9]{2}\/[0-9]{4}$");if(!e.test(b))return false;var j=parseInt(b.split("/")[0],10);var m=parseInt(b.split("/")[1],10);var a=parseInt(b.split("/")[2],10);var c=(a%4==0&&a%100!=0||a%400==0)?29:28;var d=new Array(31,c,31,30,31,30,31,31,30,31,30,31);return(m>=1&&m<=12&&j>=1&&j<=d[m-1])}function IsName(a){var b=/^[A-Za-z]+([\-\'\s]?[A-Za-z]+)*$/;return b.test(a)}function IsEmail(a){var b=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,8})+$/;return b.test(a)}function IsSized(a,b,c){return((b>=0)?(a.length>=b):true)&&((c>=0)?(a.length<=c):true)}function IsPassWord(a){var b=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,8})+$/;return b.test(a)}function IsMoney(a){if(typeof(a)=='undefined'){return false}var b=/(?!^0*$)(?!^0*\.0*$)^\d{1,10}(\.\d{1,2})?$/;if(!b.test(a)){return false}return true}function ValInMinMax(a,b,c,d){if(d){if(!(IsNumeric(a))){return false}}if((!(IsNumeric(b)))||(!(IsNumeric(c)))){return false}if((typeof(b)!='undefined')||(typeof(c)!='undefined')){if((typeof(b)!='undefined')&&(typeof(c)!='undefined')){if((!isNaN(b))&&(!isNaN(c)))if(b>c)return false;if(a.length>c)return false;if(a.length<b)return false}else{if(typeof(b)!='undefined'){if(!isNaN(b))if(a.length<b)return false}}}return true}function TextInMin(a,b){if((typeof(a)=='undefined')||(typeof(b)=='undefined')){return false}if((!(a.length=max))){return false}return true}function TextInMinMax(a,b,c){if((typeof(a)=='undefined')||(typeof(b)=='undefined')||(typeof(c)=='undefined')){return false}if((!(a.length=c))){return false}return true}

// Alert DHTML version XHTML STRICT
function makeAlert(name){this.corectX=0;this.corectY=0;this.thetop=false;this.name=name;this.html="";this.thefocus="";this.temp=10;this.thediv=document.createElement("DIV");this.thediv.id=''+this.name;this.thediv.className="transinfo";this.thediv.style.visibility='hidden';this.iserted=false;this.tmpclose=null;return this;}
makeAlert.prototype.showA=function(){if(document.getElementById(''+this.name)==null){document.body.appendChild(this.thediv);}else{this.closeA();}if (window.innerHeight){offsety=window.pageYOffset;}else if(document.documentElement && document.documentElement.scrollTop){offsety=document.documentElement.scrollTop;}else if(document.body){offsety=document.body.scrollTop}this.thediv.innerHTML=this.html;this.divTop=((screen.height-(this.thediv.offsetHeight))/2)+this.corectY+offsety-140;this.divLeft=((screen.width-(this.thediv.offsetWidth))/2)+this.corectX;this.thediv.style.top= (this.thetop)?'0px':''+this.divTop+'px';this.thediv.style.left=''+this.divLeft+'px';this.thediv.style.visibility='visible';this.tmpclose = setTimeout(this.name+'.closeA()',this.temp*1000);hide_sel();}
makeAlert.prototype.closeA=function(){show_sel();this.thediv.style.visibility='hidden';clearTimeout(this.tmpclose);if(this.thefocus!=undefined && this.thefocus!=""){document.getElementById(this.thefocus).focus();}}
document.onkeypress=function(e){if(typeof(myAlert)!='undefined'){var ev=window.event;if(window.event){key=window.event.keyCode;}else{key=e.which;}if((key==13||key==32)&&(typeof(myAlert)!='undefined')){if(myAlert.thediv.style.visibility!='hidden'){myAlert.closeA();return false;}else{return true;}}}return true;}
myAlert=new makeAlert('myAlert');myAlert.temp=5;myAlert.corectX=0;myAlert.corectY=0;
function messageAlert(thetext,idFocus){myAlert.thefocus=idFocus;myAlert.html=''+thetext+'<br><br><br><a onclick="myAlert.closeA();" href="javascript:myAlert.closeA();">Fermer cette fen&ecirc;tre</a><br><br>';myAlert.showA();}
function hide_sel(){var s=document.getElementsByTagName('select');var len=s.length;for(i=0;i<len;i++){s[i].style.visibility='hidden';}}
function show_sel(){var s=document.getElementsByTagName('select');var len=s.length;for(i=0;i<len;i++){s[i].style.visibility='visible';}}

document.write("<style>");if(Browser.Engine.trident){document.write(".transinfo{filter:alpha(opacity=75);-moz-opacity:0.75;opacity: 0.75;}");document.write(".transinfoTNT{filter:alpha(opacity=95);-moz-opacity:0.95;opacity: 0.95;}");document.write(".transflash{filter:alpha(opacity=85);-moz-opacity:0.85;opacity: 0.85;}")}else{document.write(".transinfo{-moz-opacity:0.75;opacity: 0.75;}");document.write(".transflash{-moz-opacity:0.85;opacity: 0.85;}")}document.write("#alertbox-Box{padding-bottom:24px;background:url('../canape-cuir/alert/bg-box-bottom.png') bottom left no-repeat!important;background:url('../canape-cuir/alert/bg-box-bottom.gif') bottom left no-repeat;}");document.write("#alertbox-InBox{padding-top:15px;background:url('../canape-cuir/alert/bg-box-top.png') top left no-repeat!important;background:url('../canape-cuir/alert/bg-box-top.gif') top left no-repeat;}");document.write("#alertbox-BoxContent{background:url('../canape-cuir/alert/bg-box-body.png') top left repeat-y!important;background:url('../canape-cuir/alert/bg-box-body.gif') top left repeat-y;padding:0 20px;}");document.write("#newsletter DIV {padding-top:-2px}");document.write("#bien_etre br{margin:0px; padding:0px; padding-top:-5px}");document.write("#search1:nth-of-type(1){padding-top:7px}");document.write("</style>");