how can i specify function record (which is in item.js file)as the event handler for onclick event for "b1" button with in the following javascript
item.html-------------------
<body>
<form>
<input type = "button" id="b1" value = "click" />
</form>
<script type="text/javascript">
----code should be here------
</script>
</body>