hmpam 0 Newbie Poster

Hi,
I am facing multiple event issue. Details are as follows.

I have a jsp page which has two textbox component (assume their names as A & B both takes numbers only) & one submit button.

onBlur() event of B, some validation method validates that control should only have a number with 2 decimal else displays an alert.

On submit button's onClick event a method is called (assume method name as submitValues() ) which checks whether A's value > B's value or not Else displays an alert.

I have implemented a hot key (alt+r) to do the submit action, hence it calles the same method submitValues() to do the same validation.

Senario where problem occurs:
If A = 50.00 and
IF in B i put a value '123.345567' and didn't do a tab out but press (alt+R), then the first alert comes showing "only 2 decimal number require" & after that the 2nd alert gets display "that "B higher than A is not allowed".

In the above case I don't want the second alert to appear.
Also when i Do the same steps mentioned above except pressing hotkey insted press submit button,
it display only first alert as expected.

Can anyone have come accross simmilar issue?
Prompt help will be helpful.

Thanks in Advance,
hmpam