function run_timeout_cachestep(index){if(index&&index>=0){myApp.x=index;set_cachestep_for_set_my_click(myApp.kcssinline,myApp.x);setTimeout('run_timeout_cachestep()',5000);}else{}};function fg_ajs_get_rules_is_checked(indextab,what){myApp.line=15;try{var tagfct='fagric';if(indextab<1)return(false);if(!what)return(false);var is_checked=false,rc='\\n',msg='',z=false,x=GetId('*idx_.confirm_cgv_site');if(x&&(what[0]>0))msg+=(x.checked?'':'Vous devez cocher pour les conditions générales!'+rc);x=GetId('*idx_.confirm_ugc_site');if(x&&(what[1]>0))msg+=(x.checked?'':'Vous devez cocher pour les conditions d\'utilisation!'+rc);x=GetId('*idx_.confirm_rules_site');if(x&&(what[1]>0))msg+=(x.checked?'':'Vous devez cocher pour le règlement intérieur!'+rc);x=GetId('captchaid');var y=GetId('set_captchaid');if(x&&y&&(what[2]>0))msg+=((x.value==y.value)?'':'Vous devez écrire le captcha!'+rc);x=(msg!='');var objtag='img_bar_stop';if(x){var stop=GetId(objtag);if(stop)stop.style.visibility=(!x?myApp.kcsshidden:myApp.kcssvisible);myDebug._alert(new Array('fg_ajs_get_rules_is_checked',44,'forms-steps-d.j',msg));return(os_display_popuploader(false));};return(true);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_tab_is_checked(indextab){myApp.line=54;try{var tagfct='gtic';var obj=GetName('block');if(obj){if(obj[indextab])return(obj[indextab].checked);if(obj.checked)return(obj.checked);}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function fg_ajs_set_checkbox_yesno(i,load){myApp.line=66;try{var tagfct='fascy';var o=GetId('img_bar_step'+i);var h='hidden_bar_';if(o)o.src=(load?GetId(h+'yesgif').value:GetId(h+'nogif').value);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_cachestep_for_set_my_click(what,index,last,newsfields){var x=GetId('cachestep'+index),top,checked=false;if(x){if(what==myApp.kcssinline||what==myApp.kcssnone)x.style.display=what;var block=document.getElementsByName('block')[last];if(block){var p=getPosition(block);x.style.top=(p[3]+25)+'px';}};x=GetId('textareacachestep'+index);if(x&&newsfields)x.value=newsfields;};function fg_ajs_go_actions_after_onclick_steptab(motif){myApp.line=113;try{var tagfct='fagaaos';os_display_popuploader(true);if(motif=='recruitment'||motif=='registration'||motif=='actionsarticle'||motif=='uploadwwwsite'||motif=='createsimplewwwsite'){var arraycut=fgjstabber_cut_tabdiv(myApp.konclick);if(!arraycut){os_display_popuploader(false);return(arraycart);};myApp.line=120;var is_myApp_konclick=arraycut[2][0],index=arraycut[1][1],previous=0,load=false,i,x,y,t;for(i=0;i2){tagname='';};text='({'+index+'})'+tagname+newsfields+'({/'+index+'})';if(false&&y.length>2){myApp.display_message_popup(false,'',text);};if(t.innerHTML!=''){y=t.innerHTML.split('({'+index+'})');z='';if(y[1]){z=y[1].split('({/'+index+'})');text=y[0]+z[1]+text;}else text=t.innerHTML+'({'+index+'})'+newsfields+'({/'+index+'})';};t.innerHTML=text;y=GetId('id_.hiddencookiecart.'+cookiecart);if(y)SetCookie(y.value,text,5);};return(newsfields);};function set_my_click(me,index,cookie){myApp.line=361;try{var tagfct='smc';var x=fg_ojs_GetType(me);if(!x)return(false);var numtype,value,text,s,i,j,o,n,l,z,y,t,max,fields_tabber;var cookiecart=(cookie?cookie:'shop');if(x&&x[0]){if(x[0][0]){numtype=x[1][0];value=GetId(me.id).value;if(me.id=='id_usemypoints'){n=GetId('id_pointsstep2nbr');l=GetId('used_points');max=parseInt(n.innerHTML);if(n&&l&&value<=max)l.innerHTML=value;else GetId(me.id).value='max '+max;}};if(x[0][1]){numtype=x[1][1];value=fg_ajs_get_infos_of_radio(me.id);};if(x[0][2]){numtype=x[1][2];value=fg_ajs_get_infos_of_checkbox(me.name);};if(x[0][3]){numtype=x[1][3];x=fg_osjs_get_infos_of_select(me);value=x[1];};if(x[0][4]){numtype=x[1][4];value=GetId(me.id).innerHTML;};if(x[0][5]){numtype=x[1][5];value=GetId(me.id).value;};if(x[0][6]){numtype=x[1][6];value=GetId(me.id).value;}};fields_tabber=GetId('fields_tabber'+index);myApp.line=400;if(value){if(!control_value_from_set_my_click(me,index))return(false);var sep=myApp.ksepfields,midl='/!',fields='',found=false,deb='',newsfields=(fields_tabber?fields_tabber.value:me.id),fieldI,fieldN,fieldTag,star='',notxt=true,memorizefields='',last;x=newsfields.split(me.id);found=(x.length==2);if(!found)newsfields+=sep+me.id;fields=newsfields.split(sep);newsfields='';myApp.line=448;for(i=0;i