try{myApp.line=1;var script_common_base='common-base-c.js',common_base_stop=0;jsscriptslist=jsscriptslist.concat(new Array(script_common_base));myDebug.checkjsload(script_common_base);var tagfct={'file':script_common_base,'fct':'load: '+script_common_base};var x=myApp;x.CONNECTED=new Array();x.CONNECTED['conn']=x.CONNECTED['certif']=x.CONNECTED['mcertif']=x.CONNECTED['pcertif']=x.CONNECTED['trade']=0;x.CONNECTED['iframe']=false;x.PopupWindow='';x.PSEUDO=x.alien='';x.ID=4;x.STATUS=0;x.sources=new Array();x.sources[1005]='
';x.PURCHASE=new Array();x.PURCHASE['sep']='_ยงยง_';var first_tabcontrol=final_tabcontrol='';}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);};function get_arguments_details(arguments,forreplace){try{myApp.line=37;var tagfct={'file':script_common_base,'fct':'get_arguments_details(arguments,forreplace)'},stop=common_base_stop;var i,argv=arguments,argc=argv.length;for(i=0;ii?argv[i]:forreplace[i]);return(argv);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_id_of_object_of_iframe(idobject,idiframe){try{myApp.line=53;var tagfct={'file':script_common_base,'fct':'get_id_of_object_of_iframe(idobject,idiframe)'},stop=common_base_stop;if(!idiframe)idiframe="id_iframe0";var idiv=false,iframe=document.getElementById(idiframe);if(iframe)idiv=iframe.contentWindow.document.getElementById(idobject);return(idiv);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_css_attribut(o,what,value){try{myApp.line=65;var tagfct={'file':script_common_base,'fct':'set_css_attribut(o,what,value)'},stop=common_base_stop;if(o){var ma=myApp,str=(typeof o==='string');switch(what){case'vis':value=(value>0?ma.kcssvisible:ma.kcsshidden);if(str)o=$Prot(o);if(str)o.style.visibility=value;else o.css({'visibility':value});break;case'dis':value=(value>0?ma.kcssinline:ma.kcssnone);if(str)o=$Prot(o);if(str)o.style.display=value;else o.css({'display':value});break;break;case'zin':o.css({'z-index':value});break;case'lef':o.css({'left':value});break;case'top':o.css({'top':value});break;}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function hide_div_popup(){try{myApp.line=87;var tagfct={'file':script_common_base,'fct':'hide_div_popup()'},stop=common_base_stop;var o='div_popup_box',ma=myApp,i,obj_divpopupbox=$('#'+o),obj_divpopupboxsite=$('#'+o+'_for_site');i=(obj_divpopupbox.css('visibility')==ma.kcssvisible&&obj_divpopupboxsite.css('visibility')==ma.kcssvisible);o=obj_divpopupbox;if(o){set_css_attribut(o,'vis',0);o.html('');};o=obj_divpopupboxsite;if(o&&!i){set_css_attribut(o,'vis',0);o.html('');};os_display_popuploader(false);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function js_get_part_plus(other){try{myApp.line=99;var tagfct={'file':script_common_base,'fct':'js_get_part_plus(other)'},stop=common_base_stop;var o,i,ma=myApp,plus=contact=legacy=logo=style='';var imgout='';if(!other){if(ma.kislocalsite&&ma.kdir_www=='dev')plus='
'+imgout+'
';}else{other=other.split('/');if(other&&(other[0]=='site0'||other[0]=='logo0')){var newimgout=imgout;contact='';legacy='';ma.ksubtypeiservice=other[0]+'/'+other[1]+'/'+other[2];o=$Prot('popupmain');if(o){o.style.backgroundColor='#fefefe';o.style.opacity='0.80';o.style.filter='Alpha(opacity=80)';};switch(other[2]){case'sitecw':legacy='';newimgout=imgout.replace('var x=null;','set_css_attribut(\'contenu_pied_de_page_fixe'+other[1]+'\',\'vis\',0);');break;case'siteshc':$Prot('contenu_pied_de_page_fixe').style.zIndex=1000000;o=$Prot('popupmain');if(o){o.style.backgroundColor='transparent';o.style.opacity='';o.style.filter='';};break;};$Prot('contenu_pied_de_page_fixe').style.zIndex=1000000;var td='xyzw';plus='';plus+=(contact?td.replace('xyzw',contact):'');plus+=(legacy?'':'');plus+=(newimgout?'':'');plus+='
'+legacy+'
'+newimgout+'
';plus+=logo;i=parseInt($('#popuploader').css('zIndex'));}};return(plus);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};myApp.set_display_of_popup=function(boxtype,result,visibility,other,index){try{myApp.line=174;var tagfct={'file':script_common_base,'fct':'myApp.set_display_of_popup=function(boxtype,result,visibility,other,index)'},stop=common_base_stop;var o,div,txtdisplay='display';var txtvisibility='visibility';var obj_popupmain=$('#popupmain');var obj_divpopupbox=$('#div_popup_box');var obj_divpopupboxsite=$('#div_popup_box_for_site');var obj_table_popup_content=$('#table_popup_content');var obj_box_login=$('#box_login');var message=$('#table_popup_message');o=$('#divpapers');if(o)o.css({txtdisplay:myApp.kcssnone});o=$('#divcertificate');if(o)o.css({txtdisplay:myApp.kcssnone});o=$('#divdelivery');if(o)o.css({txtdisplay:myApp.kcssnone});o=$('#img_bar_stop');if(o)o.css({txtdisplay:myApp.kcssnone});var block;var x=findlast('block')+1;for(var i=0;i');document.getElementById("frame_video_top_right_nao").style.visibility=(!how?myApp.kcssvisible:myApp.kcsshidden);};if(obj_panel){obj_panel.style.visibility=(how?myApp.kcssvisible:myApp.kcsshidden);obj_panel.style.zIndex=obj_main.style.zIndex+1;obj_login.style.visibility=obj_panel.style.visibility;obj_texterror.style.visibility=obj_panel.style.visibility;if(obj_video_preview&&!how){obj_video_preview.src='';}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};myApp.display_site=function(how,main,index){try{myApp.line=530;var tagfct={'file':script_common_base,'fct':'myApp.display_site=function(how,main,index)'},stop=common_base_stop;var obj_main=$Prot(main);if(obj_main){obj_main.style.visibility=(how?myApp.kcssvisible:myApp.kcsshidden);obj_main.style.zIndex=index+1;};if(obj_panel){}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function display_form(){try{myApp.line=548;var tagfct={'file':script_common_base,'fct':'display_form()'},stop=common_base_stop;var o=$("#formID");if(o)if(affiche==false){o.fadeIn("slow");affiche=true;}else{o.slideUp('slow');affiche=false;};$("html").animate({scrollTop:$(document).height()},"slow");}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};myApp.display_message_popup=function(test,txtok,txterror,txtwarning,id){try{myApp.line=567;var tagfct={'file':script_common_base,'fct':'myApp.display_message_popup=function(test,txtok,txterror,txtwarning,id)'},stop=common_base_stop;var warning=txtwarning,container=(id?$('#'+id):$('#'+'table_popup_message'));if(container){var bgcolor=(warning?'orange':(test?'green':'red')),color=(warning?'black':(test?'white':'white')),msg=(warning&&txtwarning!='!'?txtwarning:(test?txtok:txterror));container.css({'background':bgcolor});container.css({'color':color});container.html(msg);container.attr('title',msg);}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function download_document(what,name){try{myApp.line=582;var tagfct={'file':script_common_base,'fct':'download_document(what,name)'},stop=common_base_stop;var result;switch(what){case'date':result=myApp.AGE.split('/');$("#year"+name).val(result[2]);$Prot("month"+name).selectedIndex=result[1]-1;$Prot("day"+name).selectedIndex=result[0]-1;break;default:}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};myApp.periodeclignotementFading='';myApp.clignotementFadingsigne=-1;myApp.clignotementFadingname='LblClignotant';var clignotementFading=function(){try{myApp.line=602;var tagfct={'file':script_common_base,'fct':'var clignotementFading=function()'},stop=common_base_stop;var signe=myApp.clignotementFadingsigne;var obj=$Prot(myApp.clignotementFadingname);if(!obj){myApp.clignotementFadingsigne=-1;clearInterval(myApp.periodeclignotementFading);return(false);};if(obj.style.opacity>=1){signe=-1;};if(obj.style.opacity<=0){signe=1;};obj.style.opacity=(obj.style.opacity*1)+(signe*0.04);myApp.clignotementFadingsigne=signe;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function clickonchekbox(idobj){try{myApp.line=626;var tagfct={'file':script_common_base,'fct':'clickonchekbox(idobj)'},stop=common_base_stop;if($('#'+idobj).attr('checked')){$('#'+idobj).attr('checked','');}else{$('#'+idobj).attr('checked','checked');};return($('#'+idobj).attr('checked'));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function warning_on_payment(idobj){try{myApp.line=642;var tagfct={'file':script_common_base,'fct':'warning_on_payment(idobj)'},stop=common_base_stop;myApp.payment=clickonchekbox(idobj);$('#href_changeaccount0').hide();if(!confirm('Vous voulez vraiment payer ce service ?')){myApp.payment=clickonchekbox(idobj);return;};if(myApp.payment)$('#href_changeaccount0').show();}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function reload_thispage_html(f_newflag){try{myApp.line=660;var tagfct={'file':script_common_base,'fct':'reload_thispage_html(f_oldflag,f_newflag)'},stop=common_base_stop;var page='#',x=document.location.href.split('?');x=x[0].split('/');alert('ljs:674 '+script_common_base+' \n document.location.href '+document.location.href+' \n x '+x);var basename=x[x.length-1];x=x[x.length-1].split('.');if(x[x.length-1]=='php'){to_change_doc_language(f_newflag);page=document.location.href;}else{page='../'+f_newflag+'/'+basename;};document.location.href=page;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function reload_thispage_by_server(){document.location.href=document.location.href;};function to_change_doc_language(lang,me){try{myApp.line=680;var tagfct={'file':script_common_base,'fct':'to_change_doc_language(lang,me)'},stop=common_base_stop;myApp.klangdoc=lang;SetCookie('klangdoc',lang,30);return(true);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function to_change_service(what,value){try{myApp.line=692;var tagfct={'file':script_common_base,'fct':'to_change_service(what,value)'},stop=common_base_stop;var x=msg=text=t0='',isl=(myApp.kislocalsite);if(isl){t0="[xyz] ";text=' to ['+value+']';};switch(what){case'country':msg=" country ";x=(isl?myApp.kcountry:'');break;case'language':msg=" language ";x=(isl?myApp.klang:'');break;default:msg=" space ";x=(isl?myApp.ktypeiservice:'');break;};if(x!='')msg+=t0.replace('xyz',x);if(!confirm("Are you sure you want to leave this actual "+msg+"!"+text)){return(false);};myApp.line=693;switch(what){case'country':myApp.kcountry=value;SetCookie('kcountry',value,30);break;case'language':myApp.klang=value;SetCookie('klang',value,30);to_change_doc_language(value);break;};document.location.reload(true);return(true);myApp.line=695;var file=myApp.kDIR_xommon+'/'+'general'+'/'+'update_config-c'+'.php';var tags=new Array('?ommon/js/'+tagfct[kjsfile]+',552','','','','','to_change_service(what,value)');var allarray=new Array('what',what,'value',value);myApp.line=700;call_ajax_post(file,allarray,tags,new Array('setcookie',what,value,true));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function to_change_admin_service(what,value){try{myApp.line=720;var tagfct={'file':script_common_base,'fct':'to_change_admin_service(what,value)'},stop=common_base_stop;myApp.line=748;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'what:'+what,'value:'+value),myApp.line+stop);var obj=$Prot('id0_middle_column');var vis=obj.style.visibility;obj.style.visibility=(vis=='hidden'?'visible':'hidden');}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_form_update(index,title,action,top){try{myApp.line=730;var tagfct={'file':script_common_base,'fct':'get_form_update(index,title,action,top)'},stop=common_base_stop;myApp.line=758;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'index:'+index,'title:'+title,'action:'+action,'top:'+top),myApp.line+stop);myApp.display_popupmain('wcrudeadata');}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_if_changed_form_is_valid(idx,message){try{myApp.line=739;var tagfct={'file':script_common_base,'fct':'get_if_changed_form_is_valid(idx,message)'},stop=common_base_stop;if($Prot('confirm'+idx).checked)return(true);var msg='Veuillez cochez la case prévue pour confirmer vos données avant envoi!';if(message){message.css({'background':'red'});message.html(msg);}else alert_for_msg(msg);return(false);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function add_language_to_list(tag,choicelanguages,listlanguages){try{myApp.line=751;var tagfct={'file':script_common_base,'fct':'add_language_to_list(tag,choicelanguages,listlanguages)'},stop=common_base_stop;var array=fg_osjs_get_infos_of_select($Prot(choicelanguages+tag));var tbl=$Prot(listlanguages+tag).value.split(',');var found=false;for(var i=0;i10?100:10));y=indexes.split(','+num+',');w=indexes.split(',,');if(num=filename.length){w=w[w.length-1].replace(',','');listindexes.value=','+w+',';break;}else if(y.length==1){listindexes.value+=','+num+',';break;}};}};myApp.line=724;if(filename[num]){o=$Prot('id_linkbannerimg_'+publicity);if(o){o.title=links[num];o.href=links[num];};x.src=dirimg+'/'+filename[num];}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function load_bannerimg_publicity0(){try{myApp.line=993;var tagfct={'file':script_common_base,'fct':'load_bannerimg_publicity0()'},stop=common_base_stop;if($.isFunction(window.actualize_bannerimg_publicity0)){var temp=(myApp.tempostart?myApp.tempostart:parent.myApp.tempostart);setInterval('actualize_bannerimg_publicity0()',temp);}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function initialize_multiple_select(selectname,select1,select2,titlelist2,options_list2,options_list3,announcestyle){try{myApp.line=982;var tagfct={'file':script_common_base,'fct':'initialize_multiple_select(selectname,select1,select2,titlelist2,options_list2,options_list3,announcestyle)'},stop=common_base_stop;myApp.line=1023;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile],'selectname='+selectname),myApp.line+stop);function set_choices_multiple_select(selectname,select){var objchoice=document.getElementById('choice'+selectname);if(objchoice)objchoice.innerHTML='';var x=document.getElementById('list1cat');var i=x.selectedIndex;objchoice.innerHTML+=x.options[i].value+'::';x=document.getElementById(slist2);i=x.selectedIndex;objchoice.innerHTML+=x.options[i].value+'::';x=document.getElementById(slist3);i=x.selectedIndex;objchoice.innerHTML+=x.options[i].value+'::';};if(myApp.dbl_list[selectname])return(true);myApp.dbl_list[selectname]=new Object();var txtsl2=titlelist2;myApp.dbl_list[selectname][select2]={"administration":['impots','CAF'],"suppliers":['employeur','health','bank'],"customers":['announces'],"others":['amis','family','loisirs','cadeaux']};myApp.dbl_list[selectname].scontent={"impots":'www.marplo.net/ajax/',"CAF":'www.marplo.net/jocuri/',"employeur":'www.marplo.net/anime/',"health":'coursesweb.net/php-mysql/',"bank":'coursesweb.net/javascript/',"announces":'coursesweb.net/flash/',"amis":'coursesweb.net/flash/',"family":'coursesweb.net/flash/',"loisirs":'coursesweb.net/flash/',"cadeaux":'coursesweb.net/flash/'};myApp.dbl_list[selectname].getSelect=function(slist,option){if(myApp.dbl_list[selectname][slist][option]){if(slist=='scontent'){myApp.line=1097;myDebug._alert(new Array(tagfct[kjsfct],myApp.line,tagfct[kjsfile]),myApp.line+stop);var itemcontent=$Prot('itemcontent');if(!itemcontent)return(false);itemcontent.innerHTML=myApp.dbl_list[selectname][slist][option];}else if(slist==select2){var addata='';for(var i=0;i'+myApp.dbl_list[selectname][slist][option][i]+'';};$Prot(select2).innerHTML=txtsl2+' ';}}else if(slist==select2){$Prot(select2).innerHTML='';}};var o=$Prot(select1);if(o){o.selectedIndex=1;myApp.dbl_list[selectname].getSelect(select2,o.value);}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function init_tables(textinit,name,actions){try{myApp.line=1126;var tagfct={'file':script_common_base,'fct':'init_tables(textinit,name,actions)'},stop=common_base_stop;var x,y,w,n,first,num,i,j,z=textinit.split('#'),o=myApp.dbl_list[name];for(i=0;i=3){first=parseInt(y[1]);x=y[2].split(',');for(j=0;jo['last'])o['last']=n;}};}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function display_result_infos(name,value){try{myApp.line=1162;var tagfct={'file':script_common_base,'fct':'display_result_infos(name,value)'},stop=common_base_stop;var o=document.getElementById('result'+name);if(o)o.innerHTML=value;}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function display_action_infos(name,num,idx){try{myApp.line=1169;var tagfct={'file':script_common_base,'fct':'display_action_infos(name,num,idx)'},stop=common_base_stop;var x,o=myApp.dbl_list[name];if(!idx)return(false);x=o['actions'+name+(idx.substring(0,1)!='.'?'.':'')+idx];if(x){o=document.getElementById('action'+num+name);if(o)o.value=x;display_result_infos(name,x);}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function build_html_select(name,num,idx){try{myApp.line=1185;var tagfct={'file':script_common_base,'fct':'build_html_select(name,num,idx)'},stop=common_base_stop;var addata,x,y,z,i,first,o=myApp.dbl_list[name],last=o['last'];myApp.line=1037;var tag='list'+num+name+(idx?'.'+idx:'');if(!o[tag]){myApp.line=1041;o=document.getElementById('list'+num+name);if(o)o.style.display=myApp.kcssnone;display_action_infos(name,num-1,idx);}else{myApp.line=1052;z=o[tag];for(i=0;i'+y[1]+'';}};if(addata){myApp.line=1063;x='list'+num+name;var select='';o=document.getElementById('c'+x);if(o)o.innerHTML=' '+select;o=document.getElementById(x);if(o){o.selectIndex=0;o.style.display=myApp.kcssinline;}};myApp.line=1071;display_action_infos(name,num,first);return(first);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function build_multiple_select(num,option,name){try{myApp.line=1231;var tagfct={'file':script_common_base,'fct':'build_multiple_select(num,option,name)'},stop=common_base_stop;var o=myApp.dbl_list[name],last=o['last'],x;myApp.line=142;var y=option.split('|'),idz=y[0];if(num>0&&num';html+='
';var selects=html;var result='';if(actions){html='
';html+='
';for(i=1;i<=last;i++)html+='';var result=html;};o=document.getElementById(id);if(o){o.innerHTML=selects+result;var x=build_html_select(name,1);for(i=2;i<=last;i++)x=build_html_select(name,i,x);};return(new Array(selects,result));}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function change_left_panel_of_toolbar(div,right,left,numero){try{myApp.line=1285;var tagfct={'file':script_common_base,'fct':'change_left_panel_of_toolbar(div,right,left,numero)'},stop=common_base_stop;var par=false,o=$Prot(div),me=$Prot('left_panel'+numero);if(!o){o=get_id_of_object_of_iframe(div);if(!o)gest_alert({'fct':tagfct[kjsfct],'line':1113,'str':'div:\n\n'+div,'test':true});else{me=get_id_of_object_of_iframe('left_panel'+numero);par=true;}};var pos=me.src.split('/leftfleche.bmp');if(!par){divphoto=$Prot('divphoto'+numero);divlinks=$Prot('divlinks'+numero);}else {divphoto=get_id_of_object_of_iframe('divphoto'+numero);divlinks=get_id_of_object_of_iframe('divlinks'+numero);};o=$Prot('id_div_author'+numero);if(pos.length>1){o.style.left='87.5%';divphoto.style.display=myApp.kcssinline+'-block';divlinks.style.display=myApp.kcssinline+'-block';me.src=right;}else {o.style.left='98.5%';divphoto.style.display=myApp.kcssnone;divlinks.style.display=myApp.kcssnone;me.src=left;}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function set_params_from_iframe(what,value){try{myApp.line=1343;var tagfct={'file':script_common_base,'fct':'set_params_from_iframe(what,value)'},stop=common_base_stop;switch(what){case'iframe':myApp.CONNECTED[what]=value;break;}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function get_params_to_iframe(what){try{myApp.line=1352;var tagfct={'file':script_common_base,'fct':'get_params_to_iframe(what)'},stop=common_base_stop;switch(what){case'myApp.CONNECTED':return(myApp.CONNECTED);break;}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function run_ByRei_jScroller2(go,tag,width){try{myApp.line=1361;var tagfct={'file':script_common_base,'fct':'run_ByRei_jScroller2(go,tag,width)'},stop=common_base_stop;if(go){var s='scrollpaper',o=$Prot(s+tag);if(o){o.style.width=width;o.style.position=o.style.top=o.style.left='';};o=$Prot('div'+s+tag);if(o){ByRei_jScroller2.add(o,'up');o.style.width=width;o.style.overflow='';}};}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function init_ByRei_jScroller2(){return(true);};