I am developing a web app in php with help from javascript. But in IE6, javascript function is not being called after clicking a button. I have tried a lot to tackle the problem but eventually I have to land up here...

Here is the code I am using

Code:
<input type='image' src='button.jpg' id='button' name='name'   onclick='A();'/>
And javascript code is

Code:
function a()
{
alert('Output');
}


I have tried a lot of things after googling but nothing worked out. Nothing happens after clicking the button though it works in FF, Chrome. Can anyone help me...