/** YUI Compressor 2.4.2 **/

function supprimerErreurs(){return true}window.onerror=supprimerErreurs;function DelEntry(supp,id,page){if(confirm("Etes-vous sur de vouloir effacer cette entrée ?")){document.location.href="?supp="+supp+"&id="+id+"&page="+page+"&valid=1"}else{document.location.href="?"}}function DelEntryHisto(supp,id,page){if(confirm("Attention : L'adhérent n'aura plus accès à son historique !\n\nSouhaitez-vous confirmer cette action ?")){document.location.href="?supp="+supp+"&id="+id+"&page="+page+"&valid=1"}else{document.location.href="?"}}function DelEntryQuizz(supp,id,page){if(confirm("Attention : L'adhérent n'aura plus accès à son quizz !\n\nSouhaitez-vous confirmer cette action ?")){document.location.href="?suppQuizz="+supp+"&id="+id+"&page="+page+"&valid=1"}else{document.location.href="?"}}function SuppEntry(supp,id){if(confirm("Etes-vous sur de vouloir effacer cette entrée de votre panier ?")){document.location.href="?supp="+supp+"&id="+id+"&valid=1"}else{document.location.href="?"}}function SuppEntryType(supp,id){if(confirm("Etes-vous sur de vouloir effacer cette entrée de votre panier ?")){document.location.href="?suppType="+supp+"&id="+id+"&valid=1"}else{document.location.href="?"}}function SuppEntryPopup(suppPopup,id,popup){if(confirm("Etes-vous sur de vouloir effacer cette entrée de votre panier ?")){document.location.href="?suppPopup="+suppPopup+"&id="+id+"&popup="+popup+"&valid=1"}else{document.location.href="?"}}function SuppEntryAll(supp){if(confirm("Etes-vous sur de vouloir effacer tout votre panier ?")){document.location.href="?suppAllMembre="+supp+"&valid=1"}else{document.location.href="?"}}function hidestatus(){window.status="";return true}if(document.layers){document.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT)}document.onmouseover=hidestatus;document.onmouseout=hidestatus;function stripHTML(oldString){var newString="";var inTag=false;for(var i=0;i<oldString.length;i++){if(oldString.charAt(i)=="<"){inTag=true}if(oldString.charAt(i)==">"){inTag=false;i++}if(!inTag){newString+=oldString.charAt(i)}}alert("Ce texte contient "+newString.length+" caractères")}function verifTel(champ){var chiffres=new RegExp("[0-9+ .-]");var verif;var points=0;for(x=0;x<champ.value.length;x++){verif=chiffres.test(champ.value.charAt(x));if(verif==false){champ.value=champ.value.substr(0,x)+champ.value.substr(x+1,champ.value.length-x+1);x--}}}function verif_nombre(champ){var chiffres=new RegExp("[0-9.]");var verif;var points=0;for(x=0;x<champ.value.length;x++){verif=chiffres.test(champ.value.charAt(x));if(champ.value.charAt(x)=="."){points++}if(points>1){verif=false;points=1}if(verif==false){champ.value=champ.value.substr(0,x)+champ.value.substr(x+1,champ.value.length-x+1);x--}}}function verifQty(champ){var chiffres=new RegExp("[0-9]");var verif;var points=0;for(x=0;x<champ.value.length;x++){verif=chiffres.test(champ.value.charAt(x));if(champ.value.charAt(x)=="."){points++}if(points>1){verif=false;points=1}if(verif==false){champ.value=champ.value.substr(0,x)+champ.value.substr(x+1,champ.value.length-x+1);x--}}}function verifAlpha(champ){var chiffres=new RegExp("[a-zA-Z0-9-]");var verif;var points=0;for(x=0;x<champ.value.length;x++){verif=chiffres.test(champ.value.charAt(x));if(champ.value.charAt(x)=="."){points++}if(points>1){verif=false;points=1}if(verif==false){champ.value=champ.value.substr(0,x)+champ.value.substr(x+1,champ.value.length-x+1);x--}}}function verifDuree(champ){var chiffres=new RegExp("[0-9;]");var verif;var points=0;for(x=0;x<champ.value.length;x++){verif=chiffres.test(champ.value.charAt(x));if(verif==false){champ.value=champ.value.substr(0,x)+champ.value.substr(x+1,champ.value.length-x+1);x--}}}function verifOrdre(champ){var chiffres=new RegExp("[0-9]");var verif;for(x=0;x<champ.value.length;x++){verif=chiffres.test(champ.value.charAt(x));if(verif==false){champ.value=champ.value.substr(0,x)+champ.value.substr(x+1,champ.value.length-x+1);x--}}}function sendIt(fileName){if(fileName!=""){location.href=fileName}}var isMozilla=(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1)?true:false;function storeCaret(selec,champtxt){if(isMozilla){oField=document.forms.form.elements[champtxt];objectValue=oField.value;deb=oField.selectionStart;fin=oField.selectionEnd;objectValueDeb=objectValue.substring(0,oField.selectionStart);objectValueFin=objectValue.substring(oField.selectionEnd,oField.textLength);objectSelected=objectValue.substring(oField.selectionStart,oField.selectionEnd);oField.value=objectValueDeb+"<"+selec+">"+objectSelected+"</"+selec+">"+objectValueFin;oField.selectionStart=strlen(objectValueDeb);oField.selectionEnd=strlen(objectValueDeb+"<"+selec+">"+objectSelected+"</"+selec+">");oField.focus();oField.setSelectionRange(objectValueDeb.length+selec.length+2,objectValueDeb.length+selec.length+2)}else{oField=document.forms.form.elements[champtxt];var str=document.selection.createRange().text;if(str.length>0){var sel=document.selection.createRange();sel.text="<"+selec+">"+str+"</"+selec+">";sel.collapse();sel.select()}else{oField.focus(oField.caretPos);oField.focus(oField.value.length);oField.caretPos=document.selection.createRange().duplicate();var bidon="%~%";var orig=oField.value;oField.caretPos.text=bidon;var i=oField.value.search(bidon);oField.value=orig.substr(0,i)+"<"+selec+"></"+selec+">"+orig.substr(i,oField.value.length);pos=i+2+selec.length;var r=oField.createTextRange();r.moveStart("character",pos);r.collapse();r.select()}}}function PopupPhoto(img,legende){titre="Image";w=open("","image","width=600,height=600,toolbar=no,scrollbars=no,resizable=no");w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>");w.document.write("<meta http-equiv='imagetoolbar' content='false'>");w.document.write("</HEAD>");w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12+4,document.images[0].height+114+4); window.focus();} else { setTimeout('check()',250) } }</SCRIPT>");w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=4 topMargin=4 marginwidth=4 marginheight=4><div align='center'><IMG src='"+img+"' border=0></div>");w.document.write("<p><div align='center'><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>"+legende+"</font></div></p>");w.document.write("");w.document.write("</BODY></HTML>");w.document.close()}function handleClick(id){var obj="";if(document.getElementById){obj=document.getElementById(id)}else{if(document.all){obj=document.all[id]}else{if(document.layers){obj=document.layers[id]}else{return 1}}}if(!obj){return 1}else{if(obj.style){obj.style.display=(obj.style.display!="none")?"none":""}else{obj.visibility="show"}}}function stretch(ThisElement,direction){var e=document.getElementById(ThisElement);if(direction=="increase"){e.setAttribute("rows",parseInt(e.getAttribute("rows"))+10)}else{e.setAttribute("rows",parseInt(e.getAttribute("rows"))-10)}}function textCounter(field,cntfield,maxlimit){if(field.value.length>maxlimit){field.value=field.value.substring(0,maxlimit)}else{cntfield.value=maxlimit-field.value.length}}var couleurChampErreur="#FFFAAE";var couleurChampOK="#E3E5E7";var borderChampErreur="1px solid #cc3300";var borderChampOK="1px solid #ffffff";function validateEmpty(fld){var error="";if(fld.value.length==0||fld.value=="false"){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="The required field has not been filled in.\n"}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}return error}function validateEmptyNews(fld){var error="";if(fld.value.length<2||fld.value=="false"||fld.value=="votre nom"||fld.value=="votre prénom"){error="The required field has not been filled in.\n"}else{}return error}function validateEmailNews(fld){var error="";var tfld=trim(fld.value);var emailFilter=/^[^@]+@[^@.]+\.[^@]*\w\w$/;var illegalChars=/[\(\)\<\>\,\;\:\\\"\[\]]/;if(fld.value==""){error="You didn't enter an email address.\n"}else{if(!emailFilter.test(tfld)){error="Please enter a valid email address.\n"}else{if(fld.value.match(illegalChars)){error="The email address contains illegal characters.\n"}else{}}}return error}function validateSelectlist(fld){var error="";if(fld.selectedIndex<1){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="The required field has not been filled in.\n"}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}return error}function validateCheckbox(fld){var error="";if(!fld.checked){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="The required field has not been filled in.\n"}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}return error}function validateUsername(fld){var error="";var illegalChars=/\W/;if(fld.value==""){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="You didn't enter a username.\n"}else{if((fld.value.length<4)||(fld.value.length>24)){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="The username is the wrong length.\n"}else{if(illegalChars.test(fld.value)){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="The username contains illegal characters.\n"}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}}}return error}function trim(s){return s.replace(/^\s+|\s+$/,"")}function validateEmail(fld){var error="";var tfld=trim(fld.value);var emailFilter=/^[^@]+@[^@.]+\.[^@]*\w\w$/;var illegalChars=/[\(\)\<\>\,\;\:\\\"\[\]]/;if(fld.value==""){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="You didn't enter an email address.\n"}else{if(!emailFilter.test(tfld)){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="Please enter a valid email address.\n"}else{if(fld.value.match(illegalChars)){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="The email address contains illegal characters.\n"}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}}}return error}function validatePassword(fld){var error="";var illegalChars=/[\W_]/;if(fld.value==""){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="You didn't enter a password.\n"}else{if((fld.value.length<7)||(fld.value.length>16)){error="The password is the wrong length.\n";fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur}else{if(illegalChars.test(fld.value)){error="The password contains illegal characters.\n";fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur}else{if(!((fld.value.search(/(a-z)+/))&&(fld.value.search(/(0-9)+/)))){error="The password must contain at least one numeral.\n";fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}}}}return error}function validatePwd(fld){var error="";var strongRegex=new RegExp("^(?=.{6,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$","g");var mediumRegex=new RegExp("^(?=.{6,})(((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$","g");var enoughRegex=new RegExp("(?=.{6,}).*","g");if(fld.value!=""&&fld.value.length!=0&&!mediumRegex.test(fld.value)){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="Please enter a strong password.\n"}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}return error}function validatePwdChange(fld){var error="";var strongRegex=new RegExp("^(?=.{6,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$","g");var mediumRegex=new RegExp("^(?=.{6,})(((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$","g");var enoughRegex=new RegExp("(?=.{6,}).*","g");if(!mediumRegex.test(fld.value)){fld.style.background=couleurChampErreur;fld.style.border=borderChampErreur;error="Please enter a strong password.\n"}else{fld.style.background=couleurChampOK;fld.style.border=borderChampOK}return error}function RewriteInput(title){var url=title.toLowerCase().replace(/^\s+|\s+$/g,"").replace(/[_|\s]+/g,"-").replace(/[^a-z0-9-]+/g,"").replace(/[-]+/g,"-").replace(/^-+|-+$/g,"")};
