/*
+----------------------------------------------------------------------+
| BCSE Reward Points Mod                                               |
+----------------------------------------------------------------------+
| Copyright (c) 2004-2009 BCSE LLC. dba BCS Engineering                |
+----------------------------------------------------------------------+
|                                                                      |
| BCSE Reward Points Mod is subject for version 2.0 of the BCSE        |
| proprietary license. That license file can be found bundled with     |
| this package in the file BCSE_LICENSE. A copy of this license can    |
| also be found at                                                     |
| http://www.bcsengineering.com/license/BCSE_LICENSE_2.0.txt           |
|                                                                      |
+----------------------------------------------------------------------+
*/

function get_points_from_price(price){

	if(ef_points == 'Y')
		return product_points;

	if(points_rate_type == '$')
		var points = price * points_rate;
	else
		var points = price * points_rate / 100;

	return points;
}

