	//FLASH CALANDER STUFF
    function handleDateFromFlash(displayField,d,m,y,df,mf,yf) {
        /* day, month, year, day field, month field, year field */

        var formName = 'portalForm';

        var yIn = document[formName][yf];
        var mIn = document[formName][mf];
        var dIn = document[formName][df];
        
        var year = y + 1900;
        var month = m + 1;
        var day = d;

        // update the date display field        
        updateDateDisplay(formName, displayField,day,month,year);

        yIn.value = y + 1900;
        mIn.value = m + 1;
        dIn.value = d;                
    }

    function updateDateDisplay(formName, displayFieldName, day, month, year) {
        // update the given field with the date
        document[formName][displayFieldName].value = day + "/" + month + "/" + year;
    }            
    