[jQuery] localscroll help needed

[jQuery] localscroll help needed


Hi,
I'm using the jquery localscroll plugin. I have a tab-based navigation
arrangement (tabs are links). It all works fine, but I have a case where
I want to prevent the scrolling action from occurring, based on checking
some conditions. IE, if I have 5 nav links in use, and the user is on
link 3, then clicks on any other link, I want to check some conditions
(validate some values in form fields on slide 3) and if they are false,
I don't want the scrolling action to occur.
IE: if user is on slide 3 and clicks any other slide, run validator and
if it returns false, don't move to the other slide.
Any ideas? I've tried a few things, but nothing worked yet, including
hacking the localscroll plugin a bit.
Thanks,
Jack