$(document).ready(function() {
  $('form#offer :input').blur(function() {
		if ($(this).is('.required')) {
		  if (this.value == '') {
			  $(this).addClass('highlight');
			} else {
			  $(this).removeClass('highlight');
			};
		  };
	  });
});
function checkform() {
  ready = true;
  $('form :input').each( function() {
	if ($(this).is('.required')) {
	  if (this.value == '') {
		  $(this).addClass('highlight');
		  $('form').focus();
		  ready = false;
		};
	  };
  });
  return ready;
}