<!--

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("Culquiz="); 
     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++;

        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 == 18)  // all 18 answers correct?  Wow!
        {
        document.writeln ("<p><b>Congratulations!  You answered all 18 questions correctly.  You may consider yourself a truly culture-savvy person!&nbsp;&nbsp;");
        document.writeln ("However, please consider that the questions we asked in this quiz only scratch the surface of cultural diversity.&nbsp;&nbsp;Being globally effective requires a life-long commitment to intercultural discovery and learning.  We can help you throughout that journey.</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 18 total).  ");
      
           if (cor > 15)
              document.writeln ("You may consider yourself a truly culture-savvy person!  However, please consider that the questions we asked in this quiz only scratch the surface of cultural diversity.  Being globally effective requires a life-long commitment to intercultural discovery and learning.  We can help you throughout that journey.</p>");
           else if (cor > 11)
              document.writeln ("You know quite a bit about how to conduct business in other countries and cultures!  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 person has started.  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. 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.  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 < 18))   // question(s) were answered incorrectly
     {
     if ((cText.charAt(1) == 'F') || (cText.charAt(3) == 'F') || (cText.charAt(5) == 'F'))
        {
        document.writeln ("<p><b><u>China</u></b></p>");
        if (cText.charAt(1) == 'F')
           {
           document.writeln ("<p><b>a. 'Negotiations in China are best conducted on a one-on-one basis, since people generally prefer getting to know you well.'<br />");
           document.writeln ("</b>This is not true.  The Chinese prefer to conduct negotiations in teams where each person has a clearly defined role.  It is adviseable to assemble a negotiation team on your side, too.  Your Chinese negotiation partners will still strive to get to know each member of your team well, though.</p>");
           }
        if (cText.charAt(3) == 'F')
           {
           document.writeln ("<p><b>b. 'When starting a presentation in China, it's helpful to spend significant time discussing the history of your company.'<br />");
           document.writeln ("</b>This is true.  In China with its rich history and emphasis on relationships, people pay more attention to the past. Your business partners will want to understand your company's background, history, and past engagements. This is an important element in your effort to build trust.</p>");
           }
        if (cText.charAt(5) == 'F')
           {
           document.writeln ("<p><b>c. 'Chinese banquets tend to be lengthy and tiresome, but it is ok to excuse yourself politely if you need to be well rested for the following day's interactions.'<br />");
           document.writeln ("</b>This is not true.  Relationship building is very important when conducting business in China.  Declining to participate in a banquet or even a 'normal' business dinner will be viewed as impolite and as a sign that you are not seriously interested in the business relationship. These occasions often also serve to continue business discussions in a more relaxed and open way.</p>");
           }
        }
     document.writeln ("<br />");

     if ((cText.charAt(7) == 'F') || (cText.charAt(9) == 'F') || (cText.charAt(11) == 'F'))
        {
        document.writeln ("<p><u><b>France</b></u></p>");
        if (cText.charAt(7) == 'F')
           {
           document.writeln ("<p><b>a. 'French negotiators may start debating your first agenda point even after you already covered and agreed on the first five points.'<br />");
           document.writeln ("</b>This is true.  Unlike most Americans, who are used to following a sequential approach, the French prefer a more holistic view. They may refuse to declare individual negotiation points closed before a complete agreement has been reached.</p>");
           }
        if (cText.charAt(9) == 'F')
           {
           document.writeln ("<p><b>b. 'In front of a French audience, present your points and ideas in a very logical fashion, even if doing so may be seem a bit boring.'<br />");
           document.writeln ("</b>This is true.  In France with its long intellectual and analytical tradition, logic is highly valued and appreciated.  Be prepared for some of the points you present triggering lively discussions or even heated debates among your audience.</p>");
           }
        if (cText.charAt(11) == 'F')
           {
           document.writeln ("<p><b>c. 'As the French are proud of their lifestyles, don't be surprised if someone quickly invites you to his or her home. They love 'showing off' a little.'<br />");
           document.writeln ("</b>This is not true.  While the French indeed show a substantial amount of pride in their way of life, people will rarely invite anyone but their closest friends to the privacy of their homes. Consider it a strong show of respect and sympathy if you receive such an invitation.</p>");
           }
        }
     document.writeln ("<br />");

     if ((cText.charAt(13) == 'F') || (cText.charAt(15) == 'F') || (cText.charAt(17) == 'F'))
        {
        document.writeln ("<p><u><b>Germany</b></u></p>");
        if (cText.charAt(13) == 'F')
           {
           document.writeln ("<p><b>a. 'When engaging in business negotiations in Germany, it is a good idea to avoid last-minute changes.'<br />");
           document.writeln ("</b>This is true.  Since Germans prefer careful planning and a well-defined agenda, they may respond with irritation of even anger if confronted with changes they cannot readily adjust to. If late changes cannot be avoided, a negotiation session may better be postponed to allow for more preparation time.</p>");
           }
        if (cText.charAt(15) == 'F')
           {
           document.writeln ("<p><b>b. 'Germans pay much more attention to the underlying ideas and intentions of a presentation than to the details of what is being shown.'<br />");
           document.writeln ("</b>This is not true.  While the big picture is also important to them, Germans generally pay a lot of attention to details and may sometimes get sidetracked by seemingly insignificant aspects.</p>");
           }
        if (cText.charAt(17) == 'F')
           {
           document.writeln ("<p><b>c. 'In Germany, even if a boss is wrong on an issue, people will hesitate to speak up, because Germans tend to be obedient.'<br />");
           document.writeln ("</b>While a popular misconception, this is nevertheless not true.  Most Germans strongly value order and structure, but they are also fairly individualistic and egalitarian. In Germany, a boss' authority lies in his or her role, not in the person, so while employees will normally show respect, they may still let the boss know where he/she is off.</p>");
           }
        }
     document.writeln ("<br />");

     if ((cText.charAt(19) == 'F') || (cText.charAt(21) == 'F') || (cText.charAt(23) == 'F'))
        {
        document.writeln ("<p><u><b>India</b></u></p>");
        if (cText.charAt(19) == 'F')
           {
           document.writeln ("<p><b>a. 'Indian negotiators will make it clear when they don't like your proposed terms.'<br />");
           document.writeln ("</b>This is not true.  Like many other Asians, people in India prefer a more indirect approach rather than appearing confrontational. They may instead resort to highlighting aspects of your proposal that they like, which between the lines also tells you which parts they don't like.</p>");
           }
        if (cText.charAt(21) == 'F')
           {
           document.writeln ("<p><b>b. 'One should use lots of humor when presenting in India, because people there are very friendly and like to laugh.'<br />");
           document.writeln ("</b>This is not true.  'Humor doesn't travel' applies almost universally. People in India may not understand jokes that would work well in the US, so use humor with caution. In some cases, your audience may not even realize that it was meant as a joke, searching for a deeper meaning of the story.</p>");
           }
        if (cText.charAt(23) == 'F')
           {
           document.writeln ("<p><b>c. 'In India, it's ok for bosses to be authoritarian as long as they are competent in their work area.'<br />");
           document.writeln ("</b>This is true.  Indians expect and accept a greater difference in levels of authority between bosses and employees than most Americans do. They expect their bosses to be competent and 'have all the answers,' though, which is different from the US, where the boss may only be expected to know where to get the right answer.</p>");
           }
        }
     document.writeln ("<br />");

     if ((cText.charAt(25) == 'F') || (cText.charAt(27) == 'F') || (cText.charAt(29) == 'F'))
        {
        document.writeln ("<p><u><b>Japan</b></u><p>");
        if (cText.charAt(25) == 'F')
           {
           document.writeln ("<p><b>a. 'It is a good idea to bring a legal counselor along for business negotiations, as the Japanese prefer to define all contractual details precisely.'<br />");
           document.writeln ("</b>This is not true.  While negotiations in Japan will indeed be conducted with great attention paid to detail, the presence of a legal counselor will be unnecessary and may be read as a sign of mistrust or bad intentions on your part.</p>");
           }
        if (cText.charAt(27) == 'F')
           {
           document.writeln ("<p><b>b. 'When presenting to a Japanese audience, expect several interruptions because they will want to discuss all the details.'<br />");
           document.writeln ("</b>This is not true.  Unlike American presentations, which may serve to stimulate discussions, their primary role in Japan is to communicate information. Japanese audiences rarely interrupt a speaker, and Japanese presenters usually prefer not to be interrupted, so it's best to leave questions to the end of the presentation.</p>");
           }
        if (cText.charAt(29) == 'F')
           {
           document.writeln ("<p><b>c. 'It is easy to pick out the decision maker when meeting with a group of employees of a Japanese company.'<br />");
           document.writeln ("</b>This is not true.  While it is easy to identify the person with the highest authority, their role is usually not that of a decision maker. Japanese decisions are commonly group decisions that may involve several others who are not attending the meeting.</p>");
           }
        }
     document.writeln ("<br />");

     if ((cText.charAt(31) == 'F') || (cText.charAt(33) == 'F') || (cText.charAt(35) == 'F'))
        {
        document.writeln ("<p><u><b>Spain</b></u></p>");
        if (cText.charAt(31) == 'F')
           {
           document.writeln ("<p><b>a. 'Spanish negotiators rarely compromise, so a tit-for-tat strategy of offering some concessions and expecting reciprocity will not work well.'<br />");
           document.writeln ("</b>This is not true.  Like most people in mediterranean Europe, Spaniards negotiate intensely but with a win-win attitude. Like in the US, they are prepared to give up something in order to gain something else.</p>");
           }
        if (cText.charAt(33) == 'F')
           {
           document.writeln ("<p><b>b. 'When presenting in Spain, expect people's attention to span only about 20-30 minutes.'<br />");
           document.writeln ("</b>This is true.  People in Spain are used to doing things in parallel and being interrupted frequently. Their attention span when focusing on only one subject is usually shorter than in the US, where it may be more like 30-45 minutes.</p>");
           }
        if (cText.charAt(35) == 'F')
           {
           document.writeln ("<p><b>c. 'When meeting someone in Spain for the first time, emphasize your position and title. Spaniards pay a lot of attention to such aspects.'<br />");
           document.writeln ("</b>This is true.  In Spain, formal rank and position serve to identify a person's relevance. Americans, who generally focus more on abilities and achievements, often underestimate this and as a consequence may 'sell themselves short'.</p>");
           }
        }
     document.writeln ("<p>&nbsp;</p>");
     }
}

//-->
