Question : Entries with Commas Not Generating Value in IE/Javascript

I have some code that calculates a form field based on the value of three others if they aren't null.    The entries in the form are automatically formatted with commas to make it easier for the people to view their entries.    I strip the commas out of the values before doing the math and this works just fine in Firefox but as soon as I add a comma in the values in IE, the script doesn't run.   I don't get an error withe debugging on, it just doesn't update the total field.    I tried alerting once the entry was made to see what was being passed but it doesn't work to even do the alert.    
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
function ExpCalc() {
	document.SurveyTakeForm.DQuestion_13781.value = 0
	if (document.SurveyTakeForm.DQuestion_13745.value != "") 
	{
	varA = 	parseFloat(document.SurveyTakeForm.DQuestion_13745.value.replace(/[,]/g,""))
	}
	else {
	varA = 0	
	}
	
	if (document.SurveyTakeForm.DQuestion_13746.value != "") 
	{
	varB = 	parseFloat(document.SurveyTakeForm.DQuestion_13746.value.replace(/[,]/g,""))
	}
	else {
	varB = 0	
	}
	
	if (document.SurveyTakeForm.DQuestion_13747.value != "") 
	{
	varC = 	parseFloat(document.SurveyTakeForm.DQuestion_13747.value.replace(/[,]/g,""))
	}
	else {
	varC = 0	
	}
	
	var ExpCalc = parseFloat(varA) + parseFloat(varB) + parseFloat(varC)
	ExpCalc = ExpCalc.toFixed(2)
	document.SurveyTakeForm.DQuestion_13781.value = ExpCalc
}

Answer : Entries with Commas Not Generating Value in IE/Javascript

work for me with 800 and 8,000 and 800 :

could you confirm ?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript">
	function ExpCalc() {
		v13745 =  parseFloat(document.SurveyTakeForm.DQuestion_13745.value.replace(/,/g,""));
		v13745 = isNaN(v13745)?0:v13745;
		
		v13746 =  parseFloat(document.SurveyTakeForm.DQuestion_13746.value.replace(/,/g,""));
		v13746 = isNaN(v13746)?0:v13746;
		
		v13747 =  parseFloat(document.SurveyTakeForm.DQuestion_13747.value.replace(/,/g,""));
		v13747 = isNaN(v13747)?0:v13747;
		
		var ExpCalc = v13745 + v13746 + v13747;
		document.SurveyTakeForm.DQuestion_13781.value = ExpCalc.toFixed(2);
	}
	
	function formatCurrency() {
	}
	function hiliteIt() {
	}

</script>
</head>
<body>
<form id="SurveyTakeForm" name="SurveyTakeForm">
<input name="SQuestion_13781" />
<table>
<tbody  id="Administration_AdminExpendituresd">
<tr bgcolor="#CCCCFF"><TD colspan="2">&nbsp;</TD>
	
 <td align="right" valign="top" width="1"><img src="images/clearpix.gif"  height="1"></td>
 
	
	
	<td colspan="1"  align="left"  valign="top" >
	2. Total expenditures: <a href="#" class="showTip FAQ13781"><img src="images/def_icon.jpg" border=0 alt=""></A> <a href="#"><img src="images/calc_icon.jpg" border=0 alt="Calculation" 
   onClick="window.open('calc_details.cfm?fieldname=Admn_8_701&orgid=3865', 'Calculations', 'dependent=yes,alwaysRaised=yes,resizable=yes,width=900,height=800,scrollbars=yes,menubar=yes');"></A> <br />
 
 
		
		
		
	</td><td width ="30%" valign="top">
	<input name="DQuestion_13781" type="text" value="2,100.00" maxlength="20"  onchange="SQuestion_13781.value=this.value"  size="15"  id="DQuestion_13781"  onkeyup="formatCurrency(this, event);hiliteIt()"  /> 
      <br>
      
<span class="showmed_13781" id="showmed_13781">Your entry is outside the min value: 50,351.00 and the max value: 5,508,307.00</span>
      
  </td>
</tr>
 
 
	<tr class="tablelist"><TD colspan="2">&nbsp;</TD>
	
	  <td align="right" valign="top"><img src="images/clearpix.gif"  height="1"></td>
      
	  <td class="prevrow" align="right" colspan="1">Click to Use Previous Response
	 
	</td><td class="prevrow">
	
    No data
    
	</tr>
 
 
<tr class="tablelist"><td colspan="10"><hr></td></tr>
 
 
 
<tr bgcolor="#d1ffcc"><TD colspan="2">&nbsp;</TD>
	
 <td align="right" valign="top" width="1"><img src="images/clearpix.gif"  height="1"></td>
 
	
	
	<td colspan="1"  align="left"  valign="top" >
	2.A. Total In-house labor expenditures (including benefits): <a href="#" class="showTip FAQ13745"><img src="images/def_icon.jpg" border=0 alt=""></A> <a href="#"><img src="images/calc_icon.jpg" border=0 alt="Calculation" 
   onClick="window.open('calc_details.cfm?fieldname=Admn_5_52&orgid=3865', 'Calculations', 'dependent=yes,alwaysRaised=yes,resizable=yes,width=900,height=800,scrollbars=yes,menubar=yes');"></A> <a href="#" class="showTip TIP13745"><img src="images/tip_icon.jpg" border=0 alt="Tip"></A> <br />
 
 
		
		
		
	</td><td width ="30%" valign="top">
	<input name="DQuestion_13745" type="text" value="500.00" maxlength="20"  onchange="ExpCalc();"  size="15"  id="DQuestion_13745"  onkeyup="formatCurrency(this, event);hiliteIt();"  /> 
      <br>
      
<span class="showmed_13745" id="showmed_13745">Your entry is outside the min value: 0.00 and the max value: 28,769,698.00</span>
      
  </td>
</tr>
 
 
	<tr class="tablelist"><TD colspan="2">&nbsp;</TD>
	
	  <td align="right" valign="top"><img src="images/clearpix.gif"  height="1"></td>
      
	  <td class="prevrow" align="right" colspan="1">Click to Use Previous Response
	 
	</td><td class="prevrow">
	
    No data
    
	</tr>
 
 
<tr class="tablelist"><td colspan="10"><hr></td></tr>
 
 
 
<tr bgcolor="#d1ffcc"><TD colspan="2">&nbsp;</TD>
	
 <td align="right" valign="top" width="1"><img src="images/clearpix.gif"  height="1"></td>
 
	
	
	<td colspan="1"  align="left"  valign="top" >
	2.B. Total In-house non-labor and support expenditures: <a href="#" class="showTip FAQ13746"><img src="images/def_icon.jpg" border=0 alt=""></A> <a href="#"><img src="images/calc_icon.jpg" border=0 alt="Calculation" 
   onClick="window.open('calc_details.cfm?fieldname=Admn_6_52&orgid=3865', 'Calculations', 'dependent=yes,alwaysRaised=yes,resizable=yes,width=900,height=800,scrollbars=yes,menubar=yes');"></A> <br />
 
 
		
		
		
	</td><td width ="30%" valign="top">
	<input name="DQuestion_13746" type="text" value="800.00" maxlength="20"  onchange="ExpCalc();"  size="15"  id="DQuestion_13746"  onkeyup="formatCurrency(this, event);hiliteIt();"  /> 
      <br>
      
<span class="showmed_13746" id="showmed_13746">Your entry is outside the min value: 4,574.00 and the max value: 4,515,432.00</span>
      
  </td>
</tr>
 
 
	<tr class="tablelist"><TD colspan="2">&nbsp;</TD>
	
	  <td align="right" valign="top"><img src="images/clearpix.gif"  height="1"></td>
      
	  <td class="prevrow" align="right" colspan="1">Click to Use Previous Response
	 
	</td><td class="prevrow">
	
    No data
    
	</tr>
 
 
<tr class="tablelist"><td colspan="10"><hr></td></tr>
 
 
 
<tr bgcolor="#d1ffcc"><TD colspan="2">&nbsp;</TD>
	
 <td align="right" valign="top" width="1"><img src="images/clearpix.gif"  height="1"></td>
 
	
	
	<td colspan="1"  align="left"  valign="top" >
	2.C. Total outsourced Contractor services expenditures: <a href="#" class="showTip FAQ13747"><img src="images/def_icon.jpg" border=0 alt=""></A> <a href="#"><img src="images/calc_icon.jpg" border=0 alt="Calculation" 
   onClick="window.open('calc_details.cfm?fieldname=Admn_7_52&orgid=3865', 'Calculations', 'dependent=yes,alwaysRaised=yes,resizable=yes,width=900,height=800,scrollbars=yes,menubar=yes');"></A> <br />
 
 
		
		
		
	</td><td width ="30%" valign="top">
	<input name="DQuestion_13747" type="text" value="800.00" maxlength="20"  onchange="ExpCalc();"  size="15"  id="DQuestion_13747"  onkeyup="formatCurrency(this, event);hiliteIt();"  /> 
      <br>
      
<span class="showmed_13747" id="showmed_13747">Your entry is outside the min value: 16.00 and the max value: 3,262,006.00</span>
      
  </td>
</tr>
 
 
	<tr class="tablelist"><TD colspan="2">&nbsp;</TD>
	
	  <td align="right" valign="top"><img src="images/clearpix.gif"  height="1"></td>
      
	  <td class="prevrow" align="right" colspan="1">Click to Use Previous Response
	 
	</td><td class="prevrow">
	
    No data
    
	</tr>
 
 
<tr class="tablelist"><td colspan="10"><hr></td></tr>
</tbody></table>
</form>
</body></html>
Random Solutions  
 
programming4us programming4us