{count=0;found=false; var diff=false;while(!diff) { var now=new Date(); var n=(now.getTime()) % 10000; var d=new Array(4); d[1]=Math.floor(n/1000); d[2]=Math.floor((n % 1000)/100); d[3]=Math.floor((n % 100)/10); d[4]=n % 10; var c2;var c3;diff=true; for (c2=1;c2<4;c2++) for(c3=c2+1;c3<5;c3++) if (d[c2]==d[c3]) diff=false;}; }; function getUser(num){ var num2=eval("t"+num);var num3=eval("Box"+num); var num4=parseInt(num3.value); if (isNaN(num4)) num4=0123; if (num4<123) num4=123; if (num4>9876) num4=9876; var d2=new Array(4); d2[1]=Math.floor(num4/1000); d2[2]=Math.floor((num4 % 1000)/100); d2[3]=Math.floor((num4 % 100)/10); d2[4]=num4 % 10; var sum=0;var sum2=0; for (c2=1;c2<5;c2++) for (c3=1;c3<5;c3++) if (d[c2]==d2[c3]) {sum++;if (c2==c3) sum2++;} var st=""; if (num4<1000) st="0"; num2.innerText=st+num4+" "+sum+" / "+sum2; if (num4==n) {found=true;alert("Well Done!");}; if ((count==11) && (!found)) alert("Sorry, that was "+n); count++; } function echo(num) {if ((count<13) && (!found)) getUser(num); if ((count>11) && (!found)) alert("Sorry, that was "+n); if ((count<13) && (found)) alert(n+": Well Done!"); }; function another() {history.go(0);} function quit() {window.location="http://www.geocities.com/foti_nash/convolution.htm";}