I get an error saying an object was expect for both of the functions

these are in the head tag
------------------------------------------------
<script language="javascript">

function bookhome()
{
var sb_url="http://physicsforums.com"; // Document title (Internet Explorer only)
var sb_title="http://physicsforums.com"; // Bookmark title (Internet Explorer only)
var sb_mouseo="Bookmark & startpage"; // mouseover text (Internet Explorer only)
var sb_ie="Bookmark & startpage"; // Document text (Internet Explorer only)
var sb_nn="Press Ctrl+D to bookmark, to startpage: go to <u>E<\u>dit > Pr<u>e<\u>ferences... Choose Navigator and write "+ (sb_url) +" in the Home page field"; // Document text (Netscape only)
var sb_op="Press Ctrl+T to bookmark, to startpage: go to <u>N<\u>avigation > Se<u>t<\u> home page... write "+ (sb_url) +" in the <u>G<\u>lobal home page field"; // Document text (Opera only)
var sb_other="Unable to startpage"; // Document text (if not Internet Explorer, Netscape or Opera)

// do not edit below this line
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4) && (navigator.platform == "Win32")) {
document.write('<a href="javascript:window.external.addfavorite(sb_url,sb_title);" ');
document.write('onclick="this.style.behavior=');
document.write("'url(#default#homepage)'");
document.write("; this.setHomePage(sb_url);");
document.write('"onmouseover="window.status=');
document.write(" (sb_mouseo); return true ");
document.write('">'+ sb_ie +'<\a>'); }
else if (navigator.appName == "Netscape") {
document.write("" + sb_nn + ""); }
else if (navigator.appName == "Opera") {
document.write(""+ sb_op +""); }
else {
document.write(""+ sb_other +""); }
}


function getGreeting()
{
now = new Date(); theHour = now.getHours(); if (theHour < 12) { greeting = 'Good Morning'; } else if (theHour < 17) { greeting = 'Good Afternoon'; } else { greeting = 'Good Evening'; } document.write(greeting);
}
</script>
-----------------------------------------------

these are in the body

-----------------------------------------------
<script language="javascript">
getGreeting();
</script>

</td><td width=50%>

<script language="javascript">
bookhome();
</script>
------------------------------------------


thanks!!