function OpenRegister(pUpdateMode,pMemberType){ if(typeof(pUpdateMode)=="undefined")pUpdateMode=0; if(typeof(pMemberType)=="undefined")pMemberType="sportif"; document.memberRegisterType=pMemberType; if(typeof(_mbreChoice)!="undefined")_mbreChoice.Hide(); register_member_loaded=function(){ _register_member_arrayFieldOk=new Array(); havetoclosedisabled=false; if(OpenDisabled())havetoclosedisabled=true; if(pUpdateMode==0){ if(typeof(urchinTracker)=="function"){urchinTracker("_Ouverture_fenetre_nouvelle_inscription")}; }else{ if(typeof(urchinTracker)=="function"){urchinTracker("_Ouverture_fenetre_modification_inscription")}; } _register=new Windoz("/member/register.php?memberType="+pMemberType+"&updateMode="+pUpdateMode,true); if(havetoclosedisabled){ _register.OnClose=function(){ _disabled.Hide(); } } _register.OnShown=function(){ _register_member_CheckAll(pUpdateMode); } } formTools_loaded=function(){ LoadScript("/scripts/register_member.js"); } LoadScript("/commun/scripts/formTools.js"); } function OpenTypeMemberChoice(){ OpenDisabled(); _mbreChoice=new Windoz("/member/type_choices.php"); _mbreChoice.OnClose=function(){ _disabled.Hide(); } } function Submit_Login(pCheckFunction){ if(typeof(pCheckFunction)=="undefined" || pCheckFunction=="" || pCheckFunction==null)pCheckFunction="CheckLoginTestResult()"; document.getElementById('login_test_info').innerHTML=''; var randomnumber=Math.floor(Math.random()*100000000000); var aBox=new AjaxBox('POST',"/commun/login/login_act_login.php?cachekiller="+randomnumber,'login_test_info',form2ValuesString(document.forms['_login_form_ajax'])+"&ajaxmod=1",pCheckFunction); aBox.XHRPOST(); } function CheckLoginTestResult(pSuccessAction,pErrorAction){ if(typeof(pSuccessAction)=="undefined" || pSuccessAction=="" || pSuccessAction==null)pSuccessAction=function(){ReloadLoginPart();}; if(typeof(pErrorAction)=="undefined" || pErrorAction=="" || pErrorAction==null){ pErrorAction=function(){ OpenDisabled(); document.messageErroLogin=new Windoz('/commun/message.php?label_message=mts_login_error&action=document.messageErroLogin.Hide()&buttons=OK'); document.messageErroLogin.OnClose=function(){ _disabled.Hide(); } } } if(document.getElementById('login_test_info').innerHTML=="1"){ pSuccessAction(); }else{ pErrorAction(); } } function ReloadLoginPart(){ document.getElementById('lien_inscription').innerHTML=""; document.getElementById('lien_inscription2').innerHTML=""; var aBox=new AjaxBox('GET','/parts/login.php','cadre_login','',''); aBox.XHRGET(); } function ShowUserAccount(pMType,pPostule){ document.memberRegisterType=pMType; document.memberPostule=pPostule; OpenDisabled();LoadScript("/scripts/sport_manage.js"); formTools_loaded=function(){ _register_member_arrayFieldOk=new Array(); LoadScript("/scripts/register_member.js"); } register_member_loaded=function(){ _register_member_CheckAll(1,document.memberPostule); } document.UserAccount=new Windoz('/user_account.php?updateMode=1',null,null,null,null,null,null,'Mon compte'); document.UserAccount.OnShown=function(){ LoadScript("/commun/scripts/formTools.js"); } document.UserAccount.OnClose=function(){ _disabled.Hide(); } } function ShowPartAccount(pThis){ if(document.currentOngletAccountOn)document.currentOngletAccountOn.style.color="#888888"; document.currentOngletAccountOn=pThis; pThis.style.color="#000000"; endFunction=""; if(pThis.id=="sportif_presentation" || pThis.id=="addict_presentation" || pThis.id=="recruteur_presentation")endFunction='_register_member_CheckAll(1,'+document.memberPostule+')'; if(pThis.id=="sportif_video"){ LoadScript("/commun/file_process/handlers.js"); LoadScript("/commun/file_process/fileprogress.js"); LoadScript("/scripts/videos_manage.js"); endFunction="LoadSWFUpload()"; } if(pThis.id=="sportif_document")LoadScript("/scripts/document_manage.js"); if(pThis.id=="sportif_palmares" || pThis.id=="sportif_email_boost"){ _commonTools_loaded=function(){ LoadScript("/commun/scripts/lignePrimaire.js"); } _lignePrimaire_loaded=function(){ if(pThis.id=="sportif_palmares")LoadScript("/scripts/list_utilisateur_palmares.js"); if(pThis.id=="sportif_email_boost")LoadScript('/scripts/list_utilisateur_email_boost.js'); } _list_utilisateur_palmares_loaded=function(){ GetXMLDocUtilisateur_palmares(); } _list_utilisateur_email_boost_loaded=function(){ GetXMLDocUtilisateur_email_boost(); } LoadScript("/commun/scripts/commonTools.js"); document.selectedElmtArray=Array(); } var aBox=new AjaxBox('GET',"/display_account_part.php?updateMode=1&part="+pThis.id,'account_main_container','',endFunction); aBox.XHRGET(); } function LoadSWFUpload(){ var settings_object = { upload_url : "/video/video_receipt.php?idu=0&cdup=70e89e135c4b56953611707c68d26ca1", flash_url : "/commun/file_process/swfupload.swf", file_size_limit : "150 MB", button_placeholder_id : "divswfuploadButton", post_params: {"PHPSESSID" : ""}, file_types : "*.*", file_types_description : "All Files", file_upload_limit : 1, file_queue_limit : 1, custom_settings : { progressTarget : "fsUploadProgress", cancelButtonId : "btnCancel" }, debug: false, // Button settings button_width: "164", button_height: "22", button_image_url: "/images/buttonupload.gif", // The event handler functions are defined in handlers.js file_queued_handler : fileQueued, file_queue_error_handler : fileQueueError, file_dialog_complete_handler : fileDialogComplete, upload_start_handler : uploadStart, upload_progress_handler : uploadProgress, upload_error_handler : uploadError, upload_success_handler : uploadSuccess, upload_complete_handler : uploadComplete, queue_complete_handler : queueComplete }; swfu = new SWFUpload(settings_object); } function TestBirthDate(){ _register_member_CharMin(document.getElementById('_member_age'),10) } if(typeof(open_register_loaded)=="function"){ open_register_loaded(); } //2010© Copyright Menta Solutions. All rights reserved.