// JavaScript Document
$(function() {
$('.default-value').each(function() {
    var default_value = this.value;
    $(this).css('color', '#7a7a7a'); // this could be in the style sheet instead
    $(this).focus(function() {
        if(this.value == default_value) {
            this.value = '';
            $(this).css('color', '#7a7a7a');
        }
    });
    $(this).blur(function() {
        if(this.value == '') {
            $(this).css('color', '#7a7a7a');
            this.value = default_value;
        }
    });
});
});

  function processForm()
  {
    $p('button').disabled = true;
    $p('button').value = "...wait";

    $p('enquiry_form').request({
      onSuccess: function(transport)
      {
        if(transport.responseText.match(/^OK/) != null) {
          //alert('Your enquiry has been sent!');
		  window.top.location="/thankyou.php";
          $p('enquiry_form').reset();
        } else {
          alert(transport.responseText);
        }

        $p('button').value = 'Send';
        $p('button').disabled = false;
      }
    });

    return false;
  }
