You can code pure javascript in an onClick event, so you could do
onClick="fnValidate() ? fnPrint() : void();"
Which basically means ... when I click the button, call fnValidate to validate the form. If it's valid, then call fnPrint to print it, otherwise do nothing.
This also assumes fnValidate will return a value indicating success of failure.
Greg.