<%
<!-- Define variables -->
dim area, length, width, metprice, impprice, measuretype, totalprice

<!-- Set values -->
length=request.form("Length")
width=request.form("Width")
measuretype=request.form("Measurement")

<!-- metprice is the price per square meter (metric) -->
metprice=0.00007025

<!-- impprice is the price per square foot (imperial) -->
impprice=0.05257
<!-- Get the area -->
area=length*width

<!-- Get the price based on metric or imperial
if measuretype="Metric" then
totalprice=area*metprice
else
totalprice=area*impprice
end if
%>

