My typo.

This line:
 Code:
		$iMonthIndex=InStr($sMonthLetters,SubStr($sFile,6,1)


is missing a trailing parenthesis:
 Code:
		$iMonthIndex=InStr($sMonthLetters,SubStr($sFile,6,1))


Sorry 'bout that.

I'm off home for a weekend of fitting a new kitchen <sigh> but there are plenty of helpful people who should be able to assist in correcting any other of my school-boy errors.