<html>
<HEAD>
<SCRIPT language="JavaScript">
<!--
function get_random()
{
var ranNum= Math.floor(Math.random()*5) ;
return ranNum;
}
function compareText(Text){
if(document. getElementById("show1") . innerText != null){
if(document. getElementById("show1") . innerText != Text){
document. getElementById("show1") . innerText = "";
document. getElementById("show1") . innerText = Text;
return false;
}else{return true;}
}else{
document. getElementById("show1") . innerText = Text;
return false;
}
}
function showhide()
{
var text;
var loop = true;
while(loop){
var random=get_random();
switch(random){
case 0:
text = "1 2 3";
loop = compareText(text);
break;
case 1:
text = "4 5 6";
loop = compareText(text);
break;
case 2:
text = "7 8 9";
loop = compareText(text);
break;
case 3:
text = "10 11 12";
loop = compareText(text);
break;
case 4:
text = "13 14 15";
loop = compareText(text);
break;
}
}
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<FORM name="form1">
<span style="display: block" id="show1"></span>
<br /><br />
<a href="#" onclick="showhide(); return false;">Show / Hide</a>
</FORM>
</BODY>
</html>