<!--

var cor = 0;  // number of correct answers
var cText;    // text in cookie
var successful = false;

function EvaluateCQ()
{
  if (document.cookie.length > 0)   // if there are any cookies
     {
     offset = document.cookie.indexOf("Negquiz="); 
     if (offset != -1)   // if cookie exists 
        {
        offset += 8;     // set index of beginning of value (cookie name has 8 chars)
        end = document.cookie.indexOf(",", offset)  // set index of end of cookie value
        if (end == -1) 
           end = document.cookie.length;

        cText = document.cookie.substring(offset, end);
          
        if (cText.charAt(1) == 'C') cor++;
        if (cText.charAt(3) == 'C') cor++;
        if (cText.charAt(5) == 'C') cor++;
        if (cText.charAt(7) == 'C') cor++;
        if (cText.charAt(9) == 'C') cor++;
        if (cText.charAt(11) == 'C') cor++;
        if (cText.charAt(13) == 'C') cor++;
        if (cText.charAt(15) == 'C') cor++;
        if (cText.charAt(17) == 'C') cor++;
        if (cText.charAt(19) == 'C') cor++;
        if (cText.charAt(21) == 'C') cor++;
        if (cText.charAt(23) == 'C') cor++;
        if (cText.charAt(25) == 'C') cor++;
        if (cText.charAt(27) == 'C') cor++;
        if (cText.charAt(29) == 'C') cor++;
        if (cText.charAt(31) == 'C') cor++;
        if (cText.charAt(33) == 'C') cor++;
        if (cText.charAt(35) == 'C') cor++;
        if (cText.charAt(37) == 'C') cor++;
        if (cText.charAt(39) == 'C') cor++;
        successful = true;
        } 
     }

  if (successful == false)
     {
     document.writeln ("<p>Unfortunately, there has been an error that keeps our web site from showing the results of the quiz. &nbsp;This may have happened because your browser does not allow the use of cookies.</p>");
     document.writeln ("<p>Please try to change your cookie settings and re-enter the quiz.  We apologize for the inconvenience.</p>");
     return false;
     }

  return true;
}


function ShowTopResText()
{
  if (successful)  // cookie successfully evaluated?
     {
     document.writeln ("<br />");
     if (cor == 20)  // all 20 answers correct?  Wow!
        {
        document.writeln ("<p><b>Congratulations!  You answered all 20 questions correctly.&nbsp; You can truly consider yourself an experienced and culture-savvy negotiator!</b></p>");
        document.getElementById("QuizResTextArea").style.display= "none";
        }
     else
        {
        if (cor > 1) // at least more than one answer correct?
           {
           document.writeln ("<p>Congratulations!  You answered " + cor + " questions correctly (out of 20 total).&nbsp; ");
      
           if (cor > 16)
              document.writeln ("You can truly consider yourself an experienced, culture-savvy negotiator!&nbsp; However, being globally effective requires a life-long commitment to intercultural discovery and learning.&nbsp; We can help you throughout that journey.</p>");
           else if (cor > 12)
              document.writeln ("You know quite a bit about how to negotiate in other countries and cultures!&nbsp; Let us help you get to the next level, growing your international competence and boosting your global business success.</p>");
           else
              document.writeln ("Your discovery journey towards becoming a culture-savvy negotiator has started.&nbsp; Let us help you get to the next level, growing your international competence and boosting your global business success.</p>");
           }
        else if (cor == 1)
           document.writeln ("<p>Unfortunately, only one of the answers was correct.&nbsp;  Don't despair, though:  we can help you grow your international competence and boost your global business success.</p>");
        else     //  No correct answer given
           document.writeln ("<p>Unfortunately, none of the answers were correct.&nbsp; Don't despair, though: we can help you grow your international competence and boost your global business success.</p>");
        document.writeln ("<p>Here are the answers you missed, as well as an explanation for each of them:</p>");
        }
     }
}


function ShowWrongAnswers()
{
  document.getElementById("QuizBotBox").style.display = "block";

  if ((successful) && (cor < 20))   // question(s) were answered incorrectly
     {
     if (cText.charAt(1) == 'F')
        {
        document.writeln ("<p><b>1. 'If a negotiation in India gets heated because of different objectives, avoid eye contact with your counterpart since it could be read as aggressive and disrespectful.'<br />");
        document.writeln ("</b>This is not true. To the contrary, making eye contact conveys sincerity in India and might therefore help in this case.</p>");
        }
     if (cText.charAt(3) == 'F')
        {
        document.writeln ("<p><b>2. 'Oral commitments can represent legally binding contracts in Germany.'<br />");
        document.writeln ("</b>This is true. Proving oral statements in court can be difficult, though, so the legal risk may not be high.&nbsp; However, most Germans will expect all commitments, whether oral or in writing, to be kept.</p>");
        }
     if (cText.charAt(5) == 'F')
        {
        document.writeln ("<p><b>3. 'Venezuelans communicate quite directly.&nbsp; They will usually let you know right away if they don't like the terms and conditions of your proposal.'<br />");
        document.writeln ("</b>This is true. Venezuelans tend to be more direct than other Latin Americans.</p>");
        }
     if (cText.charAt(7) == 'F')
        {
        document.writeln ("<p><b>4. 'Decision-making in Ireland is often very quick, assuming you are dealing with the right person.'<br />");
        document.writeln ("</b>This is true. Irish organizations are often very hierarchical, though, so verify first that you are indeed dealing with the decision maker.</p>");
        }
     if (cText.charAt(9) == 'F')
        {
        document.writeln ("<p><b>5. 'The Chinese won't spend much time gathering and exchanging information since they are often eager to get started with the bargaining exchange.'<br />");
        document.writeln ("</b>This is not true. Before the bargaining phase of a negotiation can begin, Chinese negotiators may spend considerable time finding out whatever they can about the other side. Normally, there won't be a lot of direct information exchange, though.</p>");
        }
     if (cText.charAt(11) == 'F')
        {
        document.writeln ("<p><b>6. 'When making decisions, Brazilians usually look at the specifics of a situation rather than following universal rules.'<br />");
        document.writeln ("</b>This is true. Unlike people in so-called 'universalist' cultures, for instance Americans or Germans, Brazilians tend to give more weight to situational circumstances.</p>");
        }
     if (cText.charAt(13) == 'F')
        {
        document.writeln ("<p><b>7. 'Your opening offer with a Sweden negotiator should leave at least 30-40% bargaining room, since your counterpart will expect you to stay flexible and allow them to obtain 'a good deal'.'<br />");
        document.writeln ("</b>This is not true. Most Swedes dislike bargaining and haggling. They expect you to open with an offer that is already in the ballpark of what you expect.</p>");
        }
     if (cText.charAt(15) == 'F')
        {
        document.writeln ("<p><b>8. 'Negotiators in Israel often use silence as a pressure tactic to obtain further concessions.'<br />");
        document.writeln ("</b>This is not true. Silence is rare in conversations among Israelis, and they usually don't use it as a tactic either.</p>");
        }
     if (cText.charAt(17) == 'F')
        {
        document.writeln ("<p><b>9. 'In the Netherlands, a person sucking their thumb is signaling that he or she does not believe you.'<br />");
        document.writeln ("</b>This is true. Almost everyone in the country will immediately understand this non-verbal message.</p>");
        }
     if (cText.charAt(19) == 'F')
        {
        document.writeln ("<p><b>10. 'If a negotiation in Mexico gets stuck in a dispute over some detail, you may be able to resolve it quickly by appealing to the personal relationship you have with your counterpart.'<br />");
        document.writeln ("</b>This is true. The strenght of personal relationships is key when negotiating in Mexico, and it will be very important should conflicts arise.</p>");
        }
     if (cText.charAt(21) == 'F')
        {
        document.writeln ("<p><b>11. 'Contracts in Saudi Arabia are expected to include lots of details and therefore often take a long time to create and agree on.'<br />");
        document.writeln ("</b>This is not true. Saudis usually prefer contracts to be simple and high-level, since they consider them a mere formality.</p>");
        }
     if (cText.charAt(23) == 'F')
        {
        document.writeln ("<p><b>12. 'In Japan, prices rarely move by more than 10-15% from initial offer to final agreement.'<br />");
        document.writeln ("</b>This is not true. Although concessions may not be easy to get, prices may move by up to 40% or so during negotiations in Japan.</p>");
        }
     if (cText.charAt(25) == 'F')
        {
        document.writeln ("<p><b>13. 'When visiting a potential business partner in France for the first time, do not bring a gift along as this could raise suspicion about your motives.'<br />");
        document.writeln ("</b>This is true. It is advisable to refrain from any gift-giving until an agreement has been reached.</p>");
        }
     if (cText.charAt(27) == 'F')
        {
        document.writeln ("<p><b>14. 'Aggressive or adversarial negotiation behavior in Russia indicates that your counterparts do not feel good about the relationship between you.'<br />");
        document.writeln ("</b>This is not true. Although the strength of your personal relationship will have an influence, Russians may appear rather aggressive even when negotiating with someone they like and respect.</p>");
        }
     if (cText.charAt(29) == 'F')
        {
        document.writeln ("<p><b>15. 'In Taiwan, it is strongly advisable to negotiate in a team rather than as an individual.'<br />");
        document.writeln ("</b>This is true. Individuals negotiating in Taiwan enjoy less respect, may not be taken seriously, and may become 'easy prey' for a skilled team of Taiwanese negotiators.</p>");
        }
     if (cText.charAt(31) == 'F')
        {
        document.writeln ("<p><b>16. 'Using English-language presentation material is ok everywhere in Canada, though Franco-Canadians may prefer to see some of it in French.'<br />");
        document.writeln ("</b>This is not true. Many Canadian companies may require your material to be bilingual. In the Quebec province, this may even be required by law.</p>");
        }
     if (cText.charAt(33) == 'F')
        {
        document.writeln ("<p><b>17. 'Bringing a legal counselor to business negotiations in Italy is a good idea because the country has a very complicated catalog of business laws.&nbsp; Your local counterparts will likely also include an attorney on their side.'<br />");
        document.writeln ("</b>This is not true. Your Italian counterparts likely interpret this step as a sign of mistrust on your side.</p>");
        }
     if (cText.charAt(35) == 'F')
        {
        document.writeln ("<p><b>18. 'In Malaysia, written contracts are almost always kept since personal honor is a strong value in the country.'<br />");
        document.writeln ("</b>This is not true. Similar to Koreans or Chinese, Malasians do not view contracts as continually binding documents. You as their contract partner will be expected to remain flexible if conditions change.</p>");
        }
     if (cText.charAt(37) == 'F')
        {
        document.writeln ("<p><b>19. 'If your negotiation in South Korea reaches a critical point, it can be most effective to have a one-on-one conversation with the most senior local manager in order to resolve disagreements.'<br />");
        document.writeln ("</b>This is true. Unlike in most other Asian countries where this approach is not promising, individual discussions may help establish agreement in South Korea.</p>");
        }
     if (cText.charAt(39) == 'F')
        {
        document.writeln ("<p><b>20. 'In the United Kingdom, final decisions usually require top management approval.&nbsp; That authority rarely gets delegated to others.'<br />");
        document.writeln ("</b>This is true. While negotiating teams in the U.K. may appear consensus-oriented, they do not view decision-making a team sport.</p>");
        }
     document.writeln ("<p>&nbsp;</p>");
     }
}

//-->
