var txtResult = "";
var iPosition = 0;
	
function BinDisplay() {
    var BinaryNum = new Array;

	for (i = 0; i <=200; i++) {
		if (i % 2 == 0)
			BinaryNum[i] = Math.round(Math.random());
		else
			BinaryNum[i] = " ";
	}
	
	for (i = 0; i <=200; i++) {
		txtResult += BinaryNum[i];
	}
}

function ScrollBinary() {
	document.BinForm.txtBinBox.value = txtResult.substring(iPosition, txtResult.length) + " " + txtResult.substring(0, iPosition);
	iPosition++;
	if (iPosition > txtResult.length)
		iPosition = 0;
	window.setTimeout("ScrollBinary()", 100);
}

