/***********************************************
* JavaScriptKit.com Multiple Choice Quiz Script (http://www.javascriptkit.com)
* Copyright 2003 JavaScript Kit- http://www.javascriptkit.com
* This notice and footnote must stay intact for use
* Visit JavaScript Kit (http://www.javascriptkit.com/) for full source code
***********************************************/

//Enter total number of questions:
var totalquestions=15

//Enter the solutions corresponding to each question:
var correctchoices=new Array()
correctchoices[1]='Culturally shared <b>beliefs</b> involve answers to questions such as human origins and concepts of time, space, reality, and the existence of a supernatural being. (p. 33)' 
correctchoices[2]='<b>Culturally shared traditions</b> can include myths, legends, ceremonies, and rituals that are passed on from one generation to the next via an oral or written medium. (p. 33)'
correctchoices[3]='Barry approaches his international manager to ask her for a salary increase. <b>Content goal</b> is Barry’s salary increase in this intercultural communication interaction. (p. 45)'
correctchoices[4]='While conversing with her coworker from overseas, Beth notices that Benito stands much too close and makes her feel uncomfortable, but that he doesn’t seem to notice that he is making a cultural mistake. This illustrates the <b>One-sided attention</b> model. (p. 38)'
correctchoices[5]='The fact that intercultural communication involves simultaneous encoding and decoding reflects the <b>process</b> characteristic of intercultural communication. (p. 40)'
correctchoices[6]='Music and images produced by Snoop Dogg, Beyonce Knowles, and other musical artists belong to <b>surface-level culture</b>. (p. 29)'
correctchoices[7]='The instructor says to Brooke and Bianca, “You look tired.”  These two women have understood the same words but attached differing <b>meanings</b> to them. (p. 32)'
correctchoices[8]='<b>Relational</b> meaning is inferred via nonverbal intonations, body movements, or gestures that accompany the verbal content. (p. 42)'
correctchoices[9]='They both realize that Dr. Brown’s interruption has caused awkwardness and embarrassment in the communication process. According to the intercultural difference alertness model, this describes <b>mutual alertness</b>. (p. 38)'
correctchoices[10]='Dr. Brown would really like to take back his remark criticizing Binh Phuoc’s family remedy for sprained ankles. However, because intercultural communication is an <b>irreversible</b> process, he cannot take back his remark. (p. 40)'
correctchoices[11]='<b>False</b>: Cultural norms belong to deep-level culture. (p. 32)' 
correctchoices[12]='<b>True</b>: Symbolic exchange refers to the use of verbal and nonverbal symbols between a minimum of two individuals to accomplish shared meanings. (p. 39)'
correctchoices[13]='<b>True</b>: The digital aspects of communication refer to the content information that we convey to our listener. (p. 39)'
correctchoices[14]='<b>True</b>: Identity meaning refers to questions such as “Who am I and who are you in this interaction episode?” (p. 42)'
correctchoices[15]='<b>False</b>: Television shows such as Who Wants to Marry My Dad? and The Amazing Race are primarily examples of intermediate-level culture, and specifically, examples of culturally shared beliefs. (p. 29)'
function gradeit(){
var incorrect=null
for (q=1;q<=totalquestions;q++){
	var thequestion=eval("document.uicquiz.question"+q)
	for (c=0;c<thequestion.length;c++){
		if (thequestion[c].checked==true)
		actualchoices[q]=thequestion[c].value
		}
		
	if (actualchoices[q]!=correctchoices[q]){ //process an incorrect choice
		if (incorrect==null)
		incorrect=q
		else
		incorrect+="/"+q
		}
	}

if (incorrect==null)
incorrect="a/b"
document.cookie='q='+incorrect
if (document.cookie=='')
alert("Your browser does not accept cookies. Please adjust your browser settings.")
else
window.location="quiz1g.htm"
}


function showsolution(){

var win2=window.open("","win2","width=500,height=400, scrollbars")
win2.focus()
win2.document.open()
win2.document.write('<title>Chapter 2 Quiz</title>')
win2.document.write('<style>')
win2.document.write('BODY{')
win2.document.write('scrollbar-face-color:#FFFFFF;')
win2.document.write('scrollbar-arrow-color:#999999;')
win2.document.write('scrollbar-track-color:#FFFFFF;')
win2.document.write('scrollbar-shadow-color:#FFFFFF;')
win2.document.write('scrollbar-highlight-color:#FFFFFF;')
win2.document.write('scrollbar-3dlight-color:#999999;')
win2.document.write('scrollbar-darkshadow-Color:#999999;')
win2.document.write('}')
win2.document.write('.button { ')
win2.document.write(' font: 11px Arial, Helvetica, sans-serif; ')
win2.document.write(' background-color: #ffffff; ')
win2.document.write(' color: #102132; ')
win2.document.write(' margin-top: 3px; ')
win2.document.write(' margin-bottom: 2px; ')
win2.document.write('}')
win2.document.write('</style>')
win2.document.write('<body bgcolor="#FFFFFF">')
win2.document.write('<font face="Arial">')
win2.document.write('<img src="../images/quiztitle.gif" width="300" height="21"><br>')
win2.document.write('<img src="../images/chap2.gif" width="200" height="25"><br>')
win2.document.write('<font size="2">')
win2.document.write('<i>')
win2.document.write("Note: The solutions in red are questions you missed.")
win2.document.write('</i><br><br>')


for (i=1;i<=totalquestions;i++){
for (temp=0;temp<incorrect.length;temp++){
if (i==incorrect[temp])
wrong=1
}
if (wrong==1){
win2.document.write("Question "+i+"="+correctchoices[i].fontcolor("red")+"<br><br>")
wrong=0
}
else
win2.document.write("Question "+i+"="+correctchoices[i].fontcolor("black")+"<br><br>")
}
win2.document.write('</center></font>')
document.close()
}
