how to make this "if the checkbox is checked add total + 10000 if uncheck none"
because in this situation everytime i check or uncheck the checkbox it adds 10000
function AmmenitiesCALC(value){
newValue = parseInt(value);
document.formcheck.Total.value = newValue;
Total+=newValue;
document.formcheck.Total.value = Total;
}
<tr>
<th>AMMENITIES INCLUDED </th><td><input type="checkbox" name="Ammenities" value='10000' onClick="AmmenitiesCALC(this.value)"></td>
<td> </td>
<td> </td><th> Php 10,000 </th>
</tr>