|
<% if request("a") = ""then %>
<% elseif request("a") = "calc" then
if request("acct") = "" then response.redirect "rate-estimator.asp?e=1"
if request("acct2") = "" then response.redirect "rate-estimator.asp?e=1"
curAccount = replace(trim(request("acct")), "-", "")
curAccount = CSTR(curAccount)
curLocation = replace(trim(request("acct2")), "-", "")
curLocation = CSTR(curLocation)
'CHECK VALIDATION OF ACCOUNT
set acct = ConnectEX.Execute("SELECT * FROM [12mo Avg$]")
flag=0
do until acct.eof or flag=1
tempAccount = CSTR(acct("CUSTOMER ID"))
tempLocation = CSTR(acct("LOCATION ID"))
if tempAccount = curAccount then
if tempLocation = curLocation then
flag=1
'response.write tempAccount&" : "&curAccount&" "
end if
end if
if flag=0 then acct.MoveNext
loop
if acct.eof or flag=0 then response.redirect "rate-estimator.asp?e=1"
'response.write acct("CUSTOMER ID")
%>
Acct: <%=acct("CUSTOMER ID")&"-"&acct("LOCATION ID")%> <%=acct("FULL ADDRESS")%> <%=acct("CLASS")%>
Based on the previous 12 months of usage, this location uses an average of <%=acct("CONUSMPTION AVERAGE 12 MONTHS")%> ccf's per month. You can see how your amount may vary by adjusting the number in the usage box below. |
| |
|
|
|
|
|
<% end if %> |