The example was more of something that you could adapt to your website not just copy/paste
Because it also uses the direct name of that form, it's better to use getElementById.
So just make a div you want to use for the clock, give it the ID of Clock or something and change that line "ocument.theClock.theTime.value = ...." to something like " document.getElementById("Clock").innerHTML = ..."
Also change the lines after that to make it have the same format as you wanted.