function stamp_calculator(c){var m=strip_common_elements(document.getElementById(c).stamp_amount.value);var aW=document.getElementById(c).transaction.value;var bf=0;if(!check_number_valid(m)){document.getElementById(c).result.value='';alert("You must fill out the value of the property in order to calculate the stamp bf payable on it");return false;}if(aW=="res"){if(m<125001){bf=0;}if(m>=125001&&m<250001){bf=(m/100);}if(m>=250001&&m<500001){bf=((m/100)*3);}if(m>=500001){bf=((m/100)*4);}}else if(aW=="non_res"){if(m<150001){bf=0;}if(m>=150001&&m<250001){bf=(m/100);}if(m>=250001&&m<500001){bf=((m/100)*3);}if(m>=500001){bf=((m/100)*4);}}else if(aW=="shares"){bf=(m/100)*.5;}document.getElementById(c).result.value=format_number_output(bf,2,',','£');return false;}