I'm trying to submit a form when the count down timer reaches zero, it works fine on sample page, but when I integrate it with the real page i got the error: "Object Doesn't support this property or method."

There are two options to submit the form,
automatically when the timer reaches zero,
and manual submission.

On both events i call a function :

function newf() {
document.quest.name.value = "Test";
document.quest.submit();
}

but i'm getting error.

Help Plz,