$(function() {
	$('input#id_phone, input#id_business_phone').each(function(){
		if($.trim($(this).val()) == "" || $(this).val() == "xxx-xxx-xxxx") {
			$(this).val('xxx-xxx-xxxx').bind('focus', clearHelp).bind('click', clearHelp).css({'color': '#999999'});
		}
	});

	$('div.form-part:has("ul.errorlist")').addClass('errors');
	
});

function clearHelp(e){
	$(e.target).val('').unbind('focus', clearHelp).unbind('click', clearHelp).css({'color' : '#333333'});
}