// JavaScript Document

var curQuestion = 0;
var questionIDs = [ "wbr", "irtow",	"cao", "whtmc",	"wwac",	"wicnr", "cibs", "hdiga", "cmssbr",	"cmbbr", "ciotcbr",	"hdic" ];

function nextQuestion() {
	curQuestion = ( curQuestion + 1 ) % questionIDs.length;
	location = "#" + questionIDs[curQuestion];
}

function previousQuestion() {
	if( curQuestion == 0 ) {
		curQuestion = questionIDs.length - 1;
	}
	else {
		curQuestion--;
	}
	
	location = "#" + questionIDs[curQuestion];
}