function search_box_focus(el) {
  if(el.V) {
    if (el.value == el.V) {
      el.value = '';
    }
  } else {
    el.V = el.value;
    el.value = '';
  }
}

jQuery.validator.addMethod("phoneUS", function(phone_number, element) {
    phone_number = phone_number.replace(/\s+/g, ""); 
	return this.optional(element) || phone_number.length > 9 &&
		phone_number.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/);
}, "Please specify a valid phone number");
jQuery.validator.addMethod("zipcodeUS", function(zipcode, element) {
    zipcode = zipcode.replace(/\s+/g, ""); 
	return this.optional(element) || zipcode.length == 5 && zipcode.match(/^[0-9]{5}$/);
}, "Please specify a 5-digit zip code");
jQuery.validator.addMethod("placeholder", function(val, element) {
	return this.optional(element) || !$(element).hasClass('required')|| !$(element).hasClass('placeholder');
}, jQuery.validator.messages.required);

