//Meeting Terminator by R. Preston McAfee
//Based on the Bullsh*t Detector
//http://www.mcafee.cc
//Open Sourced; Please include these comments in any alteration

var itmp=1;
var cst=new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
var words=new Array("up sell","multitask","ramp up","overarching","granularity","interface","bandwidth","cutting edge","synergy","drill down","strategic fit","core competency","best practices","bottom line","revisit","expeditious","to tell the truth","24/7","out of the loop","benchmark","value-added","proactive","win-win","outside the box","fast track","result-driven","empower[ment]","knowledge base","at the end of the day","touch base","mindset","client focus","paradigm","game plan","leverage","level set","table stakes","double down","blue sky","blue water");
var nwords=words.length;
var order=new Array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50);

function reord() {
for (var i=0; i<nwords; i++) { 
for (var j=0; j<nwords; j++) {if (Math.random()<0.5) {itmp=order[i];order[i]=order[j];order[j]=itmp}}}
}

function win() {document.status.st.value="Meeting Terminated Due to Excessive Jargon!";document.status.st.style.backgroundColor="#FF0000";document.status.st.style.color="#FFFFFF";}

function chkr () {
document.status.st.value="The Meeting Terminator";document.status.st.style.backgroundColor="#00FFFF";document.status.st.style.color="#000000";
if(cst[0]==0) {document.butn.in0.style.backgroundColor="#FFFFFF"} else {document.butn.in0.style.backgroundColor="#FFFF00"};
if(cst[1]==0) {document.butn.in1.style.backgroundColor="#FFFFFF"} else {document.butn.in1.style.backgroundColor="#FFFF00"};
if(cst[2]==0) {document.butn.in2.style.backgroundColor="#FFFFFF"} else {document.butn.in2.style.backgroundColor="#FFFF00"};
if(cst[3]==0) {document.butn.in3.style.backgroundColor="#FFFFFF"} else {document.butn.in3.style.backgroundColor="#FFFF00"};
if(cst[4]==0) {document.butn.in4.style.backgroundColor="#FFFFFF"} else {document.butn.in4.style.backgroundColor="#FFFF00"};
if(cst[5]==0) {document.butn.in5.style.backgroundColor="#FFFFFF"} else {document.butn.in5.style.backgroundColor="#FFFF00"};
if(cst[6]==0) {document.butn.in6.style.backgroundColor="#FFFFFF"} else {document.butn.in6.style.backgroundColor="#FFFF00"};
if(cst[7]==0) {document.butn.in7.style.backgroundColor="#FFFFFF"} else {document.butn.in7.style.backgroundColor="#FFFF00"};
if(cst[8]==0) {document.butn.in8.style.backgroundColor="#FFFFFF"} else {document.butn.in8.style.backgroundColor="#FFFF00"};
if(cst[9]==0) {document.butn.in9.style.backgroundColor="#FFFFFF"} else {document.butn.in9.style.backgroundColor="#FFFF00"};
if(cst[10]==0) {document.butn.in10.style.backgroundColor="#FFFFFF"} else {document.butn.in10.style.backgroundColor="#FFFF00"};
if(cst[11]==0) {document.butn.in11.style.backgroundColor="#FFFFFF"} else {document.butn.in11.style.backgroundColor="#FFFF00"};
if(cst[12]==0) {document.butn.in12.style.backgroundColor="#FFFFFF"} else {document.butn.in12.style.backgroundColor="#FFFF00"};
if(cst[13]==0) {document.butn.in13.style.backgroundColor="#FFFFFF"} else {document.butn.in13.style.backgroundColor="#FFFF00"};
if(cst[14]==0) {document.butn.in14.style.backgroundColor="#FFFFFF"} else {document.butn.in14.style.backgroundColor="#FFFF00"};
if(cst[15]==0) {document.butn.in15.style.backgroundColor="#FFFFFF"} else {document.butn.in15.style.backgroundColor="#FFFF00"};
if(cst[16]==0) {document.butn.in16.style.backgroundColor="#FFFFFF"} else {document.butn.in16.style.backgroundColor="#FFFF00"};
if(cst[17]==0) {document.butn.in17.style.backgroundColor="#FFFFFF"} else {document.butn.in17.style.backgroundColor="#FFFF00"};
if(cst[18]==0) {document.butn.in18.style.backgroundColor="#FFFFFF"} else {document.butn.in18.style.backgroundColor="#FFFF00"};
if(cst[19]==0) {document.butn.in19.style.backgroundColor="#FFFFFF"} else {document.butn.in19.style.backgroundColor="#FFFF00"};
if(cst[20]==0) {document.butn.in20.style.backgroundColor="#FFFFFF"} else {document.butn.in20.style.backgroundColor="#FFFF00"};
if(cst[21]==0) {document.butn.in21.style.backgroundColor="#FFFFFF"} else {document.butn.in21.style.backgroundColor="#FFFF00"};
if(cst[22]==0) {document.butn.in22.style.backgroundColor="#FFFFFF"} else {document.butn.in22.style.backgroundColor="#FFFF00"};
if(cst[23]==0) {document.butn.in23.style.backgroundColor="#FFFFFF"} else {document.butn.in23.style.backgroundColor="#FFFF00"};
if(cst[24]==0) {document.butn.in24.style.backgroundColor="#FFFFFF"} else {document.butn.in24.style.backgroundColor="#FFFF00"};
if(cst[0]*cst[1]*cst[2]*cst[3]*cst[4]==1) {win();document.butn.in0.style.backgroundColor="#FF00FF";document.butn.in1.style.backgroundColor="#FF00FF";document.butn.in2.style.backgroundColor="#FF00FF";document.butn.in3.style.backgroundColor="#FF00FF";document.butn.in4.style.backgroundColor="#FF00FF";}
if(cst[5]*cst[6]*cst[7]*cst[8]*cst[9]==1) {win();document.butn.in5.style.backgroundColor="#FF00FF";document.butn.in6.style.backgroundColor="#FF00FF";document.butn.in7.style.backgroundColor="#FF00FF";document.butn.in8.style.backgroundColor="#FF00FF";document.butn.in9.style.backgroundColor="#FF00FF";}
if(cst[10]*cst[11]*cst[12]*cst[13]*cst[14]==1) {win();document.butn.in10.style.backgroundColor="#FF00FF";document.butn.in11.style.backgroundColor="#FF00FF";document.butn.in12.style.backgroundColor="#FF00FF";document.butn.in13.style.backgroundColor="#FF00FF";document.butn.in14.style.backgroundColor="#FF00FF";}
if(cst[15]*cst[16]*cst[17]*cst[18]*cst[19]==1) {win();document.butn.in15.style.backgroundColor="#FF00FF";document.butn.in16.style.backgroundColor="#FF00FF";document.butn.in17.style.backgroundColor="#FF00FF";document.butn.in18.style.backgroundColor="#FF00FF";document.butn.in19.style.backgroundColor="#FF00FF";}
if(cst[20]*cst[21]*cst[22]*cst[23]*cst[24]==1) {win();document.butn.in20.style.backgroundColor="#FF00FF";document.butn.in21.style.backgroundColor="#FF00FF";document.butn.in22.style.backgroundColor="#FF00FF";document.butn.in23.style.backgroundColor="#FF00FF";document.butn.in24.style.backgroundColor="#FF00FF";}
if(cst[0]*cst[5]*cst[10]*cst[15]*cst[20]==1) {win();document.butn.in0.style.backgroundColor="#FF00FF";document.butn.in5.style.backgroundColor="#FF00FF";document.butn.in10.style.backgroundColor="#FF00FF";document.butn.in15.style.backgroundColor="#FF00FF";document.butn.in20.style.backgroundColor="#FF00FF";}
if(cst[1]*cst[6]*cst[11]*cst[16]*cst[21]==1) {win();document.butn.in1.style.backgroundColor="#FF00FF";document.butn.in6.style.backgroundColor="#FF00FF";document.butn.in11.style.backgroundColor="#FF00FF";document.butn.in16.style.backgroundColor="#FF00FF";document.butn.in21.style.backgroundColor="#FF00FF";}
if(cst[2]*cst[7]*cst[12]*cst[17]*cst[22]==1) {win();document.butn.in2.style.backgroundColor="#FF00FF";document.butn.in7.style.backgroundColor="#FF00FF";document.butn.in12.style.backgroundColor="#FF00FF";document.butn.in17.style.backgroundColor="#FF00FF";document.butn.in22.style.backgroundColor="#FF00FF";}
if(cst[3]*cst[8]*cst[13]*cst[18]*cst[23]==1) {win();document.butn.in3.style.backgroundColor="#FF00FF";document.butn.in8.style.backgroundColor="#FF00FF";document.butn.in13.style.backgroundColor="#FF00FF";document.butn.in18.style.backgroundColor="#FF00FF";document.butn.in23.style.backgroundColor="#FF00FF";}
if(cst[4]*cst[9]*cst[14]*cst[19]*cst[24]==1) {win();document.butn.in4.style.backgroundColor="#FF00FF";document.butn.in9.style.backgroundColor="#FF00FF";document.butn.in14.style.backgroundColor="#FF00FF";document.butn.in19.style.backgroundColor="#FF00FF";document.butn.in24.style.backgroundColor="#FF00FF";}
if(cst[0]*cst[6]*cst[12]*cst[18]*cst[24]==1) {win();document.butn.in0.style.backgroundColor="#FF00FF";document.butn.in6.style.backgroundColor="#FF00FF";document.butn.in12.style.backgroundColor="#FF00FF";document.butn.in18.style.backgroundColor="#FF00FF";document.butn.in24.style.backgroundColor="#FF00FF";}
if(cst[4]*cst[8]*cst[12]*cst[16]*cst[20]==1) {win();document.butn.in4.style.backgroundColor="#FF00FF";document.butn.in8.style.backgroundColor="#FF00FF";document.butn.in12.style.backgroundColor="#FF00FF";document.butn.in16.style.backgroundColor="#FF00FF";document.butn.in20.style.backgroundColor="#FF00FF";}
if(cst[0]*cst[1]*cst[2]*cst[3]*cst[4]*cst[5]*cst[6]*cst[7]*cst[8]*cst[9]*cst[10]*cst[11]*cst[12]*cst[13]*cst[14]*cst[15]*cst[16]*cst[17]*cst[18]*cst[19]*cst[20]*cst[21]*cst[22]*cst[23]*cst[24]==1) {document.status.st.value="World's Worst Meeting!";document.status.st.style.backgroundColor="#FF00FF";document.status.st.style.color="#000000";}
}

function bcl(i) {if(cst[i]==1) {cst[i]=0;chkr()} else {cst[i]=1;chkr()}};

function wrtr() {
document.write("<table cellpadding='0px' cellspacing='0px' border='0px' width='780px'><tr><td>");
document.write("<center><form name='status' class='nosp'><INPUT TYPE='button' name='st' VALUE='The Meeting Terminator' onClick='history.go()' class='ylo2'></form><br></center></td></tr>");
document.write("<tr><td class='f1'>Rules: Similar to bingo; when you hear a word or phrase present in a box, click the box.  Yellow indicates that a button is selected, pink is a winner.  (click again to undo.) Close counts: \"core competencies\" counts for \"core competency\". Top button scores and refreshes.<br><br></td></tr>");
document.write("<tr><td><table cellpadding='1px' cellspacing='0px' border='5px' bordercolor='#000000' bordercolorlight='#999999'>");
document.write("<tr><form name='butn' class='nosp'>");
document.write("<td><INPUT TYPE='button' name='in0' VALUE='",words[order[0]],"' OnClick='bcl(0)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in1' VALUE='",words[order[1]],"' OnClick='bcl(1)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in2' VALUE='",words[order[2]],"' OnClick='bcl(2)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in3' VALUE='",words[order[3]],"' OnClick='bcl(3)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in4' VALUE='",words[order[4]],"' OnClick='bcl(4)' class='ylo'></td>");
document.write("</tr><tr>");
document.write("<td><INPUT TYPE='button' name='in5' VALUE='",words[order[5]],"' OnClick='bcl(5)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in6' VALUE='",words[order[6]],"' OnClick='bcl(6)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in7' VALUE='",words[order[7]],"' OnClick='bcl(7)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in8' VALUE='",words[order[8]],"' OnClick='bcl(8)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in9' VALUE='",words[order[9]],"' OnClick='bcl(9)' class='ylo'></td>");
document.write("</tr><tr>");
document.write("<td><INPUT TYPE='button' name='in10' VALUE='",words[order[10]],"' OnClick='bcl(10)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in11' VALUE='",words[order[11]],"' OnClick='bcl(11)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in12' VALUE='",words[order[12]],"' OnClick='bcl(12)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in13' VALUE='",words[order[13]],"' OnClick='bcl(13)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in14' VALUE='",words[order[14]],"' OnClick='bcl(14)' class='ylo'></td>");
document.write("</tr><tr>");
document.write("<td><INPUT TYPE='button' name='in15' VALUE='",words[order[15]],"' OnClick='bcl(15)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in16' VALUE='",words[order[16]],"' OnClick='bcl(16)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in17' VALUE='",words[order[17]],"' OnClick='bcl(17)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in18' VALUE='",words[order[18]],"' OnClick='bcl(18)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in19' VALUE='",words[order[19]],"' OnClick='bcl(19)' class='ylo'></td>");
document.write("</tr><tr>");
document.write("<td><INPUT TYPE='button' name='in20' VALUE='",words[order[20]],"' OnClick='bcl(20)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in21' VALUE='",words[order[21]],"' OnClick='bcl(21)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in22' VALUE='",words[order[22]],"' OnClick='bcl(22)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in23' VALUE='",words[order[23]],"' OnClick='bcl(23)' class='ylo'></td>");
document.write("<td><INPUT TYPE='button' name='in24' VALUE='",words[order[24]],"' OnClick='bcl(24)' class='ylo'></td>");
document.write("</form></tr></table>");
document.write("</td></tr><tr><td class='f1'><br><br>More information: <a href='http://en.wikipedia.org/wiki/Buzzword_bingo' target='_blank'>Buzzword Bingo</a>.  There are ",nwords," words in the terminator.</td></tr></table>");
}
