var box = new Array("white.gif","colgraph.gif");var jx = 0*1;var xjz = 300;function paint(){jx++;for(var i=0; i<40; i++){document.write('<IMG SRC="white.gif"  WIDTH="15" HEIGHT="2" BORDER="0"><BR>');}<!--end.for-->}<!--end.f.paint-->var count = 0*1;var kk = new Array(21);var ak = new Array(21);var n = 0*1;for(var i=0; i<21; i++){kk[i] = 0*1;}<!--end.for-->var sum = 0;function wipe(){document.count.elements[2].value = "";count = 0*1;for(var i=0; i<21; i++){kk[i] = 0*1;}<!--end.for-->for(var i=0; i<839; i++){document.images[i].src=box[0];}<!--end.for-->}<!--end.f.wipe-->function draw(){sum = Math.floor(Math.random()*5)+Math.floor(Math.random()*5)+Math.floor(Math.random()*5)+Math.floor(Math.random()*5)+Math.floor(Math.random()*5);for(var i=0; i<21; i++){if (sum==i){kk[i]++;}<!--end.if-->}<!--end.for-->}<!--end.f.draw-->function spin(){for(var j=0; j<n; j++){count++;draw();}<!--end.for-->for(var i=0; i<21; i++){ak[i] = Math.round((kk[i]/count)*xjz);}<!--end.for-->for(var i=62; i>23; i--){if(40-ak[0]<i-23){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=102; i>62; i--){if(40-ak[1]<i-62){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=142; i>102; i--){if(40-ak[2]<i-102){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=182; i>142; i--){if(40-ak[3]<i-142){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=222; i>182; i--){if(40-ak[4]<i-182){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=262; i>222; i--){if(40-ak[5]<i-222){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=302; i>262; i--){if(40-ak[6]<i-262){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=342; i>302; i--){if(40-ak[7]<i-302){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=382; i>342; i--){if(40-ak[8]<i-342){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=422; i>382; i--){if(40-ak[9]<i-382){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=462; i>422; i--){if(40-ak[10]<i-422){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->for(var i=502; i>462; i--){if(40-ak[11]<i-462){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=542; i>502; i--){if(40-ak[12]<i-502){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=582; i>542; i--){if(40-ak[13]<i-542){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=622; i>582; i--){if(40-ak[14]<i-582){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=662; i>622; i--){if(40-ak[15]<i-622){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=702; i>662; i--){if(40-ak[16]<i-662){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=742; i>702; i--){if(40-ak[17]<i-702){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=782; i>742; i--){if(40-ak[18]<i-742){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=822; i>782; i--){if(40-ak[19]<i-782){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;for(var i=862; i>822; i--){if(40-ak[20]<i-822){document.images[i].src=box[1];} else {document.images[i].src=box[0];}<!--end.else-->}<!--end.for-->document.count.elements[2].value = count;}<!--end.f.spin-->function calc1(){n = 100*1;spin();}<!--end.f.calc1-->function calc2(){n = 1000*1;spin();}<!--end.f.calc2-->function calc3(){n = 10000*1;spin();}<!--end.f.calc3-->
