<script type="text/javascript"> <!-- function book(title, author, subject, rating) { this.title = title; this.author = author; this.subject = subject; this.rating = rating; this.show = show; } function show() { alert(this.title + this.author + this.subject + this.rating); } //--> </script>