function iQ() {
arrs = '8|What animal is large, white and lives in the arctic?|Red Fox|Polar Bear|Blue Whale|Yellow Canary//7|Fall is what season?|Winter|Summer|Spring|Fall//6|How many eggs in a dozen?|103|762|12|94//5|What colour is grass?|Green|Purple|Pink|Orange//4|What is cute, small and cries?|Staple|Apple|Spoon|Baby//3|What is white and found in the sky?|Ice Cream|Car|Cloud|Train//2|What is a clear liquid?|Water|Dirt|Stone|Gravel//1|What colour represents environmental issues?|Black|White|Purple|Green//10|What month does October 31st fall in?|January|March|June|October//9|What does an owl say?|Who Who|Bark, Bark|Meow, Meow|Moo, Moo';
thisArray = arrs.split('//');
rmax = 10 - 1;
var rnum = Math.floor(Math.random()*rmax);
thisItem = thisArray[rnum];
thisQuestion = thisItem.split('|');
qID = thisQuestion[0];
qName = thisQuestion[1];
qAnswer1 = thisQuestion[2];
qAnswer2 = thisQuestion[3];
qAnswer3 = thisQuestion[4];
qAnswer4 = thisQuestion[5];
document.getElementById('sq').innerHTML = 'SECURITY QUESTION:<br>'+qName+'<input type="hidden" name="sqi" value="'+qID+'">';
document.getElementById('sa').innerHTML = '<input type="radio" name="sq" value="'+qAnswer1+'">'+qAnswer1+'&nbsp;&nbsp;<input type="radio" name="sq" value="'+qAnswer2+'">'+qAnswer2+'&nbsp;&nbsp;<input type="radio" name="sq" value="'+qAnswer3+'">'+qAnswer3+'&nbsp;&nbsp;<input type="radio" name="sq" value="'+qAnswer4+'">'+qAnswer4;
}
document.onload = iQ();

