/**
	testController.js
	author: John Williams
	version 1.0
**/
var questionArray = new Array();
var selectionArrayHigh = new Array();
var selectionArrayLow = new Array();

function questionObject(){
	this.score = null;
	this.question = null;
	this.description = null;
}

questionObject.prototype.setScore = function setScore(strScore){
	this.score = strScore;
}

questionObject.prototype.getScore = function getScore(){
	return this.score;
}

questionObject.prototype.setQuestion = function setQuestion(strQuestion){
	this.question = strQuestion;
}

questionObject.prototype.getQuestion = function getQuestion(){
	return this.question;
}

questionObject.prototype.setDescription = function setDescription(strDescription){
	this.description = strDescription;
}

questionObject.prototype.getDescription = function getDescription(){
	return this.description;
}

function processForm(objForm){
	selectionArrayHigh.length = 0;
	selectionArrayLow.length = 0;
	var tmp = "";
	var formLen = objForm.elements.length;
	for(var i = 0; i < formLen; i++){
		if(objForm.elements[i].type == "checkbox" && objForm.elements[i].checked){
			if(questionArray[objForm.elements[i].name].getScore() == "high"){
				selectionArrayHigh[selectionArrayHigh.length] = questionArray[objForm.elements[i].name];
			}else{
				selectionArrayLow[selectionArrayLow.length] = questionArray[objForm.elements[i].name];
			}
			//tmp += "\n" + questionArray[objForm.elements[i].name].getScore();
		}
	}
	//alert(tmp)
	openResultsWindow();
}

function openResultsWindow(){
	var newWin = window.open("differentiation-assessment-results.html","newWin","scrollbars=yes, width=700, height=700");
	newWin.focus();
}

questionArray["q1"] = new questionObject();
questionArray["q1"].setScore("high");
questionArray["q1"].setQuestion("Merged with another firm.");
questionArray["q1"].setDescription("This approach is a complex marketplace move, and requires two firms to deeply integrate their go-to-market infrastructures.  Merging with another firm is difficult to copy, which can make it a potent differentiator.");

questionArray["q2"] = new questionObject();
questionArray["q2"].setScore("low");
questionArray["q2"].setQuestion("Acquired another firm.");
questionArray["q2"].setDescription("Unlike merging with another firm, this strategy does not imply that the acquiring firm necessarily will do anything \"different\" except for being \"bigger.\"  Too many PSFs have learned the hard way that clients may not view \"bigger\" as being \"more valuable.\"");

questionArray["q3"] = new questionObject();
questionArray["q3"].setScore("low");
questionArray["q3"].setQuestion("Created new divisions or subsidiary companies.");
questionArray["q3"].setDescription("We suspect our respondents found this initiative was a \"low success\" differentiation method because their clients couldn't see how it brought them more value.");

questionArray["q4"] = new questionObject();
questionArray["q4"].setScore("low");
questionArray["q4"].setQuestion("Reorganized practices or lines of business.");
questionArray["q4"].setDescription("This strategy is inherently an internal one that too often benefits only the firm itself and not its marketplace.  If a differentiation strategy is not compellingly attractive for clients, it will likely not be successful.");

questionArray["q5"] = new questionObject();
questionArray["q5"].setScore("low");
questionArray["q5"].setQuestion("Sold parts of the firm.");
questionArray["q5"].setDescription("Although this strategy was scored as \"low success,\" it actually implies that a firm is thinking critically about the value it brings to the marketplace.  This is a strong first step toward becoming truly different.");

questionArray["q6"] = new questionObject();
questionArray["q6"].setScore("low");
questionArray["q6"].setQuestion("Developed a new positioning.");
questionArray["q6"].setDescription("We suspect this approach was scored as \"low-success\" because most PSFs don't truly understand the concept of \"positioning,\" how it relates to differentiation, and what it will mean for their operations.");

questionArray["q7"] = new questionObject();
questionArray["q7"].setScore("high");
questionArray["q7"].setQuestion("Embarked on an advertising campaign.");
questionArray["q7"].setDescription("Many professional service sectors are new to the act of advertising.  Our respondents may have found that being an early mover in advertising helped them appear different.  This method, however, may not help a firm be truly different.");

questionArray["q8"] = new questionObject();
questionArray["q8"].setScore("high");
questionArray["q8"].setQuestion("Embarked on a public relations campaign.");
questionArray["q8"].setDescription("Our respondents reported this to be a high-success differentiation strategy.  But they should beware of promoting a difference that isn't really a powerful one!  With a public relations campaign inviting scrutiny, discerning clients will soon make their own opinions known.");

questionArray["q9"] = new questionObject();
questionArray["q9"].setScore("high");
questionArray["q9"].setQuestion("Created a new visual identity (logo, letterhead, etc.).");
questionArray["q9"].setDescription("By itself, a new visual identity is NOT a differentiator.  The respondents that scored this as \"high success\" had likely developed a potent differentiation strategy before creating their new visual identity.");

questionArray["q10"] = new questionObject();
questionArray["q10"].setScore("low");
questionArray["q10"].setQuestion("Communicated our firm's positioning through a new motto or tag line.");
questionArray["q10"].setDescription("A new tag line or motto, if not supported by a market-driven infrastructure that builds on a robust differentiation strategy, will soon ring hollow.");

questionArray["q11"] = new questionObject();
questionArray["q11"].setScore("high");
questionArray["q11"].setQuestion("Hired specialized individuals.");
questionArray["q11"].setDescription("No wonder our respondents found this differentiation strategy to be so successful!  The valuable talent of thought-leading experts cannot be copied easily.");

questionArray["q12"] = new questionObject();
questionArray["q12"].setScore("low");
questionArray["q12"].setQuestion("Trained professionals to follow our proprietary methodologies.");
questionArray["q12"].setDescription("This internally-focused process is an advantageous differentiation approach only if: 1) the methodologies are truly proprietary; 2) the methodologies are valuably differentiated; and 3) the professionals have the talent to develop new methodologies once the current ones become commodities.");

questionArray["q13"] = new questionObject();
questionArray["q13"].setScore("low");
questionArray["q13"].setQuestion("Developed new-to-the-world services.");
questionArray["q13"].setDescription("Our respondents probably scored this as \"low success\" because they ran into the real-life hurdles of innovation.  Nevertheless, developing new services can be a powerful differentiation strategy, because it's rarely done, and offers the possibility of a first mover advantage.");

questionArray["q14"] = new questionObject();
questionArray["q14"].setScore("high");
questionArray["q14"].setQuestion("Improved or evolved our current services.");
questionArray["q14"].setDescription("The service offerings of many PSFs are so similar to their competitors' offerings as to appear undistinguishable from each other.  PSFs that take the opportunity to evolve their services will enjoy the competitive advantage that comes from staying ahead of their clients' emerging needs.");

questionArray["q15"] = new questionObject();
questionArray["q15"].setScore("low");
questionArray["q15"].setQuestion("Repackaged current services.");
questionArray["q15"].setDescription("No wonder this undifferentiated approach scored poorly.  Clients are increasingly capable of discerning the difference between window dressing and truly valuable service offerings.");

questionArray["q16"] = new questionObject();
questionArray["q16"].setScore("low");
questionArray["q16"].setQuestion("Eliminated services.");
questionArray["q16"].setDescription("Despite our respondents' lack of enthusiasm for this differentiation strategy, eliminating services actually signals a willingness to move beyond commoditization toward a more specialized service portfolio.");
  
questionArray["q17"] = new questionObject();
questionArray["q17"].setScore("high");
questionArray["q17"].setQuestion("Added new-to-our-firm services that are within our industry.");
questionArray["q17"].setDescription("As long as the new services are: 1) highly valuable to clients; 2) distinct from a firm's competitors; and 3) expertise-oriented (making them difficult to copy), this is a potentially advantageous differentiation strategy.");

questionArray["q18"] = new questionObject();
questionArray["q18"].setScore("high");
questionArray["q18"].setQuestion("Added new-to-our-firm services that blend into the services of another industry, i.e., accounting firms offering litigation support.");
questionArray["q18"].setDescription("This differentiation strategy is deemed to be high-success because it involves all the elements of a solid market-driven infrastructure:  Looking Out for marketplace shifts; Digging Deeper to build new go-to-market processes and tools; and Embedding Innovation to ensure the continuation of a competitive edge.");

questionArray["q19"] = new questionObject();
questionArray["q19"].setScore("low");
questionArray["q19"].setQuestion("Developed new risk sharing arrangement with clients.");
questionArray["q19"].setDescription("The PSFs that used this approach discovered that while risk-sharing may be an important relationship marketing approach, it may not be a potent differentiation strategy.");

questionArray["q20"] = new questionObject();
questionArray["q20"].setScore("high");
questionArray["q20"].setQuestion("Implemented a formal relationship management program to strengthen our bonds with current clients.");
questionArray["q20"].setDescription("As more PSFs rush to implement relationship-management programs with clients, this approach may lose some of its potency as a truly non-replicable differentiator.");

questionArray["q21"] = new questionObject();
questionArray["q21"].setScore("high");
questionArray["q21"].setQuestion("Entered into joint ventures, alliances or referral networks with firms that extend our services.");
questionArray["q21"].setDescription("This is a high-success differentiation strategy because of its \"extend our services\" foundation (which can uniquely benefit clients) and its difficult-to-copy elements (which can pre-empt rivals).");

questionArray["q22"] = new questionObject();
questionArray["q22"].setScore("low");
questionArray["q22"].setQuestion("Increased our prices.");
questionArray["q22"].setDescription("If a service offers unique and unquestioned value, clients may not object to increased prices.  But as our study's participating PSFs found, without a truly distinct, compellingly attractive service to go with the increased price, this strategy cannot hold its own as a differentiation approach.");

questionArray["q23"] = new questionObject();
questionArray["q23"].setScore("low");
questionArray["q23"].setQuestion("Decreased our prices.");
questionArray["q23"].setDescription("Most PSFs automatically equate this little-used differentiation approach with failure.  And yet, for commoditized services, this strategy may make good sense, especially if combined with the introduction of valuably unique, higher-priced new services.");

questionArray["q24"] = new questionObject();
questionArray["q24"].setScore("low");
questionArray["q24"].setQuestion("Added new variables to our prices.");
questionArray["q24"].setDescription("Most PSFs find the science of pricing to be a challenge; thus it's no surprise that our respondents deemed this approach to be low success in terms of differentiation.");
 
questionArray["q25"] = new questionObject();
questionArray["q25"].setScore("low");
questionArray["q25"].setQuestion("Used new techniques and tools to \"deliver\" our services (i.e., printed reports now delivered via CD-ROM).");
questionArray["q25"].setDescription("The many PSFs that reported initiating this strategy discovered too late that \"service delivery\" is one of the most easily copied differentiation methods.  (If it's effortless for one firm to implement, it's probably effortless for others to implement too.)");

questionArray["q26"] = new questionObject();
questionArray["q26"].setScore("low");
questionArray["q26"].setQuestion("Increased the speed of our service delivery.");
questionArray["q26"].setDescription("One firm speeds up its service delivery (a laudable initiative that clients might value).  For a while, it enjoys the distinction of being \"the only\" firm to do so.  Then its rivals speed up.  Soon every firm looks the same again.  PSFs that initiate this differentiation strategy had better find a more difficult-to-copy strategy than this one, lest they end up in a vicious game of \"me-too.\"");

