..whats the equivalent of the following Javascript in VB?

(top.frames["maintask"].location.href.indexOf("timeOut.htm")== -1)

cheers

Pete