/***********************************************
* 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]='Hector’s beaded necklace and Hiroko’s ankle bracelet are examples of <b>artifacts</b>. (p. 203)' 
correctchoices[2]='Nonverbal cues can <b>contradict</b> the verbal message; this is a form of leakage, or hiding how we really feel. (p. 202)'
correctchoices[3]='How something is said and not what is said describes the <b>paralanguage</b> aspect of nonverbal communication. (p. 205)'
correctchoices[4]='Homer has learned that the new culture to which he will be moving is a low-contact culture. In order to fit in, Homer knows that he must do less <b>touching</b>. (p. 213)'
correctchoices[5]='When Harold talked to his roommate Hakeem on the phone, Harold’s verbal message was “I am a little annoyed,” but his <b>paralanguage</b> convinced Hakeem that Harold was feeling so angry that this was a not good time to tell him about the broken coffee pot. (p. 205)'
correctchoices[6]='<b>Artifacts</b> are ornaments or adornments that we use to communicate just by wearing. (p. 203)'
correctchoices[7]='Hallam has just discovered that his coworker has been listening in on his phone conversations. He is really upset at this violation of his <b>intrapersonal</b> space. (p. 218)'
correctchoices[8]='In U.S. culture, the intimate zone is approximately <b>0-18 inches</b> in distance and is reserved for <b>closest friends and family</b>. (p. 215)'
correctchoices[9]='When Henri typed “I NEED TO GO ON VACATION NOW!” in a letter written in conventional upper-case and lower-case typing, Henri was using capital letters to <b>accent</b> that part of the verbal message. (p. 203)'
correctchoices[10]='As Haimi participates in her study group meeting, she uses her hands to play with her pencil, which indicates the use of nonverbal behavior as an <b>adaptor</b>. (p. 212)'
correctchoices[11]='<b>True</b>: More than half of a message is inferred through nonverbal channels. (p. 200)' 
correctchoices[12]='<b>True</b>: Oculesics is the study of eye contact behavior. (p. 200)'
correctchoices[13]='<b>False</b>: Many hand gestures, such as the gesture for “OK,” are performed the same way across cultures. (p. 210)'
correctchoices[14]='<b>True</b>: You may feel negative feelings if someone takes the seat you usually sit in because it violates the unspoken rules of territory. (p. 214)'
correctchoices[15]='<b>True</b>: Artifacts can place a person in a particular status or class. (p. 204)'
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 8 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/chap8.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()
}
