Js validation refreshes fields

Dear All,I’m using this following validation to check duplicate values. It works fine but it refreshes fields after the message.

I have more than 20 fields in the form. Please help me

Thanks in advance

shana

If n>=1 Then

Print “”

Exit Sub

end if