I'm using a calendar popup to add a date value into two readonly text fields. I have a function that calculates the difference between these two dates and enters the result in days into another text field. I had hoped to use the onchange event of the readonly text fields to trigger the function, but for some reason it isn't firing. I can't get the onchange event to trigger anything. Is this because there's no direct user input? <BR><BR>The event needs to be triggered when the calendar window closes and updates either of the readonly textfields. The calendar window is used in various other pages, though, so I don't want to start changing it (using an onclose event to insert the result). Is there anyway to have the window closing trigger the event in the parent window?