// When DOM is ready
$(document).ready(function(){

$("#ajax-contact-form").submit(function() {

var str = $(this).serialize();

   $.ajax({
   type: "POST",
   url: "/form/contact.php",
   data: str,
   success: function(msg){
    
$("#note").ajaxComplete(function(event, request, settings){

if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
result = '<div class="notification_ok"><p>Your request has been received. Thank you!</p><p>Please choose which Solution Provider PDF you want to download:</p><p>NAVINET</p><p>RAPID 7</p><p>MANATT</p><p><a href="http://www.healthstimulusx.com/IntelligentHealth_AdvocateHealth_CaseStudy.pdf">INTELLIGENT HEALTHCARE</a></p><p><a href="http://www.healthstimulusx.com/Axolotl%20Clara%20Maass%20HIE%20Live%20in%20Less%20Than%20Two%20Months%20Success%20Story-2.pdf">AXOLOTL</a></p><p>ORACLE</p><p><a href="http://www.healthstimulusx.com/img/Greenway_Stimulus_Overview.pdf">GREENWAY</a></p></div>';
$("#fields").hide();
$('#ajax-contact-form')[0].reset();
}
else
{
result = msg;
}

$(this).html(result);

});

}

 });

return false;

});

});
