Call following method to trigger ASP.NET Validation controls in any JavaScript function.
Page_ClientValidate()