/* redirect Lorsque l'on clique sur le menu de gauche cette fonction est appelée pour rediriger vers la bonne page. Parameters : sValue => url return :none */ function redirect(sValue){self.location.href = sValue;} function PopUpThinWindow(sUrl){window.open(sUrl, "", "alwaysRaised=yes,dependant=yes,directories=no,hotkeys=no,location=no,menubar=no,personalbar=no,resizable=yes,toolbar=no,titlebar=no,scrollbars=yes")} function PopUpBottomMenuWindow(sUrl){window.open(sUrl, "", "alwaysRaised=yes,dependant=yes,directories=no,hotkeys=no,location=no,menubar=yes,personalbar=no,resizable=yes,width=650,height=650,toolbar=no,titlebar=no,scrollbars=yes")} function ShowQuestionnairePopUp(sUrl, bRedirectedOnclose) { window.open("/" + sLanguage + "/questionnaire/ToQuestionnaire.asp?sProjectUrl=" + URLencode(sUrl) + "&bRedirectedOnclose=" + bRedirectedOnclose, "QuestionnairePopUp", "alwaysRaised=yes,dependant=yes,directories=no,height=100,width=350,left=200,top=240,hotkeys=no,location=no,menubar=no,personalbar=no,resizable=no,toolbar=no,titlebar=no") } function RedirectToQuestionnaire(sGuid){window.location.href = "/" + sLanguage + "/questionnaire/profilingQuestionnaire.asp?sProjectGUID=" + sGuid;} function CheckIfProfile(sProjectUrl) { ShowQuestionnairePopUp(sProjectUrl, "True"); } /* changeControl when it's at the end of the textbox then change to the another textbox */ // this value is set to true if the user select something bSelect = false; function changeControl(thisObject){ var ie4 = (document.all)? true:false var ns6 = document.getElementById&&!document.all if(((ie4)||(ns6))&&bSelect == false){ var sValue sValue = thisObject.value ; if(sValue.length == thisObject.maxLength){ var InputCollectionArray = document.all.tags('INPUT') for(i=0 ; i < InputCollectionArray.length ; i++){ if(InputCollectionArray(i).name == thisObject.name){ //alert(thisObject.maxLength) InputCollectionArray(i + 1).focus() //InputCollectionArray(i + 1).select() return true;}}}} bSelect = false;} function selectValue(){bSelect = true;} function URLencode(sStr) { return escape(sStr).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27').replace(/\//g,'%2F').replace(/\./g,'DOT'); } function ValidateSendToSmtp() { { var agree=confirm("Are you sure you want to send this campaign?/Êtes-vous certain de vouloir envoyer cette campagne?"); if (agree) { form.action.value="transfer" } else return false ; } } function DeleteCampaign() { { var agree=confirm("Are you sure you want to delete this campaign?/Êtes-vous certain de vouloir supprimer cette campagne?"); if (agree) { form.action.value="Deleted" } else return false ; } }