<input onClick='login();' type="button" name="submit" onmouseover='over();' onmouseout='out();' id='login' style='background:url(/images/login.gif);width:104;height:25;border:0;'/>
Заменить на
<input type="button" name="submit" id='login' style='background:url(/images/login.gif);width:104;height:25;border:0;'/>
$('#login').bind({
'click': function () {
login();
},
'mouseover': function () {
over();
},
'mouseout': function () {
out();
}
});