<%
' Execute a pre-configured ISYSSearch objectSet Results = ISYSSearch.Execute
' Get the documentSet Document = Results(CLng("doc"))
If Document.FileExtension = ".doc"Then' Word specific logic.' Note that FormatType can be more acurate as it will find word documents' without a .doc extension.EndIf%>