var script_os='os-c.js',os_stop=1;jsscriptslist=jsscriptslist.concat(new Array(script_os));myDebug.checkjsload(script_os);var x=myApp,atcookie='';myDebug.dev=0;x.sepofcontrol='!:';x.ksepfields='wyz';x.kemailuser=x.infos=x.global=x.x=x.ajxcookie=x.params=x.values=x.captcha=x.norobo=x.iserviceparams=x.submotif=x.datetemp='';x.sql=x.blockdiv=false;x.args=x.connexion=x.steps=x.dbl_list=new Array();x.callajaxrunning=false;x.showpost='';x.tempostart=3000;x.konclick=x.tabstart='1.daily.0.0.div';function check_data_after_ajax_call(data,status,tagfctkjsfct,tagfctkjsfile,files,line){try{var saveline=myApp.line;myApp.line=28;var tagfct={'file':script_os,'fct':'check_data_after_ajax_call(data,status)'},stop=os_stop;myApp.line=38;var decrypt_data_callpost=debug_search_fatal_error_in_data(data,status,tagfctkjsfct,tagfctkjsfile,files,line,400);var datareturn=true;if(!decrypt_data_callpost['ret']){myApp.line=43;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'\n IN '+tagfctkjsfile+'\n IN '+tagfctkjsfct+' \n','stop='+files),myApp.line+stop);datareturn=false;};if(datareturn){myApp.line=49;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'\n IN '+tagfctkjsfile+'\n IN '+tagfctkjsfct+' \n','stop='+files),myApp.line+stop);var error=decrypt_data_callpost['error'];if(error)datareturn=false;else {var jsonResponsedata=(decrypt_data_callpost['type']=='json'),result=decrypt_data_callpost['data'],result2=decrypt_data_callpost['result2'];var scroll=result['scroll']=(decrypt_data_callpost['scroll']?decrypt_data_callpost['scroll']:''),calltype=result['content']=(decrypt_data_callpost['type']?decrypt_data_callpost['type']:''),content=result['content']=(decrypt_data_callpost['content']?decrypt_data_callpost['content']:''),targetdiv=result['targetdiv']=(decrypt_data_callpost['targetdiv']?decrypt_data_callpost['targetdiv']:'');myApp.line=61;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'error='+error,'targetdiv='+targetdiv,'result2='+result2,'content='+content),myApp.line+stop);var synchrocontenttargetdiv=(content&&targetdiv&&targetdiv!='');var datareturn={'error':false,'jsonResponsedata':jsonResponsedata,'result':result,'result2':result2,'scroll':scroll,'content':content,'targetdiv':targetdiv,'calltype':calltype,'synchrocontenttargetdiv':synchrocontenttargetdiv}};};os_display_popuploader(datareturn,tagfct[kjsfile],tagfct[kjsfct],data);myApp.line=saveline;return(datareturn);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_set_screen_dimension(){try{myApp.line=54;var tagfct={'file':script_os,'fct':'js_set_screen_dimension()'},stop=os_stop;var my2dscreen,x,y,m=myApp,i=0;m.kWscreen=screen.width;m.kHscreen=screen.height;m.kFscreen=i;var w=window,d=document,e=d.documentElement,g=d.getElementsByTagName('body')[0],x=w.innerWidth||e.clientWidth||g.clientWidth,y=w.innerHeight||e.clientHeight||g.clientHeight;m.kWscreendoc=x;m.kHscreendoc=y;switch(m.kWscreen){case 640:i=8;break;case 800:i=10;break;case 1024:i=12;break;case 1600:i=16;break;default:i=14;break;};m.kFscreen=i;m.mybrowser=navigator.sayswho;my2dscreen=m.kWscreen+'x'+m.kHscreen+'x'+m.kWscreendoc+'x'+m.kHscreendoc+'|'+m.kFscreen+'|'+m.mybrowser+'|';y=my2dscreen.split('|');var tag='my2dscreen';var allcookies=readAllCookies();if(allcookies[1][tag]){SetCookie(tag,'',0);return(false);};x=GetCookie(tag);if(x)x=x.split('|');else x='|||';var z=x[0].split('x');var newscreen=(z[0]+'x'+z[1]!=m.kWscreen+'x'+m.kHscreen),newfont=(x[1]!=y[1]),newbrowser=(x[2]!=y[2]);if(newscreen){var result=SetCookie(tag,my2dscreen,100);document.location.reload(true);}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function Is(){try{myApp.line=127;var tagfct={'file':script_os,'fct':'Is()'},stop=os_stop;this.appname=navigator.appName;this.appversion=navigator.appVersion;this.platform=navigator.platform;this.useragent=navigator.userAgent.toLowerCase();this.ie=(this.appname=='Microsoft Internet Explorer');if((this.useragent.indexOf('mac')!=-1)||(this.platform.indexOf('mac')!=-1)){this.sisop='mac';}else if((this.useragent.indexOf('windows')!=-1)||(this.platform.indexOf('win32')!=-1)){this.sisop='windows';}else if((this.useragent.indexOf('linux')!=-1)||(this.platform.indexOf('linux')!=-1)){this.sisop='linux';}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};var is=new Is();function enterSubmit(keypressEvent,submitFunc){try{myApp.line=147;var tagfct={'file':script_os,'fct':'enterSubmit(keypressEvent,submitFunc)'},stop=os_stop;var kCode=(is.ie?keypressEvent.keyCode:keypressEvent.which);if(kCode==13)eval(submitFunc);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function GetId(id,line){try{myApp.line=(line?line:155);var tagfct={'file':script_os,'fct':'GetId(id,line)'},stop=os_stop;if(id&&(id!=''))return(document.getElementById(id));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function GetName(name){try{myApp.line=162;var tagfct={'file':script_os,'fct':'GetName(name)'},stop=os_stop;if(name&&(name!=''))return(document.getElementsByName(name));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function findlast(name){try{myApp.line=170;var tagfct={'file':script_os,'fct':'findlast(name)'},stop=os_stop;var i=0;while(document.getElementsByName(name)[i])i++;return(i-1);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function fg_ojs_GetType(me){try{myApp.line=178;var tagfct={'file':script_os,'fct':'fg_ojs_GetType(me)'},stop=os_stop;if(!me||!me.id)return(new Array());var x;var types=new Array('text','radio','checkbox','select-one','label','hidden','textarea');if(!me.type){x=me.id.split('_');x=x[x.length-1];};return(new Array(new Array((me.type==types[0]),(me.type==types[1]),(me.type==types[2]),(me.type==types[3]),(x==types[4]),(me.type==types[5]),(me.type==types[6])),types ));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function SetGetPseudo(){try{myApp.line=206;var tagfct={'file':script_os,'fct':'SetGetPseudo()'},stop=os_stop;var o=$Prot('id_user_mdl1');myApp.PSEUDO=(o?o.innerHTML:'');}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function SetConnexionNotconnexion(what){try{myApp.line=213;var tagfct={'file':script_os,'fct':'SetConnexionNotconnexion(what)'},stop=os_stop;var name='tbltools',o,i=findlast(name);myApp.line=148;if(i>-1){for(i=0;i<10;i++){o=document.getElementsByName(name)[i];myApp.line=121;if(!o)break;o.style.display=(what?myApp.kcssinline:myApp.kcssnone);}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function isArray(myArray){try{myApp.line=236;var tagfct={'file':script_os,'fct':'isArray(myArray)'},stop=os_stop;return(Object.prototype.toString.call(myArray)==="[object Array]");}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_values_of_args(o,value){try{myApp.line=253;var tagfct={'file':script_os,'fct':'set_values_of_args(o,value)'},stop=os_stop;var ar=new Array('height','left','top','width','color','font-size','text-shadow');for(var i=0;i1){set_values_of_args(x,value);if(o)o.innerHTML=namesite;}else{o=$Prot('id_texttitle');if(o){value=v.split(';');o.innerHTML=value[0];for(i=1;i0){did=did.replace('*','');xval=sval*1+20;}};};d=$Prot(did);if(d){switch(styp){case'select-one':d.selectedIndex=s.selectedIndex;break;default:d.value=(xval!=''?xval:sval);}};}};}};}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_display_popupmain_from_call_ajax_post(what,result){try{myApp.line=1136;var tagfct={'file':script_os,'fct':'set_display_popupmain_from_call_ajax_post(what,result)'},stop=os_stop;switch(what){case'donate0':case'to_sign_up':case'to_createsimplewwwsite':case'to_uploadwwwsite':myApp.set_display_of_popup(what,result,myApp.kcssvisible);break;}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_make_tabber_from_call_ajax_post(what,result){try{myApp.line=1150;var tagfct={'file':script_os,'fct':'set_make_tabber_from_call_ajax_post(what,result)'},stop=os_stop;if(!what)return(false);var o;myApp.line=1166;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'what='+what,'result[\'json\']='+result['json'],'content='+result['content']),myApp.line+stop);switch(what){case'comment0':put_content_tabonclick_to_div(result[2]);break;case'lefttabmenu0':put_content_tabonclick_to_div(result[4]);run_ByRei_jScroller2(1,result[3],'400px');break;case'shop0':case'remarks':case'biorythm0':case'program0':put_content_tabonclick_to_div(result[3]);break;case'simpleaccounting':var name=result[5];x=init_multiple_select(name,'contener','',result[6],false);if(result[7])x[0]=x[0].replace('max-width:90px;',result[7]);result[3]=result[3].replace('xxxsimpleaccountingxxx',x[0]);put_content_tabonclick_to_div(result[3]);x=build_html_select(name,1);for(i=2;i<=myApp.dbl_list[name]['last'];i++)x=build_html_select(name,i,x);break;case'[resume]':display_datas_for_resume(result);break;case'diaporama0':case'mapper0':case'cursus0':case'menuleft':display_datas_for_animation(result);break;case'carrousel0':myApp.line=1220;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'carrousel0=','result='+result),myApp.line+stop);display_datas_for_animation(result,1);break;case'registrationx0':o=$Prot(myApp.konclick);if(o){i=result[3];y=myApp.konclick.split('.');x=$Prot(y[0]+'.'+what+'.'+y[2]+'.'+(i-1)+'.div');y='id_principaltitle'+what;if(x){x=x.innerHTML.replace(y+(i-1),y+i);put_content_tabonclick_to_div(x);};$Prot(y+i).innerHTML=result[4];};break;default:o=$Prot(myApp.konclick);var content=(result['content']?result['content']:result[3]);myApp.line=1236;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'what='+what,'content='+content,'myApp.konclick='+myApp.konclick),myApp.line+stop);if(!o){var idiv=get_id_of_object_of_iframe(myApp.konclick);if(idiv&&content&&idiv.innerHTML!=content){idiv.innerHTML=content;}};if(o){myApp.line=1251;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'what='+what,'json='+result['json'],'result[2]='+result[2],'result[3]='+result[3],'result[4]='+result[4]),myApp.line+stop);if(result['json']){result[3]=content;result[4]='';if(result['scroll'])result[4]=result['scroll'];};if(result[3]){if(result[4])put_content_tabonclick_to_div(result[3],'',result[4]);else put_content_tabonclick_to_div(result[3]);}else if(what)put_content_tabonclick_to_div(what);}};myApp.newpost='';ftabberjs_init_before_display();copy_previous_values_of_form(result);o=$Prot('postscroller');if(o){ByRei_jScroller2.add(o,'up');};os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);if($.isFunction(window.fg_ajs_go_actions_after_onclick_steptab)){for(var i=0;i<30;i++){if(!get_tab_is_checked(i))break;};o=GetName('block');myApp.line=1289;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'i='+i),myApp.line+stop);if(o&&o[i]){o[i].checked=false;o[i].disabled=false;}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_order_into_result2(result){try{myApp.line=1289;var tagfct={'file':script_os,'fct':'set_order_into_result2(result)'},stop=os_stop;var x,ttag,msg,idname,result2=(result[2]?result[2]:'');switch(result2){case'[send]':display_datas_for_resume(result);break;case'updatefile':if(!result[6])break;idname=result[6];ttag='updated: ';msg=ttag+result[5]+','+idname;x='jdtwl_msg'+idname;myApp.display_message_popup(result[3],msg,'already '+msg,($Prot(x)?x:''),'!');if($.isFunction(window.jd_set_text_with_langs)){jd_set_text_with_langs(idname,result);};break;};return(!os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_account_from_call_ajax_post(message,make,result){try{myApp.line=1305;var tagfct={'file':script_os,'fct':'set_account_from_call_ajax_post(message,make,result)'},stop=os_stop;var o,i,msg,msgcolor,msgresult,data,calltag;var arraccount=new Array('login_deconnect','open_box_connexion','create_box_connexion','demand_params_of_connexion','account_create','account_change_identity','setcookie','donate0');myApp.line=1336;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'message='+message,'make='+make,'result[\'json\']='+result['json']),myApp.line+stop);if(result['json']){myApp.line=1339;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'message='+message,'make='+make,'result='+result),myApp.line+stop);switch(result['demand']){case'account_create':if(result['item_refused']){myApp.line=1323;myApp.display_message_popup(true,'','',result['item_refused']);setTimeout('myApp.display_popupmain',5);};if(result['bodytext']){myApp.line=1329;myApp.display_message_popup(true,result['item_accepted']);setTimeout('myApp.display_popupmain',5);};return(true);break;};return(new Array(msg,msgcolor,msgresult,data));};myApp.line=1369;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'message='+message,'make='+make,'result='+result),myApp.line+stop);i=js_in_array(arraccount,message);if(make=='find')return(i>=0?'set_account':'');i=js_in_array(arraccount,make[4]);make[0]=i;myApp.line=1107;switch(make[0]){case 0:os_connexion_for_call_ajax_post(make[4],result);break;case 1:data=os_connexion_for_call_ajax_post(make[4],result,message,make[2]);break;case 2:i=os_connexion_for_call_ajax_post(make[4],result);if(i[0]){msg=i[0];msgcolor=i[1];msgresult=i[2];};break;case 3:case 4:i=os_connexion_for_call_ajax_post(make[4],result);if(i[0]){myApp.display_popupmain('');};break;case 5:if(result[1]){msgcolor=(result[1]?'green':'red');msgresult=result[2];};break;case 6:myApp.line=1407;switch(make[1]){case'language':myApp.klang=make[2];make[1]='klang';break;case'country':o=$Prot('id_left_flag_country');if(o){o.title=make[2];o.src=o.src.replace('/'+myApp.kcountry+'.','/'+make[2]+'.');};myApp.kcountry=make[2];make[1]='kcountry';break;default:break;};myApp.line=1149;SetCookie(make[1],make[2],myApp.cookietime*2);myApp.line=1151;if(make[3]&&make[3]==true)document.location.reload(true);break;};myApp.line=1161;return(new Array(msg,msgcolor,msgresult,data));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function call_ajax_post_synchrone(file,allarray,demand,option){try{myApp.line=1384;var tagfct={'file':script_os,'fct':'call_ajax_post_synchrone(file,allarray,demand,option)'},stop=os_stop;myApp.line=1438;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'file='+file,'demand='+demand,'option='+option),myApp.line+stop);var result='!result',status='!status';var option=(option?option:'');var srcfile=callfile=file;var returnout='returnout';if(demand)allarray['function']=demand;switch(demand){case'file_exists':callfile=myApp.kDIR_xommon+'/'+'functions-c'+myApp.kextph;allarray['params']=srcfile;allarray['option']=option;allarray['NAMESITE']=myApp.NAMESITE;break;default:callfile=srcfile;};myApp.line=1454;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'file='+file,'callfile='+callfile),myApp.line+stop);$.ajax({type:'POST',url:callfile,data:allarray,success:function(data,status){myApp.line=1461;var formatdata=check_data_after_ajax_call(data,status,tagfct[kjsfct],tagfct[kjsfile],'file='+file+'\n'+'callfile='+callfile,myApp.line);if(!formatdata){return(false);};var jsonResponsedata=formatdata['jsonResponsedata'],result=formatdata['result'],result2=formatdata['result2'];var error=formatdata['error'],scroll=formatdata['scroll'],content=formatdata['content'],targetdiv=formatdata['targetdiv'];var synchrocontenttargetdiv=formatdata['synchrocontenttargetdiv'],calltype=formatdata['calltype'];myApp.line=1486;var called=result['call'];myApp.line=1490;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result[\'json\']='+result['json'],'result[\'pass\']='+result['pass'],'result[\'call\']='+called),myApp.line+stop);switch(called){case'globalcertif':var o=parent.$Prot('id_'+called),pass=result['pass'],rights=result['rights'],cookietime=result['cookietime'],flength=result['flength'];if(pass==1){parent.myApp.infos=returnout=(pass==rights);if(parent.myApp.infos){o.value='';SetCookie(called,o.value,cookietime);}}else if(pass==0)returnout=parent.myApp.infos=false;else{if(o)parent.myApp.infos=returnout=(pass==o.value);if(parent.myApp.infos)SetCookie(called,o.value+'|'+rights,cookietime);};if(!parent.myApp.infos)alert('Enter correct certificate !');break;case'file_exists':myApp.line=1516;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'called='+called,'dir_lower0='+result['dir_lower0'],'result='+result,'result[file]='+result[kjsfile],'result[exists_file_deport]='+result['exists_file_deport']),myApp.line+stop);returnout={'exists':result['exists_params'],'exists_deport':result['exists_file_deport'],'file':result[kjsfile]};break;default:myApp.line=1532;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'called='+called,'result='+result),myApp.line+stop);}},async:false });os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);return(returnout);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_file_exists(file,option,allarray){try{myApp.line=1492;var tagfct={'file':script_os,'fct':'js_file_exists(file,option,allarray)'},stop=os_stop;if(!allarray){var cookieref='fing_collaborative_involvement';var o1={'function':'file_exists','params':file,'basesite':myApp.ktagdir,'NAMESITE':myApp.NAMESITE,'dir_images':myApp.kDIR_images};var o2={'kDIR_NAMESITE':myApp.NAMESITE};var o3={cookieref:GetCookie(cookieref)};allarray=Object.assign({},o1,o2,o3);};var num=0;option=(option?option:'');var res=call_ajax_post_synchrone(file,allarray,'file_exists',option);if(res){num=(res['exists']?(res['exists_deport']?3:1):0);if(!res['exists']){file='';if(res['exists_deport']){file=res[kjsfile];num=2;}};};return({'status':num,'file':file});}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function call_ajax_post(file,array,arraysrc,make,verified,synchrone,source){try{myApp.line=1523;var tagfct={'file':script_os,'fct':'call_ajax_post(file,array,arraysrc,make,verified,synchrone,source)'},stop=os_stop;var ret=true,callok='';os_display_popuploader(ret,tagfct[kjsfile],tagfct[kjsfct],file);var o,i,x,y,message,msg='',msgresult,msgcolor='green',called=false,entry=false;if(file&&file.substring(0,1)=='/'){msg=' - file='+file;msg+=' - myApp.klistfor_dbsearch='+myApp.klistfor_dbsearch;msg+=' - myApp.klistfor_map='+myApp.klistfor_map;msg+=' - myApp.kdir_www='+myApp.kdir_www;msg+=' - myApp.ktagdir='+myApp.ktagdir;msg+=' - myApp.NAMESITE='+myApp.NAMESITE;};myApp.line=1598;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'msg='+msg),myApp.line+stop);var param1=(file==''),param2=!(isArray(array));var data,status,result,error=(param1||param2),allarray;var tarray=get_arrays_fixed(arraysrc);tarray=tarray.concat(array);var params=get_arrays_ajax(tarray);myApp.line=1604;var cookieref='fing_collaborative_involvement';if(0||!myApp.ktagdir||!myApp.NAMESITE||!myApp.subsite){myApp.line=1610;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'myApp.NAMESITE='+myApp.NAMESITE),myApp.line+stop);};var o1={'function':'','params':'','basesite':myApp.ktagdir,'dir_images':myApp.kDIR_images};var o2={'NAMESITE':myApp.NAMESITE,'fixed[]':params[0],'plus[]':params[1]};var o3={cookieref:GetCookie(cookieref)};if(verified){x=myApp.params.split(myApp.sepofcontrol);y=myApp.values.split(myApp.sepofcontrol);var o4={'fields[]':x,'values[]':y};allarray=Object.assign({},o1,o2,o3,o4);}else allarray=Object.assign({},o1,o2,o3);myApp.line=1446;myApp.callajaxrunning=false;var callphpok='beforeCALLajax',response;if(!file||!allarray){myApp.line=1634;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'file='+file),myApp.line+stop);};if(synchrone)return(call_ajax_post_synchrone(file,allarray));var x=file.split('/');x=x[x.length-1].split('.');var res=call_ajax_post_synchrone(file,allarray,'file_exists');if(res)if(!res['exists_params'])if(res['exists_deport']){file=res[kjsfile];}else if(!file){myApp.line=1656;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'not file='+file),myApp.line+stop);os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);return(null);};alert_for_msg_for_debug('call $.post kislocalsite \n line=1645 '+'\ntagfct[\'fct\']='+tagfct[kjsfct]+'\ntagfct[\'file\']='+tagfct[kjsfile]+'\nfile='+file);$.post(file,allarray,function(data,status){myApp.line=1684;var formatdata=check_data_after_ajax_call(data,status,tagfct[kjsfct],tagfct[kjsfile],'file='+file,myApp.line);if(!formatdata){return(false);};var jsonResponsedata=formatdata['jsonResponsedata'],result=formatdata['result'],result2=formatdata['result2'];var error=formatdata['error'],scroll=formatdata['scroll'],content=formatdata['content'],targetdiv=formatdata['targetdiv'];var synchrocontenttargetdiv=formatdata['synchrocontenttargetdiv'],calltype=formatdata['calltype'];callphpok='afterCALLajax',myApp.callajaxrunning=true,called=error,entry=true;var testmake=(make&&make[0]),tagmake=(testmake?make[0]:'unknow');myApp.line=1750;if(source){myApp.line=1777;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'file='+file,'source='+source,'synchrone='+synchrone,'allarray='+allarray,'arraysrc='+arraysrc,'make='+make,'data='+data),myApp.line+stop);};myApp.line=1780;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result[2]='+result[2],'tagmake='+tagmake,'testmake='+testmake,'make='+make),myApp.line+stop);if(!jsonResponsedata)set_order_into_result2(result);myApp.line=1783;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result[2]='+result[2],'tagmake='+tagmake,'testmake='+testmake,'make='+make),myApp.line+stop);myApp.line=1785;if(testmake){myApp.line=1787;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'tagmake='+tagmake),myApp.line+stop);if(make[1]){make[1]=make[1].replace('$','');if($('#'+make[1]))message=$('#'+make[1]);else message=make[1];};myApp.line=1795;msg=(message?message.html():'');if(msg&&message){message.css({'background-color':msgcolor});message.html('work in progress');};if(!error){if(result[1]){msgcolor=(result[1]?'green':'red');if(result2)msgresult=result2;};x=set_account_from_call_ajax_post(make[0],'find',result);if(x=='set_account'){make[4]=make[0];make[0]=x;};var actualmyAppkonclick=myApp.konclick;switch(make[0]){case'update_post':break;case'get_boot_cfg_jsph0':myApp.line=1823;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'make[0]='+make[0]),myApp.line+stop);js_set_screen_dimension();break;case'display_popupmain':set_display_popupmain_from_call_ajax_post(make[1],result);break;case'updatefile':break;case'make_tabber':make=false;myApp.line=1834;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'synchrocontenttargetdiv='+synchrocontenttargetdiv,'targetdiv='+targetdiv,'result2=',result2,'content='+content),myApp.line+stop);alert_for_msg_for_debug('lj:1831 os.js synchrocontenttargetdiv='+synchrocontenttargetdiv+' \n targetdiv='+targetdiv);if(synchrocontenttargetdiv&&$('#'+targetdiv)){var contentdiv=$('#'+targetdiv).html();if(content!=contentdiv){myApp.konclick=targetdiv;put_content_tabonclick_to_div(content);if(scroll)run_ByRei_jScroller2(1,scroll,'400px');if(result['call']=='carrousel0'){myApp.carrousel=new myApp.fctcarrousel(result['params'].split(','));myApp.carrousel.set();}};os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);}else set_make_tabber_from_call_ajax_post(result2,result);break;case'set_account':i=set_account_from_call_ajax_post(message,make,result);msg=i[0];msgcolor=i[1];msgresult=i[2];data=i[3];break;case'gallerychange':gallerychange_into_call_ajax_post(result);break;case'mapchange':myApp.line=1860;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'make[0]='+make[0],'tagmake='+tagmake),myApp.line+stop);mapchange_into_call_ajax_post(result);break;case'menu_enrollment_person':if(result2=='copy')if($('#'+result[3]))$('#'+result[3]).html(result[4]);break;case'search_mail_available':if(result[1]){msgcolor=(result[1]?'green':'red');msgresult=result2+':'+result[3];};break;case'update_comment':myApp.line=1874;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result2='+result2),myApp.line+stop);if(result[1]){msgcolor=(result[1]?'green':'red');msgresult=result2;};make_tabber(result[3],true);myApp.display_popupmain('');break;case'update_article':myApp.line=1886;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myApp.line+stop);if(result[1]){msgcolor=(result[1]?'green':'red');msgresult=result2;};if(result[4]){myApp.newpost=result[4];make_tabber(result[3],true);};if(result[5]&&result[5]=='update')myApp.display_popupmain('');break;case'evaluate_article':if(result[1]){msgcolor=(result[1]?'green':'red');msgresult=result2;myApp.line=1906;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myApp.line+stop);};myApp.display_popupmain('');break;case'display_catalog':put_content_tabonclick_to_div(result2);break;case'get_ref_article':if(result[1]){msgcolor=(result[1]?'green':'red');msgresult=result2;myApp.line=1919;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myApp.line+stop);$Prot('div_popup_article').value=result[3];infobulle_onmouseover(myApp.infobulle1,'infobulle1',6,'div_popup_article');};break;default:}};make=(make=='get_boot_cfg_jsph0'?make:false);};if(message&&msgresult){message.css({'background-color':msgcolor});message.html(msgresult);};if(make){myApp.line=1941;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'before show tabber','myApp.konclick='+myApp.konclick,make),myApp.line+stop);make_tabber(myApp.konclick,true);};callphpok='endCALLajax';});var msgcallpost='CALL POST CRASH';msgcallpost=(callphpok=='beforeCALLajax'?msgcallpost:'');if(!myApp.callajaxrunning||msgcallpost){myApp.line=1957;stop=1;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'myApp.konclick='+myApp.konclick,'callphpok='+callphpok,'stop='+stop),myApp.line+stop);};myApp.callajaxrunning=false;myApp.line=1960;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'result2='+result2,'tagmake='+tagmake),myApp.line+stop);os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);if(!entry||ret)return(!os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function infos(){try{myApp.line=1857;var tagfct={'file':script_os,'fct':'infos()'},stop=os_stop;if(navigator.javaEnabled()){adresse=java.net.InetAddress.getLocalHost();machine=adresse.getHostName();ip=adresse.getHostAddress();}else{ip="Java n'est ";machine="pas active";};document.formulaire.ip.value=ip;document.formulaire.machine.value=machine;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_root_nav_dim(what){try{myApp.line=1887;var tagfct={'file':script_os,'fct':'js_root_nav_dim(what)'},stop=os_stop;var winW,winH;if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){winW=window.innerWidth-16;winH=window.innerHeight-16;};if(navigator.appName.indexOf("Microsoft")!=-1){winW=document.body.offsetWidth-20;winH=document.body.offsetHeight-20;}};if(what=="h")return(winH);if(what=="w")return(winW);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function os_get_datas_motifs_tab_appli(motif){try{myApp.line=1908;var tagfct={'file':script_os,'fct':'os_get_datas_motifs_tab_appli(motif)'},stop=os_stop;var tabsappli=new Array('oneposts','rpanel','menuleft','lefttabmenu','forms_simple','recruitment','registrationx0','registration','actionsarticle','createsimplewwwsite','uploadwwwsite');if(!motif)return(tabsappli);var tagcalled=(motif.substring(0,1)=='$');if(tagcalled)return('$');for(var i=0;i=0){select.selectedIndex=index;var tab=fg_osjs_get_infos_of_select(select);if(vort=='v')selected=(tab[0]==select.options[index].value);if(vort=='t')selected=(tab[1]==select.options[index].text);};return(new Array(index,vort,selected));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function mdp_is_valid(mdp){var msg='';if(mdp.length<8)msg+='not long enough';return(msg);};function test_mail(mail){var re=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return(re.test(mail));};function concat_msg_verify_fields(msg,comment,plus){msg+=(msg?' - ':'')+(comment?comment:'')+(plus?' '+plus:'');return(msg);};function verify_fields(array,displaymsg){myApp.line=2113;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'function verify_fields(array,displaymsg)','myApp.konclick='+myApp.konclick,'callphpok='+callphpok),myApp.line+stop);};myApp.verify_fields=function(array,displaymsg){try{myApp.line=2008;var tagfct={'file':script_os,'fct':'myApp.verify_fields=function(array,displaymsg)'},stop=os_stop;var arrayidx=arrayfieldsnames=arrayvalues=arraycomments='';var sep=myApp.sepofcontrol;for(var i=0;i '+i+' ['+fields[i]+']'+' ['+fields[i+1]+']');break;}};if(msg==''){var thevalue='',valuei='';for(i=0;i1)){valuei=valuei.substring(1);test=(test.value==$Prot(valuei).value);if(!test)msg=concat_msg_verify_fields('',comments[i]);}else{commande[0]=commande[0].trim();commande[1]=commande[1].trim();commande[2]=commande[2].trim();if($Prot(commande[2]))obj=$Prot(commande[2]);else obj=commande[2];var idx=text[i];var msgtext='see '+text[i];test=false;motif='';if(commande[1]=='length')idx=commande[1]+'-'+comments[i];switch(idx){case'pseudo':test=(thevalue=='');if(!test){msgfull+=msgtext;motif=notsame;};break;case'password':msgerr=mdp_is_valid(thevalue);test=(msgerr=='');if(!test){msgfull+=msgtext;motif=msgerr;};break;case'confirmmdp':test=(thevalue==obj.value);if(!test){msgfull+=msgtext;motif=notsame;};break;case'captcha':test=(thevalue==obj.value);if(!test){msgfull+=msgtext;motif=notsame;};break;case'mail':test=(test_mail(thevalue));if(!test){msgfull+=msgtext;motif=notmail;};break;case'confirmmail':test=(test_mail(thevalue));if(!test){msgfull+=msgtext;motif=notmail;break;};test=(thevalue==obj.value);if(!test){msgfull+=msgtext;motif=notsame;};break;case'civility':case'gender':case'answer':case'firstname':case'lastname':case'identifying':test=(thevalue=='');if(!test){msgfull+=msgtext;motif=notsame;};break;case'length-year':case'length-month':case'length-day':test=(myApp.IsNumeric(thevalue));if(test){test=(thevalue.length-obj==0);if(!test){msgfull+=msgtext;motif=notsame;}}else motif=notnumber;break;case'length-age':myApp.line=2293;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'thevalue='+thevalue,'fields[i]='+fields[i],'obj='+obj),myApp.line+stop);test=(myApp.IsNumeric(thevalue));test=test&&(myApp.IsNumeric(obj.value));if(test){test=(thevalue-obj.value==0);if(!test){msgfull+=msgtext;motif=badage;}}else motif=notnumber;break;};if(!test){myApp.line=2304;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'msg='+msg,'motif='+motif,'comments[i]='+comments[i]),myApp.line+stop);};if(!test)msg=concat_msg_verify_fields('',comments[i],(motif?' ('+motif+') ':''));}};}};var erreur=(msg!='');if(displaymsg){myApp.display_message_popup(!erreur,'all is ok','Errors:'+msg);};if(erreur)return(msg);else return('');}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function is_there_main_js(){return(typeof(is_mainpopup_ok)!='undefined');};function change_captcha(){try{myApp.line=2227;var tagfct={'file':script_os,'fct':'change_captcha()'},stop=os_stop;var chaine=ChaineAleatoire(5+Math.random(5));$Prot('textecaptcha').innerHTML=chaine;$Prot('verifcaptcha').value=chaine;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function actualize_imgloader(status,pos){try{myApp.line=2239;var tagfct={'file':script_os,'fct':'actualize_imgloader(status,pos)'},stop=os_stop;var tag='imgloader',x=$Prot(tag);if(x){if(!status){status=(x.style.display==myApp.kcssnone?myApp.kcssinline:myApp.kcssnone);};x.style.display=status;os_display_popuploader(false,tagfct[kjsfile],tagfct[kjsfct]);x=$Prot('div'+tag);if(x&&pos){x.style.left=pos[0];x.style.top=pos[1];}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function os_init_myapp_js_for_ajax(){try{myApp.line=2258;var tagfct={'file':script_os,'fct':'os_init_myapp_js_for_ajax()'},stop=os_stop;if(!myApp.NAMESITE){myApp.subsite='root';}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function fg_ojs_get_native_arrays_test_motif(motif){try{myApp.line=2268;var tagfct={'file':script_os,'fct':'fg_ojs_get_native_arrays_test_motif(motif)'},stop=os_stop;var arr0=new Array(),tagdiv='.div',s=motif.substring(0,1);var t=!jc_is_inarray(['paper','contest'],motif);if(t)t=(s=='$'||motif==myApp.NAMESITE||motif=='school'||motif=='shop'||jc_is_inarray(myApp.klistfor_dbsearch,motif));return(new Array(t,arr0,tagdiv,s));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function fg_ojs_get_native_arrays_after_click(motif,arrays){try{myApp.line=2285;var tagfct={'file':script_os,'fct':'fg_ojs_get_native_arrays_after_click(motif,arrays)'},stop=os_stop;if(motif==myApp.NAMESITE||motif==myApp.submotif)return(arrays[0]);var tagcalled=(motif.substring(0,1)=='$');if(tagcalled)return(arrays[0]);if($.isFunction(window.fg_ajs_go_actions_after_onclick_steptab)){var t=fg_ajs_go_actions_after_onclick_steptab(motif);if(t)return(t);};if(motif=='account')arrays[1]=new Array('0.'+motif+'.0.2.div','1.'+motif+'.2.0.div','0.'+motif+'.0.0.div','1.'+motif+'.0.0.div','0.'+motif+'.0.3.div','2.'+motif+'.3.0.0.div','1.'+motif+'.0.4.div','2.'+motif+'.4.0.0.div');return(arrays[1]);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function fg_ojs_team_demanded(thisselect){try{myApp.line=2310;var tagfct={'file':script_os,'fct':'fg_ojs_team_demanded(thisselect)'},stop=os_stop;var x,t,dir,dirlogos,list,tdphoto,tbody,td,o=$Prot('id_labelshopteam');if(o){x=thisselect.value.split('|');o.innerHTML=x[0];o=$Prot('id_httpshopteam');o.onclick=function(){myApp.display_siteshc(x[2]);};o.innerHTML=x[3];o=$Prot('id_photoshopteam');t=$Prot('id_titleshopteam');dir=$Prot('id_dirphotosteam').value;dirlogos=dir.replace('/photos','/logos');$Prot('id_imgshopteam').src=dirlogos+'/'+x[1];list=$Prot('id_listpersonsteam');tdphoto=$Prot('id_tdphotofirst');$Prot('id_teamspecificities').innerHTML=x[6];tbody=$Prot('id_tbodyphotosteam');var style=$Prot('id_tdborder_dim').value;style+=$Prot('id_tdborder_round').value;var i=thisselect.selectedIndex;var photos=$Prot('id_listphotos'+i).value.split(',');var names=$Prot('id_listnames'+i).value.split(',');var functions=$Prot('id_listfunctions'+i).value.split(',');$Prot('id_responsibleshopteam').innerHTML=names[0];fg_ojs_background_change_with_imgfile($Prot('id_tdphotofirst'),dir+'/'+photos[0].trim());var tdspace=' ';td='';if(photos.length>1){td='';for(i=0;i0?tdspace:'')+' ';};td+='';td+='';for(i=0;i0?tdspace:'')+''+names[i].trim()+'';};td+='';};tbody.innerHTML=td;if(x[4]){o.src=x[4];o.style.display='inline';t.innerHTML='';}else {o.style.display='none';t.innerHTML=x[5];};$Prot('id_responsibleshopteam').innerHTML=x[6];}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};