Hello! You might want to try using a loop to incriment opposed to having
z = z+1 you can easily incriment by using z = z++ which will incriment z until
a function calls z to be within certain boundaries. I removed the y *******
because you do not really need the y ******* in this edited portion of your
code. If that doesnt work, let me know, but it should only have your timer
be activated once and makes sure it is only activated once. I believe the
problem you were having could have simply been solved in your closing
function by chaning an ******* to be out of the boundaries to be effected
by your code. IF this doesnt work, like I said, let me know. Have not coded
java in about 3 months so I am wee bit rusty. Been working on PHP shtuff.



<SCRIPT LANGUAGE="Javascript"><!--

var z = 0;
var x = 0;

function startClock()
{

document.frm.txtcount1.value = x;
document.frm.txtcount2.value = z;
setTimeout("startClock()", 1000);

for(x=0;x<60;x++) // method of incrimentation
{
if ((x == 60)
&& (z <= 29)) // if both conditions are met. (used with z = 33)
{
x = 0; // return x to 0
z = z++; // incriment z until it reaches 30
}
}
if ((z >= 30)
&& (z <= 32))
{
alert(txttick1);
document.frm.focus;
z = 33; // return a value to z where it cannot be in the loop.
}
if (z >=33)
{
document.frm.txtcount1.value = "";
document.frm.txtcount2.value = "";
}
return True;
}

//--></SCRIPT>