var createSolutionUrl = "http://advisors.dell.com/AdvisorWeb/CreateSolution.aspx"; var currentStep = null; var overrideNextStep = ''; var isUserInputValid = true; var AnswerType = {CheckBox:0,RadioButton:1,NumericTextBox:2,FreeTextBox:3,DropDownList:4,List:5,AndCheckBox:6,Slider:7,RangeSlider:8}; var CommonMessages = { Invalid_Value_For : "Invalid value {0} for {1}.", Enter_A_Value_For : "Enter a value for {0}.", Is_Not_A_Number : "{0} is not a number.", Value_Must_Be_Between : "Value must be between {0} and {1}", Select_An_Option : "Please select an option.", None : "None" }; var advisor = { id : "afb60df1-65a2-4634-8fa2-860b978c26a0", name : "Dell GreenPrint Advisor", version : 11, initialStep : "Step0", disclaimer: "", specVersion : "", country : "us", language : "en", customerSet : "555", scriptMode : false, getPostData : function(stepIds) { // overload - if stepIds array is specified, only return postData for these steps; otherwise, return all if (stepIds == null) { stepIds = []; for (var i=0; i < this.steps.length; i++) stepIds.push(this.steps[i].id); } var postString = 'advisor=afb60df1-65a2-4634-8fa2-860b978c26a0-04a5f6' + '&c=' + encodeURIComponent(this.country) + '&l=' + encodeURIComponent(this.language) + '&cs=' + encodeURIComponent(this.customerSet); for (var i=0; i < stepIds.length; i++) { var stepId = stepIds[i]; var step = this.getStepById(stepId); if (step) postString += '&' + step.getPostData(); } return postString; }, restoreFromPostData : function(postData) { var queryParams = postData.toQueryParams(); if(typeof(Step0)=="object") Step0.setFromPostData(queryParams); if(typeof(Step1a)=="object") Step1a.setFromPostData(queryParams); if(typeof(Step1b)=="object") Step1b.setFromPostData(queryParams); if(typeof(Step1c)=="object") Step1c.setFromPostData(queryParams); if(typeof(Step1d)=="object") Step1d.setFromPostData(queryParams); if(typeof(Step33)=="object") Step33.setFromPostData(queryParams); if(typeof(Step1e)=="object") Step1e.setFromPostData(queryParams); if(typeof(Step1)=="object") Step1.setFromPostData(queryParams); if(typeof(Step2a)=="object") Step2a.setFromPostData(queryParams); if(typeof(Step2)=="object") Step2.setFromPostData(queryParams); if(typeof(Step3)=="object") Step3.setFromPostData(queryParams); if(typeof(Step4)=="object") Step4.setFromPostData(queryParams); if(typeof(Step5)=="object") Step5.setFromPostData(queryParams); if(typeof(Step6)=="object") Step6.setFromPostData(queryParams); if(typeof(Step7)=="object") Step7.setFromPostData(queryParams); if(typeof(Step8)=="object") Step8.setFromPostData(queryParams); if(typeof(Step9)=="object") Step9.setFromPostData(queryParams); if(typeof(Step10)=="object") Step10.setFromPostData(queryParams); if(typeof(Step11)=="object") Step11.setFromPostData(queryParams); if(typeof(Step12)=="object") Step12.setFromPostData(queryParams); if(typeof(Step13)=="object") Step13.setFromPostData(queryParams); if(typeof(Step14a)=="object") Step14a.setFromPostData(queryParams); if(typeof(Step14)=="object") Step14.setFromPostData(queryParams); if(typeof(Step15)=="object") Step15.setFromPostData(queryParams); if(typeof(Step16)=="object") Step16.setFromPostData(queryParams); if(typeof(Step17)=="object") Step17.setFromPostData(queryParams); if(typeof(Step18)=="object") Step18.setFromPostData(queryParams); if(typeof(Step19)=="object") Step19.setFromPostData(queryParams); if(typeof(Step20)=="object") Step20.setFromPostData(queryParams); if(typeof(Step21)=="object") Step21.setFromPostData(queryParams); if(typeof(Step22)=="object") Step22.setFromPostData(queryParams); if(typeof(Step23)=="object") Step23.setFromPostData(queryParams); if(typeof(Step24)=="object") Step24.setFromPostData(queryParams); if(typeof(Step25)=="object") Step25.setFromPostData(queryParams); if(typeof(Step26)=="object") Step26.setFromPostData(queryParams); if(typeof(Step27)=="object") Step27.setFromPostData(queryParams); if(typeof(Step28)=="object") Step28.setFromPostData(queryParams); if(typeof(Step29)=="object") Step29.setFromPostData(queryParams); if(typeof(Step30)=="object") Step30.setFromPostData(queryParams); if(typeof(Step31)=="object") Step31.setFromPostData(queryParams); if(typeof(Step32)=="object") Step32.setFromPostData(queryParams); }, advisorType : "NeedsBasedWizardWithTopologyView", advisorSkinType : "GreenPrint", steps : [], _stepById : [], getStepById : function(stepId) { return this._stepById[stepId]; }, addStep : function(step) { this.steps.push(step); this._stepById[step.id] = step; }, messages : {}, printf : function() { return this.printfArray(arguments); }, printfArray : function(arr) { var num = arr.length; var oStr = arr[0]; for (var i = 1; i < num; i++) { var pattern = "\\{" + (i-1) + "\\}"; var re = new RegExp(pattern, "g"); oStr = oStr.replace(re, arr[i]); } return oStr; }, getElement : function(id) { if (this.scriptMode) { if (typeof(this._dummyVar)=="undefined") this._dummyVar = {}; if (typeof(this._dummyVar[id])=="undefined") this._dummyVar[id] = {}; return this._dummyVar[id]; } else { return document.getElementById?document.getElementById(id):document.all?document.all[id]:document.layers[id]; } } }; function StepStep0() { this.id = "Step0"; this.answerType = AnswerType.CheckBox; this.nextStepId = "Step1a"; this.questionShortText = ""; this.questionFullText = "About You and Your Organization
The first step is for you to share a little bit about yourself. This information will help us customize your experience with the Dell Greenprint Advisor. It also allows us to provide you with the ability to come back to the tool later and update your answers."; this.questionExplanationText = ""; this.HTML="\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n\t \r\n
\r\n About You and Your Organization
The first step is for you to share a little bit about yourself. This information will help us customize your experience with the Dell Greenprint Advisor. It also allows us to provide you with the ability to come back to the tool later and update your answers.\t\t\r\n\t\r\n \r\n \r\n
\r\n\t\r\n \r\n \r\n
\r\n\t\t\r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n GO BACK\r\n \r\n \r\n \r\n\t\t\r\n\t\t
\r\n \r\n \t\t\t\r\n CONTINUE \r\n \r\n\t\t \r\n\t\t   \r\n\t\t\r\n \r\n \r\n \r\n"; this.answers = []; this.validationInfo = { errors : [] }; this.flashFilePath="public/Flash/GreenPrint/layout_Phase_0.swf;public/Flash/GreenPrint/layout_Phase_0.swf"; this.init = function() { for(var i=0; i 0) { html +=""; html += ""; html += ""; html += "
"; var res = []; for(var j=0; j 0) html +=""; html += this.questionShortText; if (jsAction != null && jsAction.length > 0) html += ""; html += ": "; var res = []; for(var j=0; jAbout You and Your Organization"; this.questionExplanationText = ""; this.HTML="\r\n
\r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n\t \r\n
\r\n About You and Your Organization\t\t\r\n\t\r\n \r\n \r\n
\r\n\t\r\n \r\n\t\t\t
\r\n\t\t\t\t\r\n \r\n\t