Field Color Change after Ajax onChange event

Good morning,

I have an on change event that loads values into some text fields in the form. What I want to to be able to do is have the warranty date that is populated be colored red if the warranty date is prior to the current date.
This is a PHP method called “coloration ();” I have called at the end of Ajax event

$current_date = date(‘Y-m-d’);
$field = ‘warrantyEnd’;

{amount_days} = sc_date_dif({warrantyEnd}, ‘aaaa-mm-dd’, $current_date, ‘aaaa-mm-dd’);

if({amount_days} > 0)
{
sc_ajax_javascript(‘set_color’,array($field,$color ));
}


This is the content of the javascript method called set_color

sc_field_color(“warrantyEnd”, “#FF4200”);


The color isn’t changing and since I am sure I am missing something obvious here. Can anyone point me in the right direction?

Thanks