Adobe Livecycle change field value based on two separate inputs
===

This is the code I have written in a change event that sends a 'UTC' value to a the UTC text box based on a country selection from a drop down list. If I select a date before choosing a country from the DDL, the correct UTC code appears. If I go back and change the date, the UTC code remains the same though until I change the country to a different country and back to the one I want. Is there any way to put javascript into the change even of the date input to make the UTC country code drop down list go back through the conditional statement, thereby requerying the UTC code that is returned from the function? Hope that makes sense.

To summarize: I want to put JS into a change event in the date input that either resets or regenerates the conditional statement to change the function output.

Thanks.


    var datein = new Date(date.formattedValue)
    var Mar11_2012 = new Date('3/11/2012') 
    var Nov04_2012 = new Date('11/4/2012') 
    if(Mar11_2012 < datein && datein < Nov04_2012)
	{ 
	Countries.TZ_ReadOutDST(xfa.event.newText, UTC);
	} 
    else
	{ 
	Countries.TZ_ReadOut(xfa.event.newText, UTC);
	}
