If you're using document.write, you want to call it when you want to use it. Like this:
CODE
<html>
<head>
<script type="text/javascript" >
function copyright() {
copyright=new Date();
update=copyright.getYear();
document.write("Copyright © 1998-"+ update );
}
</script>
</head>
<body>
<p>
<script>copyright(); </script>
WALLY'S WACKY CAR WASH. All Rights Reserved.
</p>
</body>
</html>
A more flexable way of doing this is to have a fixed element in the document with a unique id. You can then use the DOM to change the value of that element.
Here's how it works.
CODE
<html>
<head>
<script type="text/javascript" >
function copyright() {
document.getElementById("copyright").innerHTML =
"Copyright © 1998-"+ (new Date().getYear() + 1900);
}
</script>
</head>
<body onload="copyright()">
<p><span id="copyright"></span> WALLY'S WACKY CAR WASH. All Rights Reserved.</p>
</body>
</html>
Hope this helps.