////////////////////////////////////////////////////////
///AllyCAD Micro prices in South African RANDS
////////////////////////////////////////////////////////
function AllyGetPrice(ex) {
//	if (ex == "SA") {
		return 2800;
	}

////////////////////////////////////////////////////////
//AllyCAD SME prices in South African RANDS
////////////////////////////////////////////////////////
function AllyGetPrice2(ex) {
//	if (ex == "SA") {
		return 9500;
	}

////////////////////////////////////////////////////////
//AllyCAD PRO prices in South African RANDS
////////////////////////////////////////////////////////
function AllyGetPrice3(ex) {
//	if (ex == "SA") {
		return 18000;
	}

////////////////////////////////////////////////////////
///ChoiceSteel prices in South African RANDS
////////////////////////////////////////////////////////
function ChoiceGetPrice4(ex) {
//	if (ex == "SA") {
		return 3900;
	}



////////////////////////////////////////////////////////
//AllyCAD Micro UPGRADE AND SUPPORT CONTRACTS prices in South African RANDS
////////////////////////////////////////////////////////
function AllyGetPrice4(ex) {
//	if (ex == "SA") {
		return 1235;
	}


////////////////////////////////////////////////////////
//AllyCAD SME UPGRADE AND SUPPORT CONTRACTSE prices in South African RANDS
////////////////////////////////////////////////////////
function AllyGetPrice5(ex) {
//	if (ex == "SA") {
		return 1235;
	}



////////////////////////////////////////////////////////
//AllyCAD PRO UPGRADE AND SUPPORT CONTRACTS prices in South African RANDS
////////////////////////////////////////////////////////
function AllyGetPrice6(ex) {
//	if (ex == "SA") {
		return 2340;
	}



/////////////////////////////
//The courier price in RANDS
////////////////////////////
function courier() {
	return 650;
}







////////////////////////////////////////////////////////
///Discounts, as a %
////////////////////////////////////////////////////////
function getDiscount(units, desc, ex) {

var max_units = 50;

/*
// Note: It is important to work your way down from max to min amounts!

if (units >= max_units) return 50; 
if (units >= 40) return 45;
if (units >= 30) return 40;
if (units >= 20) return 35;
if (units >= 15) return 30;
if (units >= 10) return 25;
if (units >= 6) return 20;
if (units >= 3) return 15;
if (units == 2) return 10;
if (units == 1) return 0;
if (units <= 0) return 0;
*/



if (units == 1) return 0;
if (units == 2) return 5.0000;
if (units == 3) return 8.3333;
if (units == 4) return 10.0000;
if (units == 5) return 11.0000;
if (units == 6) return 12.5000;
if (units == 7) return 13.5714;
if (units == 8) return 14.3750;
if (units == 9) return 15.0000;
if (units == 10) return 16.0000;
if (units == 11) return 16.8182;
if (units == 12) return 17.5000;
if (units == 13) return 18.0769;
if (units == 14) return 18.5714;
if (units == 15) return 19.3333;
if (units == 16) return 20.0000;
if (units == 17) return 20.5882;
if (units == 18) return 21.1111;
if (units == 19) return 21.5789;
if (units == 20) return 22.2500;
if (units == 21) return 22.8571;
if (units == 22) return 23.4091;
if (units == 23) return 23.9130;
if (units == 24) return 24.3750;
if (units == 25) return 24.8000;
if (units == 26) return 25.1923;
if (units == 27) return 25.5556;
if (units == 28) return 25.8929;
if (units == 29) return 26.2069;
if (units == 30) return 26.6667;
if (units == 31) return 27.0968;
if (units == 32) return 27.5000;
if (units == 33) return 27.8788;
if (units == 34) return 28.2353;
if (units == 35) return 28.5714;
if (units == 36) return 28.8889;
if (units == 37) return 29.1892;
if (units == 38) return 29.4737;
if (units == 39) return 29.7436;
if (units == 40) return 30.1250;
if (units == 41) return 30.4878;
if (units == 42) return 30.8333;
if (units == 43) return 31.1628;
if (units == 44) return 31.4773;
if (units == 45) return 31.7778;
if (units == 46) return 32.0652;
if (units == 47) return 32.3404;
if (units == 48) return 32.6042;
if (units == 49) return 32.8571;
if (units >= 50) return 33.2000;

}
