
function product_item (title, abrev, wsale, retail) {
	this.title = title
	this.abrev = abrev
	this.wsale = wsale
	this.retail = retail
}

function GetProductTitle (code) {
	return products[code].title
}

function GetProductAbrev (code) {
	return products[code].abrev
}

function GetProductRetail (code) {
	return products[code].retail
}

var products = new Array()

products["p"] = new product_item ("Poster",			"poster", "10", "20")
products["a"] = new product_item ("a-size photo",	"a", "50", "30")
products["b"] = new product_item ("b-size photo",	"b", "50", "50")
products["c"] = new product_item ("c-size photo",	"c", "100", "80")
products["d"] = new product_item ("d-size photo",	"d", "200", "130")
products["e"] = new product_item ("e-size photo",	"e", "350", "200")
products["f"] = new product_item ("f-size photo", 	"f", "600", "340")
products["g"] = new product_item ("g-size photo",	"g", "900", "520")
products["pp4"] = new product_item ("portfolio print",	"g", "5", "6")
products["pf4"] = new product_item ("portfolio",	"g", "40", "50")

function book_item (title, abrev, wsale, retail) {
	this.title = title
	this.abrev = abrev
	this.wsale = wsale
	this.retail = retail
}
var books = new Array()
books["99901"] = new book_item ("Wild Australia - Portfolio #01","Portfolio #01", "25", "20")

function GetBookAbrev (code) {
	return books[code].abrev
}
function GetBookTitle (code) {
	return books[code].title
}
function GetBookRetail (code) {
	return books[code].retail
}

