	function updateCRV() {
		var oppaction = false;
		var res_adj = 0;
		var selOptions = ""
		var curOptions = new Array();
		var arrayCount = 0;
		
		selOptions = optionArray.split(',');
		if (document.forms['veh_submit'].elements['Option[]']) {
			for (i=0;i<document.forms['veh_submit'].elements['Option[]'].length;i++)
			{
				for (var j = 0; j < selOptions.length; j++) {
					selOptions2 = selOptions[j].split(':');	
					if (selOptions2[0] == document.forms['veh_submit'].elements['Option[]'][i].value) {
						if (selOptions2[0].indexOf("@") > -1 ) {
							oppaction = true;
						} else {
							oppaction = false;
						}
						
						if (document.forms['veh_submit'].elements['Option[]'][i].checked) {
							curOptions[arrayCount] = selOptions2[0];
							arrayCount++;
						}	
						
						if (selOptions2[2] == "A" && document.forms['veh_submit'].elements['Option[]'][i].checked == 1) {
							res_adj = res_adj + parseInt(selOptions2[1]);
						} else if (selOptions2[2] == "D" && document.forms['veh_submit'].elements['Option[]'][i].checked == 0 && oppaction == false) {
							res_adj = res_adj - parseInt(selOptions2[1]);
						} else if (selOptions2[2] == "D" && document.forms['veh_submit'].elements['Option[]'][i].checked == 1 && oppaction == true) {
							res_adj = res_adj - parseInt(selOptions2[1]);
						}			
					}
				}
			}
		}

		if (document.forms['veh_submit'].RetailValueDisplay) document.forms['veh_submit'].RetailValueDisplay.value = addCommas(parseInt(document.forms['veh_submit'].BaseRetailValue.value) + parseInt(res_adj));
	}
	
	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;
	}