var quizArray = [
'What is your favorite kind of movie?~Artsy, indie films~Movies with strong female characters~Smart comedies~Period pieces and historical films~Revenge stories~Action movies~Comic book movies~Science fiction',

'STP is...~an acronym~straight-through processing~a rock band~standard temperature and pressure~a type of copper wire~a motor oil~Spanning-Tree Protocol~Swords to Plowshares',

'I can’t work until...~I’ve had sleep.~I understand what’s expected of me.~I’ve had breakfast.~I ask others for their opinions.~I’m left alone.~I know everyone has cleared the area.~I’ve had caffeine.~I’ve had a laugh or two.',

'What makes you laugh?~Unexpected results~Cute animals~Your mom~Dry humor~The misfortune of others~Seeing others startled~Everything!~In-jokes and hidden references',

'What do you read most?~Short stories~Business papers~The news~Classic novels~Message boards~Instruction manuals~Source code~Rulebooks',

'What is the perfect snack?~Sliced fruit and cubes of cheese~A cup of berries~Peanuts~Tea and cookies~Who has time to snack?~Chips and Salsa~Candy and a soft drink~Cheetos',

'Which sound appeals to you most?~Birds singing~Wind chimes~A roaring crowd~Piano~No sound at all~Boom!~Drums~8-bit beeps and boops',

'Which color do you like best?~Pink~Violet~Red~Green~Yellow~Orange~I like them all~Blue',

'How do you write a loop in Javascript?~I don’t know, but I know someone who does.~Check with a site like w3schools.com.~Are you sure you need one?~Um...~I am NOT debugging your script! Stop asking me!~Heck if I know.~Javascript?! Why not Perl or PHP?~Something about if\/then statements... wait, I’ve got a book somewhere.',

'I’m happiest when...~I’m busy.~I’m with friends.~I know I’ve helped someone.~everything is in its place.~I know I’m appreciated.~I have something new to play with.~I have chocolate and a place to stretch out.~my plans work out right.'
];

var resPage = 'result';
var qpp = 2; // questions per page to display