On 15 Apr 2004 16:02:38 -0700, Joeyej <jo*************@quinnipiac.edu>
wrote:
[snip]
...but I'd prefer to alert the user (return false) if this string
">May 11 2004, is the same as this string ">May 11 2004, on the next
line of the include file.
/* This extracts the date section (all text before
* the first comma) so it can be compared.
*/
var fCD = FirstCh.substring( 0, First.indexOf( ',' ));
var sCD = SecondCh.substring( 0, Second.indexOf( ',' ));
if(( 'none' == FirstCh ) || ( 'none' == SecondCh ) || ( fCD == sCD ))
{
/*...*/
}
Hope that helps,
Mike
--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)