This tag defines JavaScript functions to be called from JavaScript code. If any miss those required fields, I am displaying alert by Javascript and i am calling method from java script to save the record
<apex:actionfunction> : This component provides a support for invoking controller action methods directly from JavaScript code using an AJAX request. It must be a child of an <apex:form> component because binding between the caller and <apex:actionFunction> is done based on parameter order.