function calcRetail(per,price,upperLimit,retail,vatFactor)
{
	// Calculates the retail price based on percentage.
	checkNumber(per,0,upperLimit,'Float');
	var x = 1+parseFloat(per.value)/100;
	x = parseFloat(price.value) * x;
	x = x * parseFloat(1+vatFactor);
	retail.value = roundOff(x,2);
	return true;
}

