

function getProductHTML(n) {
	for (var i=0; i<products.length; i++) {
		if (products[i].n==n) {
			var s=""
			s+="<input type=radio name=c value=\""+products[i].n+"\" "
			s+="id="+products[i].n+"c><label for="+products[i].n+"c>"+products[i].d+": US$"+products[i].a+"</label><BR>"
			return s
		}
	}
	return ""
}
function getProductName(n) {
	for (var i=0; i<products.length; i++) {
		if (products[i].n==n) {
			return products[i].d
		}
	}
	return ""
}
function getProductPrice(n) {
	for (var i=0; i<products.length; i++) {
		if (products[i].n==n) {
			return ""+products[i].a
		}
	}
	return ""
}
function getPayPalProductCode(n) {
	for (var i=0; i<products.length; i++) {
		if (products[i].n==n) {
			return ""+products[i].ppn
		}
	}
	return ""
}



// This must duplicate exactly the def of the P object and of the projects array found in the JS on Kagi:
function P(a, d, n, ppn) {
	this.a=a
	this.d=d
	this.n=n
	this.ppn=ppn
}

var products=[
	new P(LICENSE_COST_1,"Workroll 2.x license (1 user)","CD8S3mA","WR2X_LIC_1"),
	new P(LICENSE_COST_5,"Workroll 2.x license (5 users)","f9WM2aX","WR2X_LIC_5"),
	new P(LICENSE_COST_10,"Workroll 2.x license (10 users)","9QuZpP0","WR2X_LIC_10"),
	new P(LICENSE_COST_UNLIMITED,"Workroll 2.x license (unlimited users)","ZO1SuwM","WR2X_LIC_U"),
	new P(UPGRADE_COST_1_TO_5,"Workroll 2.x license upgrade (1- to 5-user upgrade)","SW3Z2fM","WR2X_UPG_1_5"),
	new P(UPGRADE_COST_1_TO_10,"Workroll 2.x license upgrade (1- to 10-user upgrade)","P3XxS2A","WR2X_UPG_1_10"),
	new P(UPGRADE_COST_1_TO_UNLIMITED,"Workroll 2.x license upgrade (1- to unlimited-user upgrade)","Aa3MqHR","WR2X_UPG_1_U"),
	new P(UPGRADE_COST_5_TO_10,"Workroll 2.x license upgrade (5- to 10-user upgrade)","vOwu29B","WR2X_UPG_5_10"),
	new P(UPGRADE_COST_5_TO_UNLIMITED,"Workroll 2.x license upgrade (5- to unlimited-user upgrade)","C80kW2D","WR2X_UPG_5_U"),
	new P(UPGRADE_COST_10_TO_UNLIMITED,"Workroll 2.x license upgrade (10- to unlimited-user upgrade)","So82XkK","WR2X_UPG_10_U")
]




