Source: site.view [edit]
Function name: estimate
Arguments:
Description: Optional Args: 0: message, 1:sessionkey, 2:type, 3:address, 4:price, 5:size, 6:lotSize, 7;beds, 8:baths, 9:features, 10:description
Page type: webl
Render function:  
Module: maybeathome

Page source:

// OPTIONALARGS will contain Key on first login, or nil to logout

var sessionkey = wubinfo.cookies.sessionkey ? nil;
if (sessionkey == nil) then
   if (Size(OPTIONALARGS) > 0) then
      sessionkey = OPTIONALARGS[0]
   end
end;
if (Size(OPTIONALARGS) > 0) and (OPTIONALARGS[0] == "nil") then
   sessionkey = nil;
end;
var userInfo = WubCall("siteutil.getSessionInfo", ["maybeathome", sessionkey]);

var ret;

if (userInfo != nil) then
   ret = WubCall("maybeathome.estimate2", OPTIONALARGS);
else
   ret = WubCall("maybeathome.comingSoon", OPTIONALARGS);
end;