wow that is old code! I'm not familiar with those 2 pages but set_the_usual_form_variables was replaced with ad_page_contract: https://openacs.org/api-doc/proc-view?proc=ad_page_contract
There are thousands of examples of how to use ad_page_contract in OpenACS code base.
You can see the diff here from when it was removed: http://cvs.openacs.org/cvs/openacs-4/packages/acs-tcl/tcl/utilities-procs.tcl?r1=1.82&r2=1.83
hope this helps Brian
thanks again best, Byron
Brian