var i : integer;
s : string;
f : TFormClass;
begin
f := nil;
for i:= 0 to Screen.FormCount - 1 do
if Screen.Forms is TFormCLass then
if TFormCLass(Screen.Forms).Name = s then
f := TFormCLass(Screen.Forms);
if f = nil then
begin
f := TFormCLass.Create(Application);
f.Name := s;
end;
f.ShowModal;