	function updateCRV() {

		var oppaction = false;
		var res_adj = 0;
		var selOptions = ""
		var curOptions = new Array();
		var arrayCount = 0;
		
		selOptions = optionArray.split(',');
					
		if (document.forms['form_vehsource_2'].elements['OptionBox']) {
			for (var i = 0;i < document.forms['form_vehsource_2'].elements['OptionBox'].length; i++)
			{
				for (var j = 0; j < selOptions.length; j++) {
					selOptions2 = selOptions[j].split(':');	
					if (selOptions2[0] == document.forms['form_vehsource_2'].elements['OptionBox'][i].value) {
						if (selOptions2[0].indexOf("@") > -1 ) {
							oppaction = true;
						} else {
							oppaction = false;
						}
						
						if (document.forms['form_vehsource_2'].elements['OptionBox'][i].checked) {
							curOptions[arrayCount] = selOptions2[0];
							arrayCount++;
						}	
												
						if (selOptions2[2] == "A" && document.forms['form_vehsource_2'].elements['OptionBox'][i].checked == 1) {
							res_adj = res_adj + parseInt(selOptions2[1]);
						} else if (selOptions2[2] == "D" && document.forms['form_vehsource_2'].elements['OptionBox'][i].checked == 0 && oppaction == false) {
							res_adj = res_adj - parseInt(selOptions2[1]);
						} else if (selOptions2[2] == "D" && document.forms['form_vehsource_2'].elements['OptionBox'][i].checked == 1 && oppaction == true) {
							res_adj = res_adj - parseInt(selOptions2[1]);
						}			
					}
				}
			}
		}

		if (document.forms['form_vehsource_2'].RetailValueDisplay) document.forms['form_vehsource_2'].RetailValueDisplay.value = addCommas(parseInt(document.forms['form_vehsource_2'].BaseRetailValue.value) + parseInt(res_adj));
		if (document.forms['form_vehsource_2'].RetailValue) document.forms['form_vehsource_2'].RetailValue.value = parseInt(document.forms['form_vehsource_2'].BaseRetailValue.value) + parseInt(res_adj);
		if (document.forms['form_vehsource_2'].PurchasePrice) if (document.forms['form_vehsource_2'].PurchasePrice == '') document.forms['form_vehsource_2'].PurchasePrice.value = parseInt(document.forms['form_vehsource_2'].BaseRetailValue.value) + parseInt(res_adj);
		document.form_vehsource_2.Options.value = curOptions.join("|");

	}
	
	function addCommas(nStr)
	{
		nStr += '';
		x = nStr.split('.');
		x1 = x[0];
		x2 = x.length > 1 ? '.' + x[1] : '';
		var rgx = /(\d+)(\d{3})/;
		while (rgx.test(x1)) {
			x1 = x1.replace(rgx, '$1' + ',' + '$2');
		}
		return x1 + x2;
	}