rem: calendarEventArray = parseXCSData( aDataStream ); 
add: calendarEventArray = parseIcalEvents(transformXCSData( aDataStream )); 
context: function doWizardImport(){   window.setCursor( "wait" );      var calendarEventArray;   var fileName = document.getElementById( "import-path-textbox" ).value;   var aDataStream = readDataFromFile( fileName, "UTF-8" );   if( fileName.indexOf( ".ics" ) != -1 )      calendarEventArray = parseIcalData( aDataStream );   else if( fileName.indexOf( ".xcs" ) != -1 )      calendarEventArray = parseXCSData( aDataStream );      if( document.getElementById( "import-2-radiogroup" ).selectedItem.value == "silent" )   {      var ServerName = document.getElementById( "import-calendar-radiogroup" ).selectedItem.value;      doAddEventsToCalendar( calendarEventArray, true, ServerName );   }   else   {      doAddEventsToCalendar( calendarEventArray, true, null );   }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/c74507858fba93e6527154facec63e3e73b0c59c/wizard.js/buggy/calendar/resources/content/wizard.js