$(function()
{
    $("#butSend").click(function()
    {
        var name = $("#txtName").val();
        var email = $("#txtEmail").val();
        
        if ( name == "" )
        {
            $.prompt("Please enter your name");
            return false;
        }
        
        if ( email = "" )
        {
            $.prompt("Please enter your email address");
            return false;
        }
        
        $("#divButton").toggle();
        $("#divWait").toggle();
        $("#frmAgent").submit();
    });
});
