jQuery.extend({
    'Q' : window.location.search.length <= 1 ? {}
        : function(a) {
            var i = a.length, 
                r = /%25/g,  // Ensure '%' is properly represented 
                h = {};      // (Safari auto-encodes '%', Firefox 1.5 does not)
            while (i--) {
                var p = a[i].split('=');
                h[p[0]] = r.test(p[1]) ? decodeURIComponent(p[1]) : p[1];
            }
            return h;
        } (window.location.search.substr(1).split('&'))
});

$(document).ready(function() {
  switch ($.Q.action) {
      case '0':
          window.alert("There was a problem with your input, please try again later");
          break;
      case '1':
          window.alert("An email with a calculator has been immediately sent to you");
          break;
      case '2':
          window.alert("Your rate request has been submitted");
          break;
      case '3':
          window.alert("Your distributor inquiry has been submitted");
          break;
      default:
  }
});