/* * showFeedbackForm * * Bring up the popup box with the feedback form content * * @return null */ function showFeedbackForm () { showPopup(' \

Give Feedback

\ \

\ \ Any comments or criticisms? Send us your problems or praise by filling
\ out the details below. We really appreciate it. \ \

\ \
\ \ \ \

\ \

\ \ \ \ \
\ '); } /* * finishFeedbackForm * * Run an AJAX call to send the information through * Return a response message to print to the user * * @return null */ function finishFeedbackForm (type) { $('#popup div button').next('font').remove(); if ($('#feedback_name').val() == "" || $('#feedback_email').val() == "" || $('#feedback_hidden').val() == "") { $('#popup div button').after('Please fill out all the fields'); return false; } $('#popup div').children().fadeOut("slow"); $('#popup div').css({ background: "url('/assets/img/Loaders/circle-snake-07A940.gif') no-repeat center" }); $.post("/Document@SendFeedback", { name: $('#feedback_name').val(), email: $('#feedback_email').val(), hidden: $('#feedback_hidden').val(), message: $('#feedback_message').val().replace(/\n/g, "
"), page: location.href, type: type }, function (result) { if (result == "1") { $('#popup div').fadeOut(); $('#popup p').html("Thank you for your message."); } else { $('#popup div').css('background', ''); $('#popup div').children().fadeIn(); $('#popup div').append('

Unfortunately, an error occured'); $('#popup div').height(300) } }); }