hi all guys,
here my suggestions.
1. try to write the script out of the form not in it. so a match and replace like:
Match = "<input type="button" value="My favorites" onClick="fillballs()">"
Replace = "<input type="button" value="My favorites" onClick="fillballs()">
"
"<script language="JavaScript"> setTimeout('fillballs()',2000);
</script>"
"<script language="JavaScript"> setTimeout('document.ticket.submit()',5000); </script>
"
"$STOP()"
could be replaced by:
Match = "<input type="button" value="My favorites" onClick="fillballs()">1</form>"
Replace = "<input type="button" value="My favorites" onClick="fillballs()">1</form>
"
"<script language="JavaScript"> setTimeout('fillballs()',2000);
</script>"
"<script language="JavaScript"> setTimeout('document.ticket.submit()',5000); </script>
"
"$STOP()"
note the 1</form> at the end!
as second suggestion, i think you could use also an array to bypass the name of the form, something like document.form[0].submit
i haven't worked on it, this is only what i'm thinking in this moment
regards,
altosax.