procedure TMainForm.SetFile2(fld, fn: string);
begin
if wbs1.Document <> nil then
with wbs1.Application as IOleobject do
DoVerb(OLEIVERB_UIACTIVATE, nil, wbs1, 0, Handle, GetClientRect);
((wbs1.Document as IHTMLDocument3).getElementsByName(fld).item(0, '')
as IhtmlInputFileElement).select;
SendKeys('ENTER', true);
end;