I've run into a problem that I can't figure out myself. My assignment is to:

1. create onload event handler init()
2. in init(), create 3 javascript objects each with the same 6 properties (pertinent one is Price)
3. initialize the values of the properties of each of the 3 objects
4. create an HTML page with 3 buttons (one for each type of object). these buttons will each have an onclick event activating an event handler called "getPrice"
5. create a div for output text
6. in the JS event handler, code it up so that the output text will show the name of the button clicked and the corresponding price

My major problem is that I can't understand how to pull the Price property from the objects. Here is my HTML:

```
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script type="text/javascript" src="Scripts/Script.js"></script>
</head>
<body onload="init()">
<input id="btnKoalas" type="button" name="Koalas" value="Koalas" onclick="getPrice()"/>
<input id="btnTulips" type="button" name="Tulips" value="Tulips" onclick="getPrice()"/>
<input id="btnPenguins" type="button" name="Penguins" value="Penguins" onclick="getPrice()"/>

<br />

<p id="divText">This is the output text</p>

</body>
</html>

```

and here is my javascript

```
function init()
{

function Koala(ProdID, SupplierCode, Description, PictureName, QtyOnHand, Price) {
    this.ProdID = ProdID;
    this.SupplierCode = SupplierCode;
    this.Description = Description;
    this.PictureName = PictureName;
    this.QtyOnHand = QtyOnHand;
    this.Price = Price;
}

function Tulip(ProdID, SupplierCode, Description, PictureName, QtyOnHand, Price) {same as above}

function Penguin(ProdID, SupplierCode, Description, PictureName, QtyOnHand, Price) {same as above}

}

objKoala = new Koala('1002', 'S1001', 'Koalas', 'Koala.jpg', '9', '119.95');

objTulip = new Tulip('1003', 'S1002', 'Tulips', 'Tulip.jpg', '9', '7.95');

objPenguin = new Penguin('1004', 'S1003', 'Penguins', 'Penguin.jpg', '9', '127.95');

function getPrice()
{
    var output = objKoala.Price;
    //i know this ^ isn't right.. i'm floundering trying to directly pull the data from my object above and it's still not displaying it
    document.getElementById('divText').innerHTML = output;
}

```

i thought i had established my objects as global but when i click my button, nothing happens. How can i pass parameters to the getPrice() function to pull the properties through? Am i making a mistake in the way i am creating my objects?