为什么找不出错误
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函数</title>
<script type="text/javascript">
var a,b;
var txt="";
function message(){
try{//定义函数
function bj(a,b){
if(a>b)
{return a;}
else if(a==b)
{document.write("相等");}
else (a<b)
{ return b;}
}
}
catch(err){
txt="本页有一个错误。\n\n";
txt+="错误描述:" + err.message + "\n\n";
txt+="点击确定继续。\n\n";
alert(txt);
}
}
document.write(" 5 和 4 的较大值是:"+bj(5,4)+"<br>");
document.write(" 6 和 3 的较大值是:"+bj(6,3));
</script>
</head>
<body>
</body>
</html>