var bands=new Array();
var answer=new Array();
var results=new Array();

results[0]="Kate Thronton";
results[1]="Scott Mills";
results[2]="Chris Moyles";
results[3]="Simon Cowell";
results[4]="Michael Parkinson";
results[5]="Jo Whiley";
results[6]="Zane Lowe";
results[7]="Self Styled 'New Oscar Wilde' Jonathan King";
results[8]="John Peel (when alive)";
results[9]="Paul Gambacinni";
results[10]="The lord of the dance";
results[11]="Steve Lamacq";
results[12]="Mark Goodier";
results[13]="Paul Ross";
results[14]="Wogan";
results[15]="Paul Morley";
results[16]="Ross Kemp";
results[17]="That woman from Pop Idol who pretends to be nice but works for the devil";
results[18]="Sara Cox";
results[19]="Mick Hucknell";
results[20]="Jacko off Brush Strokes";


bands[0]="Rival Schools";
answer[0]="An Arcade Game";
bands[1]="The Lostprophets";
answer[1]="A Duran Duran live bootleg CD";
bands[2]="Creedance Clearwater Revival";
answer[2]="A beer can logo";
bands[3]="Alice Cooper";
answer[3]="A spirit contacted on a ouija board";
bands[4]="Cocteau Twins";
answer[4]="A Simple Minds song about siblings who spoke a language they created that sounded like gibberish to everyone else";
bands[5]="The Clash";
answer[5]="A newspaper headline about fights with the police";
bands[6]="Chumbawamba";
answer[6]="A dream involving an incorrectly labelled toilet door";
bands[7]="Captain Beefheart";
answer[7]= "A trick an uncle did with his cock";
bands[8]="Cabaret Voltaire";
answer[8]= "A performance arts cafe";
bands[9]="The Buzzcocks";
answer[9]="A line in Time Out Magazine";
bands[10]="Bay City Rollers";
answer[10]= "Blindly sticking a pin in a map";
bands[11]="Boomtown Rats";
answer[11]= "Woody Guthrie's Bound for Glory novel";
bands[12]="Bono";
answer[12]= "A hearing aid store";
bands[13]="Black Sabbath";
answer[13]=  "A movie with the tagline 'The most gruesome day in the calendar!'";
bands[14]="The Birthday Party";
answer[14]= "A play about a lodger menaced by two mysterious men";
bands[15]="Badfinger";
answer[15]= "A working title of a beatles song";
bands[16]="Bad Company";
answer[16]=  "A movie about boy bandits during the American civil war";
bands[17]="Bachman Turner Overdrive";
answer[17]= "A trucker's magazine";
bands[18]="The B-52s";
answer[18]=  "A hairstyle";
bands[19]="Art of Noise";
answer[19]=  "An Italian futurist manifesto";
bands[20]="AC/DC";
answer[20]=  "A Sewing Machine";
bands[21]="10 cc";
answer[21]=  "An amount of sperm";
bands[22]="Deep Purple";
answer[22]= "A Bing Crosby song";
bands[23]="Depeche Mode";
answer[23]= "The name of a fashion magazine";
bands[24]="Doobie Brothers";
answer[24]= "A marijuana joint";
bands[25]="The Doors";
answer[25]= "A William Blake quote";
bands[26]="Duran Duran";
answer[26]= "A baddy in the film Barbarella";
bands[27]="Duritti Column";
answer[27]= "A spanish civil war brigade";
bands[28]="Genesis";
answer[28]= "The bible and Jonathan King";
bands[29]="Echo and the Bunnymen";
answer[29]= "A drum machine";
bands[30]="Eurythmics";
answer[30]="A system of music instruction from the 1890s that emphasises physical response";
bands[31]="The Fall";
answer[31]="A novel by Albert Camus";
bands[32]="Gang of Four";
answer[32]= "A group of Chinese Rulers";
bands[33]="The Grateful Dead";
answer[33]= "A ghost in an old english folk tale";
bands[34]="The Blow Monkeys";
answer[34]= "A derogatory Australian slang for Aboriginal didgeriedoo players";
bands[35]="Heaven 17";
answer[35]= "The name of a fictional band in A Clockwork Orange";
bands[36]="Husker Du";
answer[36]=  "A board game";
bands[37]="Iron Maiden";
answer[37]="A torture device";
bands[38]="Jefferson Airplane";
answer[38]= "A blues player and a dog";
bands[39]="Everything but the girl";
answer[39]= "A clothing store";
bands[40]="Jethro Tull";
answer[40]= "The inventor of the plough";
bands[41]="Joy Division";
answer[41]= "Concentration camp women forced into prostitution by the nazis";
bands[42]="Mew";
answer[42]= "An english dictionary";
bands[43]="L7";
answer[43]= "A slang term for 'Square'";
bands[44]="Lemonheads";
answer[44]= "A type of sweet";
bands[45]="Lynyrd Skynyrd";
answer[45]= "Their horrible PE teacher";
bands[46]="Manic Street Preachers";
answer[46]= "A shouting tramp";
bands[47]="Megadeth";
answer[47]= "A government pamphlet";
bands[48]="Metallica";
answer[48]= "A name which had been considered to call a music magazine, but rejected";
bands[49]="Franz Ferdinand";
answer[49]=  "An archduke whose assassination triggered World War I";
bands[50]="My Bloody Valentine";
answer[50]= "A 1981 horror film with the slogan 'There's more than one way to lose your heart...'";
bands[51]="Nirvana";
answer[51]="A buddhist state of mind";
bands[52]="Gary Numan";
answer[52]= "A yellow pages listing for a plumbing company";
bands[53]="The Orb";
answer[53]="A silver ball that turns people on when they touch it";
bands[54]="Ice T";
answer[54]="A legendary pimp from decades past";
bands[55]="Pretty Things";
answer[55]= "A Bo Diddley song";
bands[56]="Procul Harum";
answer[56]= "A cat";
bands[57]="The Flaming Lips";
answer[57]="Arbitrary random words put together";
bands[58]="Radiohead";
answer[58]="A Talking Heads song";
bands[59]="REM";
answer[59]= "A state of sleep";
bands[60]="The Corrs";
answer[60]="Their mum and dad";
bands[61]="The Rolling Stones";
answer[61]="A Muddy Waters song";
bands[62]="Savage Garden";
answer[62]="An Ann Rice novel";
bands[63]="Scritti Politti";
answer[63]="Italian Marxist writings";
bands[64]="Sigue Sigue Sputnik";
answer[64]="A Russian Street Gang";
bands[65]="Simple Minds";
answer[65]="A David Bowie song";
bands[66]="Sisters of Mercy";
answer[66]="A Leonard Cohen song";
bands[67]="Skunk Ananse";
answer[67]="A creature in Jamaican folklore who is half man, half spider, and always a prankster";
bands[68]="Weezer";
answer[68]= "A nickname at school";
bands[69]="Soft Boys";
answer[69]="*TWO* William Burroughs novels";
bands[70]="Spandau Ballet";
answer[70]="A nazi term for the facial contortions of those being gassed";
bands[71]="Steely Dan";
answer[71]= "A dildo";
bands[72]="N Sync";
answer[72]= "The last letter of every band members name";
bands[73]="Styx";
answer[73]="A mythical river";
bands[74]="Talking Heads";
answer[74]="A type of camera shot";
bands[75]="Teardrop Explodes";
answer[75]="A line from a Marvel comic strip";
bands[76]="They might be giants";
answer[76]="A friend's ventriloquist act";
bands[77]="Thomson Twins";
answer[77]="The comic Tintin";
bands[78]="Throbbing Gristle";
answer[78]= "A slang term for erection";
bands[79]="U2";
answer[79]="A spy plane";
bands[80]="Frankie Goes to Hollywood";
answer[80]="An old headline about Frank Sinatra's acting career";
bands[81]="The Smiths";
answer[81]= "A generic name void of any preconceptions about their style of music";
bands[82]="Velvet Underground";
answer[82]="A S&M book";
bands[83]="Wings";
answer[83]="A hospital";
bands[84]="Foo Fighters";
answer[84]="Basketball sized unidentified glowing spheres in WW2";
bands[85]="Gin Blossoms";
answer[85]= "A symptom of severe alcoholism";
bands[86]="Live";
answer[86]="A word written on someone's hat in a dream";
bands[87]="Rage against the Machine";
answer[87]="A (hoped for) reaction of ordinary people against corporations, governments, and other invasive institutions that control our society";
bands[88]="Falco";
answer[88]="An East German ski jumper";
bands[89]="Destiny's Child";
answer[89]= "The book of Isaiah";
bands[90]="The Backstreet Boys";
answer[90]= "A Flea Market in Florida";
bands[91]="Right Said Fred";
answer[91]= "A song by Bernard Cribbins";
bands[92]="The tears";
answer[92]= "A Philip Larkin Poem";
bands[93]="The Ramones";
answer[93]= "An alias Paul McCartney used to use";
bands[94]="10,000 Maniacs";
answer[94]= "A film with the tagline 'An Entire Town Bathed In Pulsing Human Blood! Madmen Crazed For Carnage!'";
bands[95]="...And you will know us by the trail of dead";
answer[95]= "A prayer to Mayan corn gods";
bands[96]="M83";
answer[96]= "A far off galaxy";
bands[97]="The Breeders";
answer[97]= "A homosexual slang term for heterosexuals";
bands[98]="Daft Punk";
answer[98]= "A review of their previous band";
bands[99]="Janes Addiction";
answer[99]="A prostitute whom the band met through";
bands[100]="Everclear";
answer[100]= "A very strong drink";

var randomnumber;
var one1;
var one2;
var two1;
var two2;
var two3;
var two4;
var two1b;
var two2b;
var two3b;
var two4b;
var newnum2=1;
var level=0;
var newnum;
var quest1;
var quest2;
var quest3;
var quest4;
var quest5;
var quest6;
var quest7;
var quest8;
var quest9;
var quest10;
var score=0;


function repeter() {

if (newnum == randomnumber) {
return 1;
}
if (newnum == two1) {
return 1;
}
if (newnum == two2) {
return 1;
}
if (newnum == two3) {
return 1;
}
if (newnum == two4) {
return 1;
}
if (newnum == quest1) {
return 1;
}
if (newnum == quest2) {
return 1;
}
if (newnum == quest3) {
return 1;
}
if (newnum == quest4) {
return 1;
}
if (newnum == quest5) {
return 1;
}
if (newnum == quest6) {
return 1;
}
if (newnum == quest7) {
return 1;
}
if (newnum == quest8) {
return 1;
}
if (newnum == quest9) {
return 1;
}
if (newnum == quest10) {
return 1;
}

}


function randomer() {

newnum = Math.floor(Math.random()*101);
var repyes=0;

var repyes=repeter();

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();

}



if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}

if (repyes==1) {
newnum = newnum+1;

if (newnum==101) {
newnum=1;
}

repyes=0;

var repyes=repeter();
}


return newnum;
}




function randomnam() {
level++;

if (level>10) {
win2();
}

else {

randomnumber=randomer();
one1=bands[randomnumber];
one2=answer[randomnumber];
var one1=level+" : "+one1;

if (level==1) {
quest1=randomnumber;
}
if (level==2) {
quest2=randomnumber;
}
if (level==3) {
quest3=randomnumber;
}
if (level==4) {
quest4=randomnumber;
}
if (level==5) {
quest5=randomnumber;
}
if (level==6) {
quest6=randomnumber;
}
if (level==7) {
quest7=randomnumber;
}
if (level==8) {
quest8=randomnumber;
}
if (level==9) {
quest9=randomnumber;
}
if (level==10) {
quest10=randomnumber;
}


two1= randomer();
two2= randomer();
two3= randomer();
two4= randomer();




two1b = answer[two1];
two2b = answer[two2];
two3b = answer[two3];
two4b = answer[two4];


newnum2 = Math.floor(Math.random()*4);
document.getElementById("top1").innerHTML = "<table class='nametab'><tr><td>"+one1+"</td></tr></table>";
document.getElementById("took1").innerHTML = "got their name from...";
document.getElementById("top7").innerHTML = "";

if (newnum2==0) {
document.getElementById("top2").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal3(this)' style='cursor:hand'>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two4b+"</td></tr></table>";
}

if (newnum2==1) {
document.getElementById("top3").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal3(this)' style='cursor:hand'>"+one2+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two4b+"</td></tr></table>";
}
if (newnum2==2) {
document.getElementById("top4").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal3(this)' style='cursor:hand'>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two1b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two4b+"</td></tr></table>";
}
if (newnum2==3) {
document.getElementById("top5").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal3(this)' style='cursor:hand'>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two2b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two4b+"</td></tr></table>";
}
if (newnum2==4) {
document.getElementById("top6").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal3(this)' style='cursor:hand'>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two3b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='questab'><tr><td onMouseOver='change1(this)' onMouseOut='change2(this)' onClick='reveal2(this)' style='cursor:hand'>"+two4b+"</td></tr></table>";
}


}
}


function change1(dibs){
dibs.style.background="#84D8FD";
}

function change2(dibs){
dibs.style.background="#FFFFFF";
}

function reveal2(dibs){

document.getElementById("top7").innerHTML = "<input type='submit' value='Next' class='poo' onClick='randomnam()';>";



if (newnum2==0) {
document.getElementById("top2").innerHTML = "<table class='right'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}

if (newnum2==1) {
document.getElementById("top3").innerHTML = "<table class='right'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}
if (newnum2==2) {
document.getElementById("top4").innerHTML = "<table class='right'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}
if (newnum2==3) {
document.getElementById("top5").innerHTML = "<table class='right'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}
if (newnum2==4) {
document.getElementById("top6").innerHTML = "<table class='right'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}

}

function reveal3(dibs){
score++
document.getElementById("top7").innerHTML = "<input type='submit' value='Next' class='poo' onClick='randomnam()';>";

if (newnum2==0) {
document.getElementById("top2").innerHTML = "<table class='right2'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}

if (newnum2==1) {
document.getElementById("top3").innerHTML = "<table class='right2'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}
if (newnum2==2) {
document.getElementById("top4").innerHTML = "<table class='right2'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}
if (newnum2==3) {
document.getElementById("top5").innerHTML = "<table class='right2'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}
if (newnum2==4) {
document.getElementById("top6").innerHTML = "<table class='right2'><tr><td>"+one2+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='wrong'><tr><td>"+two1b+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+two2b+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+two3b+"</td></tr></table>";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+two4b+"</td></tr></table>";
}

}


function writer() {
document.getElementById("top1").innerHTML = "<table class='nametab'><tr><td>A POP QUIZ</td></tr></table>";
document.getElementById("took1").innerHTML = "Rules";
document.getElementById("top2").innerHTML = "<table class='questab'><tr><td>Everyone knows that David Bowie got his name from a Tin Machine song, and that Queen got their name from Freddy's prediction that one day Brian May would play to *the* Queen from the roof of Buckingham palace - but what about other bands. Do you know about Spagna? About psychedielia's The Umbilical Chord? About Whipsnade, the animal Portishead? Do you?<br> I shall hereby challenge your pop knowledge with a quiz.  I shall ask you where ten bands got their name from and then let you know how well you did...</td></tr></table>";
document.getElementById("top7").innerHTML = "<input type='submit' value='Play The Game' class='poo' onClick='randomnam()';>";
document.getElementById("top3").innerHTML = "";
document.getElementById("top4").innerHTML = "";
document.getElementById("top5").innerHTML = "";
document.getElementById("top6").innerHTML = "";
}

function win2() {

var newnumb1 = Math.floor(Math.random()*20);
var newnumb2 = Math.floor(Math.random()*20);
var newnumb3 = Math.floor(Math.random()*20);
var newnumb4 = Math.floor(Math.random()*20);

document.getElementById("top1").innerHTML = "<table class='nametab'><tr><td>You got "+score+" out of 10</td></tr></table>";
document.getElementById("took1").innerHTML = "which means you have the same amount of musical knowledge as";
document.getElementById("top2").innerHTML = "<table class='wrong'><tr><td>"+results[newnumb1]+"</td></tr></table>";
document.getElementById("top3").innerHTML = "<table class='right2'><tr><td>"+results[score]+"</td></tr></table>";
document.getElementById("top4").innerHTML = "<table class='wrong'><tr><td>"+results[newnumb2]+"</td></tr></table>";
document.getElementById("top5").innerHTML = "<table class='wrong'><tr><td>"+results[newnumb3]+"</td></tr></table>";
document.getElementById("top6").innerHTML = "<table class='wrong'><tr><td>"+results[newnumb4]+"</td></tr></table>";
document.getElementById("top7").innerHTML = "<input type='submit' value='Play Again' class='poo' onClick='starter()';>";

}

function starter() {
newnum2=1;
level=0;
score=0;
writer();
}

