var script_connexion='connexion-c.js';function login_account_security(){try{myApp.line=6;var tagfct={'file':script_connexion,'fct':'login_account_security()'};var retour=true;if($Prot("norobo")){if($Prot("norobo").value!=''){myApp.display_message_popup(true,"error !norobo");retour=false;};if($Prot("captchaC").value==''){myApp.display_message_popup(true,"error !captcha empty");retour=false;};if($Prot("captchaC").value!=$Prot("set_captchaC").value){myApp.display_message_popup(true,"error !captcha value");retour=false;}};return(retour);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_login_open(tag){try{myApp.line=25;var tagfct={'file':script_connexion,'fct':'get_array_login_open(tag)'};var arrayprotect=get_array_protect(tag,true);alert('line 7 connexion-c.js ok '+arrayprotect);return(arrayprotect.concat(get_array_connection(tag)));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_array_login_create(tag){try{myApp.line=34;var tagfct={'file':script_connexion,'fct':'get_array_login_create(tag)'};var arrayprotect=get_array_protect(tag,true);arrayprotect=arrayprotect.concat(get_array_connection(tag));var arraylogin=arrayprotect.concat(get_array_confirm_password(tag));arraylogin=arraylogin.concat(get_array_mail(tag,true));arraylogin=arraylogin.concat(get_array_question_answer(tag));arraylogin=arrayprotect.concat(arraylogin);arraylogin=arraylogin.concat(get_array_birthday(tag));if($Prot('firstname'+tag)){arraylogin=arraylogin.concat(get_array_firstname(tag,true));};return(arraylogin);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function login_account_open(what,tag){try{myApp.line=52;var tagfct={'file':script_connexion,'fct':'login_account_open(what,tag)'};var form=document.forms["loginformC"],security=false;if(form&&tag=='C'){var security=$Prot("norobo").value+' - '+$Prot("captchaC").value+' - '+$Prot("set_captchaC").value;if(!login_account_security()){return("!security");};security=true;}else{alert('line36 connexion-c.js not form');return(false);};switch(what){case'create':if(myApp.verify_fields(get_array_login_create(tag),true)==''){login_account_create_ajax(myApp.txtmessage);};break;default:var arrayprotect=get_array_protect(tag,true);login_account_open_ajax(myApp.txtmessage);}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function login_account_open_ajax(message){try{myApp.line=83;var tagfct={'file':script_connexion,'fct':'login_account_open_ajax(message)'};if(0){alert('86 - open message:'+message+' - $.isFunction(window.dbgvec)'+$.isFunction(window.dbgvec));HandleError();};if(!myApp.PSEUDO){display_account_open_ajax();return(false);};myApp.infos='';myApp.params='!bo'+myApp.sepofcontrol+'ca'+myApp.sepofcontrol+'ps'+myApp.sepofcontrol+'pa';myApp.values=$Prot("norobo").value+myApp.sepofcontrol+$Prot("captchaC").value;var o=$Prot("pseudoC"),pseudo=o.value;myApp.values+=myApp.sepofcontrol+myApp.login_mdp_to_code(pseudo);var pass=$Prot("passwordC").value;alert('line 96 connexion-c.js ok '+message);myApp.values+=myApp.sepofcontrol+myApp.login_mdp_to_code(pass);alert(' connexion-c.js 87- '+myApp.line+' message- '+message+' myApp.params- '+myApp.params+' - myApp.values- '+myApp.values);var file=myApp.kDIR_xommon+'/'+'connexion'+'/'+'open_box_connexion-c'+myApp.kextph;var tags=new Array('connexion/display_get_connexion.php','login_account_open_ajax(message)',57);call_ajax_post(file,new Array(),tags,new Array('open_box_connexion',message,pseudo),true);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function login_account_create_ajax(message){try{myApp.line=126;var tagfct={'file':script_connexion,'fct':'login_account_create_ajax(message)'};myApp.serialized='norobo='+$Prot('norobo').value+'&'+'captchaC='+$Prot('captchaC').value;myApp.serialized+='&'+$('#loginform'+message).serialize();var fields=myApp.params.split(myApp.sepofcontrol);myApp.infos='';var allarray=get_arrays_joined_ajax(),params={};var allarray=mjsreplaceall(myApp.serialized,'&',myApp.sepofcontrol);allarray=mjsreplaceall(allarray,'=',myApp.sepofcontrol);allarray=allarray.split(myApp.sepofcontrol);myApp.line=118;allarray[7]=myApp.login_mdp_to_code(allarray[7]);allarray[9]=allarray[11]=myApp.login_mdp_to_code(allarray[9]);allarray[13]=allarray[15]=myApp.login_mdp_to_code(allarray[15]);allarray[17]=myApp.login_mdp_to_code(allarray[17]);allarray[19]=myApp.login_mdp_to_code(allarray[19]);allarray[21]=myApp.login_mdp_to_code(allarray[21]);$i_identifiant=allarray[23]+allarray[25]+allarray[27]+allarray[29];myApp.line=186;allarray=allarray.concat(new Array('nbr',0,'email',myApp.login_mdp_to_code(myApp.kemailnoanswer),'ident',myApp.login_mdp_to_code($i_identifiant)));var file=myApp.kDIR_xommon+'/'+'connexion'+'/'+'form_reading'+myApp.kextph;var tags=new Array('account_create',message,$('#'+fields[1]).val(),$('#'+fields[3]).val());call_ajax_post(file,allarray,tags,new Array('account_create',message));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function login_account_search_mail(tag){try{myApp.line=217;var tagfct={'file':script_connexion,'fct':'login_account_search_mail(tag)'};var arrayprotect=get_array_protect(tag,true);arrayprotect=arrayprotect.concat(get_array_mail(tag,false));if(myApp.verify_fields(arrayprotect,true)==''){var mail=$Prot('mail'+tag).value;var fields=myApp.params.split(myApp.sepofcontrol);myApp.infos='';myApp.sql=true;var file=myApp.kDIR_xommon+'/'+'connexion'+'/'+'test_mail_box_connexion'+myApp.kextph;var allarray=get_arrays_joined_ajax();allarray=allarray.concat(new Array('email',myApp.login_mdp_to_code(mail)));var arraysrc=new Array('search_mail_available',$('#'+fields[1]).val(),$('#'+fields[3]).val());call_ajax_post(file,allarray,arraysrc,new Array('search_mail_available',myApp.txtmessage,mail));}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function login_account_exist(objid,tag){try{myApp.line=235;var tagfct={'file':script_connexion,'fct':'login_account_exist(objid,tag)'};var o=$('#href_open'+tag);if(o.css('visibility')==myApp.kcssvisible)return(true);if(!$Prot(objid))return(true);if($Prot(objid).value==''||$Prot(objid).length<=6)return(true);var file=myApp.kDIR_xommon+'/'+'connexion'+'/'+'test_pseudo_box_connexion'+myApp.kextph;var erreur=false;var params=get_arrays_ajax(new Array('login_account_exist','','',myApp.datetemp,'','','*',$Prot(objid).value));$.post(file,{DIR_NAMESITE:myApp.ktagdir,'fixed[]':params[0],'plus[]':params[1]},function(data){var result=data.split(data.substring(0,2));erreur=(result[2]==$Prot(objid).value);myApp.display_message_popup(erreur,result[3],result[3]);});return(erreur);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function check_is_password_ok(pwd,length,mode){try{myApp.line=285;var tagfct={'file':script_connexion,'fct':'check_is_password_ok(pwd,length,mode)'};var what="Le mot de passe";if(mode=='pseudo')what="Le pseudo";if(pwd.length