																																																																																																																																																																																																																																																																																																							function CalculateSum(Atext,Btext,form){var A=+(Atext);var B=+(Btext);if(Math.abs(A)<100||Math.abs(B)<100){alert('US Odds only (e.g. -150, 220...)');return;}if(A>=100){form.dec1.value=Math.round(((100+A)/100)*100)/100;form.lineconv1.value=Math.round(((100/(100+A))*100)*100)/100+"%";}else{form.dec1.value=Math.round((100/Math.abs(A)+1)*100)/100;form.lineconv1.value=Math.round(((A/(A-100))*100)*100)/100+"%";}if(B>=100){form.dec2.value=Math.round(((100+B)/100)*100)/100;form.lineconv2.value=Math.round(((100/(100+B))*100)*100)/100+"%";}else{form.dec2.value=Math.round((100/Math.abs(B)+1)*100)/100;form.lineconv2.value=Math.round(((B/(B-100))*100)*100)/100+"%";}var P=parseFloat(form.lineconv1.value);var Q=parseFloat(form.lineconv2.value);form.lineconv3.value=Math.round(((P/(P+Q))*100)*100)/100+"%";form.lineconv4.value=Math.round(((Q/(P+Q))*100)*100)/100+"%";form.lineconv5.value=Math.round((P+Q)*100)/100+"%";form.lineconv6.value=Math.round(((100/(P+Q))*100)*100)/100+"%";}function ClearForm(form){form.input_A.value="";form.input_B.value="";for(i=4;i<=11;i++){form.elements[i].value="";}}
