var script_common='common-c.js',common_stop=0;jsscriptslist=jsscriptslist.concat(new Array(script_common));myDebug.checkjsload(script_common);var y=myApp;y.cookietime=30;var x=GetCookie('mydebug');y.debug=(x=='false'?false:true);y.test='';x=GetCookie('memorizebirthdaybiorythm');y.AGE=(x?x:'18/05/2015');x=GetCookie('cfmi');y.cfmi=x;x=GetCookie('kcountry');y.kcountry=(x?x:'fr');y.klangdefault='fr';x=GetCookie('klang');y.klang=(x?x:myApp.klangdefault);x=GetCookie('klangdoc');y.klangdoc=(x&&x.length==2?x:myApp.klangdefault);x=GetCookie('numpage');y.numpage=(x?x:1);function alert_cut_message(message,len){try{myApp.line=26;var tagfct={'file':script_common,'fct':'alert_cut_message(message,len)'},stop=common_stop;if(!len)len=150,newmsg='';if(message.length>len){for(var i=0;i>=message.length+len;i++){newmsg+=message.substr(i,len)+'\n';i=i+len;};if(newmsg)message=newmsg;};return(message);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function form_footer_contact_validate(theform,tag,arr,chk){try{myApp.line=41;var tagfct={'file':script_common,'fct':'form_footer_contact_validate(theform,tag,arr,chk)'},stop=common_stop;var i,o,n,plusarray2php=new Array();for(i=0;i';}};var o=document.getElementById('id_feedjit');if(o&&total)o.innerHTML=total;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_captcha(tag){try{myApp.line=262;var tagfct={'file':script_common,'fct':'get_array_captcha(tag)'},stop=common_stop;var captcha='captcha';myApp.captcha=captcha+tag;return(new Array(captcha,myApp.captcha,'=!'+captcha+'!set_'+myApp.captcha,captcha));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_protect(tag,captcha){try{myApp.line=271;var tagfct={'file':script_common,'fct':'get_array_protect(tag,captcha)'},stop=common_stop;var norobo='norobo';myApp.norobo=norobo;var arrayprotect=new Array(norobo,myApp.norobo,'','security');myApp.captcha='';if(captcha)arrayprotect=arrayprotect.concat(get_array_captcha('C'));return(arrayprotect);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_confirm_password(tag){try{myApp.line=284;var tagfct={'file':script_common,'fct':'get_array_confirm_password(tag)'},stop=common_stop;var confirm='confirm',mdp='mdp',password='password';return(new Array(confirm+mdp,confirm+password+tag,'=!'+confirm+mdp+'!'+password+tag,confirm+' '+password));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_connection(tag,passonly){try{myApp.line=292;var tagfct={'file':script_common,'fct':'get_array_connection(tag,passonly)'},stop=common_stop;var password='password';var arraylogin=new Array(password,password+tag,'=!'+password+'!'+password+tag,password);if(passonly&&passonly==true)return(arraylogin);var pseudo='pseudo';var arraypseudo=new Array(pseudo,pseudo+tag,'*',pseudo);if(passonly&&passonly==pseudo)return(arraypseudo);arraylogin=arraylogin.concat(arraypseudo);return(arraylogin);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_confirm_mail(tag){try{myApp.line=306;var tagfct={'file':script_common,'fct':'get_array_confirm_mail(tag)'},stop=common_stop;var mail='mail',confirm='confirm';return(new Array(confirm+mail,confirm+mail+tag,'=!'+confirm+mail+'!'+mail+tag,confirm+' '+mail));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_mail(tag,two){try{myApp.line=314;var tagfct={'file':script_common,'fct':'get_array_mail(tag,two)'},stop=common_stop;var mail='mail';var amail=new Array(mail,mail+tag,'=!'+mail+'!'+mail+tag,mail);if(two)return(amail.concat(get_array_confirm_mail(tag)));return(amail);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_birthwhere(tag){try{myApp.line=324;var tagfct={'file':script_common,'fct':'get_array_birthwhere(tag)'},stop=common_stop;var nationality='nationality',birthcountry='birthcountry';return(new Array(nationality,nationality+tag,'*',nationality,birthcountry,birthcountry+tag,'*',birthcountry ));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_birthday(tag,where){try{myApp.line=335;var tagfct={'file':script_common,'fct':'get_array_birthday(tag,where)'},stop=common_stop;var birthday='birthday',year='year',month='month',day='day',age='age',array_birthday=new Array();myDebug._alert(new Array(tagfct['fct'],348,script_common,'tag='+tag+' - where='+where));array_birthday=new Array(year+birthday,'*idx_.'+birthday+'.'+year+'.'+tag,'=!length!4',year,month+birthday,'*idx_.'+birthday+'.'+month+'.'+tag,'=!length!2',month,day+birthday,'*idx_.'+birthday+'.'+day+'.'+tag,'=!length!2',day,age+birthday,'*idx_.'+birthday+'.'+age+'.'+tag,'=!length!'+'*idx_.'+birthday+'.hidden'+age+'.'+tag,age );if(where)array_birthday=array_birthday.concat(get_array_birthwhere(tag));return(array_birthday);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_date_array_birthday(tag,sens,what){try{myApp.line=361;var tagfct={'file':script_common,'fct':'get_date_array_birthday(tag,sens,what)'},stop=common_stop;var birthday='birthday';var year=$('#'+'year'+birthday+tag).val();var month=$('#'+'month'+birthday+tag).val();var day=$('#'+'day'+birthday+tag).val();var age=$('#'+'age'+birthday+tag).val();var thedate=(sens&&sens<0?year+'/'+month+'/'+day:day+'/'+month+'/'+year);return(!what?thedate:thedate+'/'+age);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_firstname(tag,id){try{myApp.line=374;var tagfct={'file':script_common,'fct':'get_array_firstname(tag,id)'},stop=common_stop;var identifying='identifying',firstname='firstname',lastname='lastname';var arrayid=new Array();if(id)arrayid=(id?new Array(identifying,identifying+tag,'*',identifying):new Array());var arrayfirstname=new Array(firstname,firstname+tag,'*',firstname,lastname,lastname+tag,'*',lastname );return(arrayfirstname.concat(arrayid));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_civility(tag,fgender,fidentity){try{myApp.line=389;var tagfct={'file':script_common,'fct':'get_array_civility(tag,fgender,fidentity)'},stop=common_stop;var civility='civility',gender='gender';var arraycivility=new Array(civility,civility+tag,'*',civility);if(fgender)arraycivility=arraycivility.concat(new Array(gender,gender+tag,'*',gender));if(fidentity)arraycivility=arraycivility.concat(get_array_firstname(tag));return(arraycivility);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_contact(tag){try{myApp.line=400;var tagfct={'file':script_common,'fct':'get_array_contact(tag)'},stop=common_stop;var mail=get_array_mail(tag,false);var phone='phone';return(mail.concat(new Array(phone,phone+tag,'*',phone)));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_question_answer(tag){try{myApp.line=408;var tagfct={'file':script_common,'fct':'get_array_question_answer(tag)'},stop=common_stop;var question='question',answer='answer';return(new Array(question,question+tag,'*',question,answer,answer+tag,'*',answer ));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_select_mails(){try{myApp.line=422;var tagfct={'file':script_common,'fct':'get_select_mails()'},stop=common_stop;var obj=$Prot("entry_mail"),obj2=$Prot("extmail");var x=obj.value.toLowerCase();var i=x.indexOf("@",0);if(i==-1)obj.value+="@"+obj2.value;else obj.value=x.substr(0,i)+"@"+obj2.value;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function test_captcha(num){try{myApp.line=435;var tagfct={'file':script_common,'fct':'test_captcha(num)'},stop=common_stop;var x1=$Prot("captcha"+num).value;var x2=$Prot("set_captcha"+num).value;msg='';if(x2!='')if(x1!=x2)msg=msg+'\n'+' * Captcha invalide';return(msg);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_space_to_cart(){try{myApp.line=449;var tagfct={'file':script_common,'fct':'js_space_to_cart()'},stop=common_stop;var price=0,y=z=0;var x=$Prot("newmyspaces").value.split('::');if(x[0].substring(0,1)=='['){alert(x[0]+" n'est pas un espace!");return;};z=x[0].split('(');z=z[1].split(')');z=z[0].split('.');price=z[0]+'.'+z[1].substring(0,2);y=$Prot("howmanymonthsmyspaces").value.split('::');price=String(y[0]*price);x=price.split('.');if(!x[1])price=price+'.00';$Prot("pricemyspaces").value=price;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_change_street_of_address(street){try{myApp.line=469;var tagfct={'file':script_common,'fct':'js_change_street_of_address(street)'},stop=common_stop;var typerue=$Prot("tSTREET").value;var rue=$Prot(street).value;var x=rue.split(' ');var y=typerue.split('::');rue=(x[1]?y[0]+" "+x[1]:y[0]+" "+rue);$Prot(street).value=rue }catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function record_grid_question(num,formtag){try{myApp.line=484;var tagfct={'file':script_common,'fct':'record_grid_question(num, formtag)'},stop=common_stop;if(num==1){$Prot("prerecord").value="on";return(true);};var x1=$Prot("confirm-"+formtag).checked;if(x1)return x1;alert("Vous devez confirmer l'enregistrement obligatoirement!");return(false);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function find_a_parcel(stock,where1,where2){try{myApp.line=521;var tagfct={'file':script_common,'fct':'find_a_parcel(stock,where1,where2)'},stop=common_stop;var array=stock.split(',');var parcel=array[Math.round(Math.random()*10)];if($Prot(where1))$Prot(where1).value=parcel;if($Prot(where2)){$Prot(where2).innerHTML=parcel+' ';$Prot(where2).title=parcel;}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function wcrudeadata_action(action,array_source_doc,divname){try{myApp.line=539;var tagfct={'file':script_common,'fct':'wcrudeadata_action(action,array_source_doc,divname)'},stop=common_stop;var sep='!?';myApp.infos='';for(var i=0;i  '+msg);};function get_tag_id_of_poppup(){var o=$Prot('valuetag');return(o?o.value:'id');};function js_params_boot(arr,ann,msg,cst){try{myApp.line=577;var tagfct={'file':script_common,'fct':'js_params_boot(arr,ann,msg,cst)'},stop=common_stop;var i=0,m=myApp;if(arr&&arr[i]&&arr[i]==1){i++;m.rien=arr[i++];m.rien=arr[i++];m.rien=arr[i++];m.rien=arr[i++];m.rien=arr[i++];m.kDIR_subroot=arr[i++];m.rien=arr[i++];m.kDIR_tpl_default=m.kDIR_xommon+arr[i++];m.kDIR_tpl_default_boxes=m.kDIR_tpl_default+arr[i++];m.krien=arr[i++];m.krien=arr[i++];m.money=arr[i++];m.klang=arr[i++];m.kcountry=arr[i++];m.klangdoc=arr[i++];m.kemailnoanswer=arr[i++];m.datetemp=arr[i++];m.kstandardformatdate=arr[i++];m.load=arr[i++];m.newpost=arr[i++];m.tabstart=m.konclick=arr[i++];m.taballposts=arr[i++];m.tempostart=arr[i++];m.ksubtypeiservice=arr[i++];m.posttheone=arr[i++];m.posteditorial=arr[i++];m.klistfor_map=arr[i++].split(',');m.klistfor_dbsearch=arr[i++].split(',');m.krien=mjsreplaceall(arr[i++],'../','');m.krien=arr[i++];};i=0;if(ann&&ann[i]&&ann[i]==1){i++;m.announceexchangeconditions=ann[i++];m.announceexchangemystatus=ann[i++];};i=0;if(msg&&msg[i]&&msg[i]==1){i++;m.message4=msg[i++];m.message5=msg[i++];m.message6=msg[i++];m.message7=msg[i++];m.message8=msg[i++];m.message9=msg[i++];m.message10=msg[i++];m.message12=msg[i++];};i=0;if(cst&&cst[i]&&cst[i]==1){i++;m.word_account=cst[i++];m.tabctrlaccount=(cst[i]?cst[i++]:'account');}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_fct_change_doc_language(arr,me){try{myApp.line=680;var tagfct={'file':script_common,'fct':'js_fct_change_doc_language(arr,me)'},stop=common_stop;os_display_popuploader(true);myApp.newpost=arr[4];if(!me){to_change_doc_language(arr[1]);}else{to_change_doc_language(arr[1],me);};show_description(arr[2],arr[3],arr[4],arr[5],arr[6]);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_fct_test_onscroll_for_post(tag){try{myApp.line=709;var tagfct={'file':script_common,'fct':'js_fct_test_onscroll_for_post(tag)'},stop=common_stop;var params,o=$Prot('id_ih.'+tag),div=$Prot('id_div.'+tag),lim=150;if(o&&div){o.value++;if(o.value>lim&&o.value!=div.id){lim=o.value;params=$Prot('id_ph.'+tag);params=(params?params.value:'');o.value=div.id;var file=myApp.kDIR_xommon+'/'+'general'+'/'+'update-c'+'.php';var plusarray2php=new Array('what','update_post','action','read_post','value',o.value,'lim',lim,'params',params);var cmdarr2call_ajax_post=new Array('update_post','read_post',o.value,lim);myApp.line=571;var cmdstring2phpfixed_0=new Array('common-d.j'+','+tagfct+','+'update-c'+','+myApp.line);call_ajax_post(file,plusarray2php,cmdstring2phpfixed_0,cmdarr2call_ajax_post);}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_fct_test_onclick_id_globalcertif_time(){alert('myApp.infos fonction ='+parent.myApp.infos);};function js_fct_test_onclick_id_globalcertif(tag){try{myApp.line=740;var tagfct={'file':script_common,'fct':'js_fct_test_onclick_id_globalcertif(tag)'},stop=common_stop;var o=parent.$Prot('id_globalcertif');var file=myApp.kDIR_xommon+'/'+'security'+'/'+'globalcertif-c'+'.php';var plusarray2php=new Array('what','globalcertif','action','check','value',o.value,'site',myApp.ktypeiservice+','+myApp.kapptype+','+myApp.ktagdir+','+myApp.kdir_www+','+myApp.NAMESITE);var cmdarr2call_ajax_post=new Array('globalcertif','check',o.value);myApp.line=571;var cmdstring2phpfixed_0=new Array('common-d.j'+','+tagfct+','+'globalcertif-c'+','+myApp.line);return(call_ajax_post(file,plusarray2php,cmdstring2phpfixed_0,cmdarr2call_ajax_post,'',true));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};