Javascript non capisco l'errore
Salve sto facendo il menù per la mia home page però dopo aver studiato un po di javascript non riesco a capire il perchè mi dabba dare questo errore di debug
chiedo aiuto a chiunque sappia programmare in javascript per capire dove sto sbagliando
grazie a tutti
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Menù Principale</title>
<script LANGUAGE =" JavaScript">
<!--
window.onerror=null;
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if(browserName=="Netscape" && browserVer >= 3) ver = "yes";
else ver = "yes";
if(ver == "yes") {
home1 = new Image(); home1.src ="img/menu.gif";
home2 = new Image(); home2.src ="img/home.gif";
}
function active(imgName)
{
if (ver == "yes")
{
img1 = eval(imgName + "1.src");
document [imgName].src = img1;
}}
function inactive(imgName)
{
if (ver == "yes") {
img2 = eval(imgName + "2.src");
document [imgName].src = img2;
}}
// -->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
</head>
<BODY bgcolor="white">
<img name="home1" src="img/menu.gif" width="904" height="131" border="0" usemap="#menu" >
<map name="menu" id="menu">
<area shape="rect" coords="28,76,96,116" href="javascript:inactive('home')" onMouseover ="javascript:inactive('home')" onMouseout ="javascript:active('home')">
<area shape="rect" coords="175,77,249,116" href="http://www.yahoo.it" target="new" alt="prova">
<area shape="rect" coords="308,76,388,116" href="http://www.yahoo.it" target="new" alt="prova">
<area shape="rect" coords="458,76,564,116" href="http://www.yahoo.it" target="new" alt="prova">
<area shape="rect" coords="624,77,695,116" href="http://www.yahoo.it" target="new" alt="prova">
<area shape="rect" coords="795,10,886,113" href="http://www.yahoo.it" target="new" alt="prova">
</map>
</body>
</html>