For converting Forms6i to Forms10g you can use a Forms Migration Assistant which is a part of Developer 9i/10g.
For passing parameter to report you create a parameter form:
declare
p_list paramlist;
meno_p_listu varchar2(50) := 'print';
begin
p_list := get_parameter_list(meno_p_
listu);
if not id_null(p_list) then
destroy_parameter_list(p_l
ist);
end if;
p_list := create_parameter_list(meno
_p_listu);
add_parameter(p_list,'PARA
MFORM',tex
t_paramete
r,'NO');
add_parameter(p_list,'ID',
text_param
eter,your_
parameter1
));
---
end;
Here is a good documentation with examples:
http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf