//********************************************************************************
//MAIL FORM PAGE FUNCTIONALITY
//********************************************************************************

//--------------------------------------------------------------------------------
// Events
//--------------------------------------------------------------------------------

//--------------------------------------------------------------------------------


//--------------------------------------------------------------------------------
// Functions
//--------------------------------------------------------------------------------

function SubmitTitleListRequest()
{   
    //Verify the 'Suggest Title' information
    ob_post.AddParam("strFirstName", $("#FirstName").val());  
    ob_post.AddParam("strLastName", $("#LastName").val());
    ob_post.AddParam("strInstitution", $("#Institution").val());
    ob_post.AddParam("strEmailAddress", $("#EmailAddress").val());    
    ob_post.AddParam("strNotes", $("#Notes").val());
    ob_post.post("MailForm.aspx", "TitleListRequest", "function(){}");
   
    return false;
}

function MailFormSuccess(response)
{   
    //Clear the value(s)
    $("#FirstName").val("");
    $("#LastName").val("");
    $("#Institution").val("");
    $("#EmailAddress").val("");
    $("#Notes").val("");    
    
    //Fade out the Modal window
    tb_remove();
    
    //Show the confirmation message
    DisplayErrorMessage("Your title list request has been received. If you have additional questions, please contact <a href='mailto:milsales@ingramdigital.com'>milsales@ingramdigital.com</a>");
    
    return false;
}

//--------------------------------------------------------------------------------