The problem was that the "getElementById" function was unavailable for this specific script. I added the script to the global settings where that function resides, and all is well.
>In the code below, cal is equal to "01/27/2004" but I'm getting an "object expected" error on the 2nd line. I have this code in other scripts that works just fine with the same value. Anyone have any idea what the problem is?
>
>
>
> cal = document.getElementById(cal_name);
> var date=getDateFromFormat(cal.value,'MM/dd/yyyy');
>