<input type="button" class="button" name="zayavka" value="Отправить" onclick="ValidateForm()">
<div style="width: 100%; height: 20px; padding: 6px 0 0px; text-align: center; color: #4C4B4B;" id="resultModal_div_id"></div>
</form>
<script>
function ValidateForm()
{
if (document.getElementById("imya") != null && ...)
{
//Отправляем запрос
AjaxFormRequest('resultModal_div_id', 'formModal_id', '/wp-content/themes/leonastage/formZalyPage.php')
}
else
{
alert("Не все поля заполнены");
}
}
</script>