			$(function() { // onload...do
        $('#telephone-support').submit(function() {
          // now we're going to capture *all* the fields in the
          // form and submit it via ajax.
          
          // :input is a macro that grabs all input types, select boxes
          // textarea, etc.  Then I'm using the context of the form from 
          // the initial '#contactForm' to narrow down our selector
          var inputs = [];
          $(':input', this).each(function() {
            inputs.push(this.name + '=' + escape(this.value));
          })
          
          // now if I join our inputs using '&' we'll have a query string
          jQuery.ajax({
		  	type: "POST",
            data: inputs.join('&'),
            url: "/ajax/support-sender.asp",
            timeout: 2000,
            error: function() {
        $('#rcb').html("<div id='message'></div>").fadeIn();
        $('#message').html("<h2>Request Failed!</h2>")
        .append("<p>Something May have gone wrong... please try again by refreshing the page</p>");
      },
            success: function() {
        
        	if ($('#rcb form input#rcb_name').attr("value") == "" || $('#rcb form input#rcb_name').attr("value") == "Name" || $('#rcb form input#rcb_tel').attr("value") == "" || $('#rcb form input#rcb_tel').attr("value") == "Telephone")
			{
			$('#rcb').html("<div id='message'></div>").fadeIn();
			$('#message').html("<h2>Request Failed!</h2>")
        	.append("<p>Something may have gone wrong... please try again by refreshing the page</p>");
			}
			else 
			{
			$('#rcb').html("<div id='message'></div>").fadeIn();
			$('#message').html("<h2>Request Sent!</h2>")
        	.append("<p>We will be in touch soon.</p><img id='checkmark' src='images/page/check.png' />");
			$.cookie('support', 'sent',{expires: 1});
			};
		
      }
          });
           return false;
        });
		var supportSent = $.cookie('support');
		
		if (supportSent == 'sent') {
			 $('#rcb').html("<div id='message'></div>").fadeIn();
	         $('#message').html("<h2>Request Sent!</h2>")
             .append("<p>We will be in touch soon.</p><img id='checkmark' src='images/page/check.png' />");
		};
      });
