function checkanswer(r){
	var found=false;
	for (i=0;i<r.length;i++){
		if (r[i].checked){
			found=true;
			break;
		}
	}
	if(!found){
		alert("Please choose an answer first...");
	}
	return found;
}

function show(id,state){
  var obj=document.getElementById(id);
  if(state){
  	obj.style.display="block";
  }else{
  	obj.style.display="none";
  }
}

	var tooltipArray=[];
	tooltipArray.push("Be extra vigilant opening day, opening show.");
	tooltipArray.push("Be extra vigilant first showing, last showing.");
	tooltipArray.push("Monitor auditorium five minutes before screening.");
	tooltipArray.push("Look for glowing lights.");
	tooltipArray.push("Never put yourself or your customers at risk!");
	tooltipArray.push("Advise a cinema manager immediately if someone is recording a film.");
	tooltipArray.push("Keep the individual, who is recording a film, under observation.");
	tooltipArray.push("Never use physical force to stop the activity or detain the individual.");
	tooltipArray.push("It could prove useful to share information with other cinemas in your area.");
	tooltipArray.push("Camcording thieves use a variety of methods to try and get a good recording.");

function printTooltip(first){
	var pos=0;
	do{
		pos=Math.floor(Math.random()*tooltipArray.length)
	}
	while (pos==first)
	document.write("<p>"+tooltipArray[pos]+"</p>");
	return pos;
}