Using multiple independent calendars

I need to use 2 different calendars, with different insensitive dates on the same page. I have tried this, but only one instance seems to work. here is the code I am using. only the first instance appears.

thanks

================================================

sorry, I posted the wrong code:

========================

function doOnLoad() {

	var sacoboundCalendar;
	sacoboundCalendar = new dhtmlXCalendarObject(["calendarSacobound"]);
	sacoboundCalendar.setDateFormat("%m/%d/%Y");
	sacoboundCalendar.hideTime();
	sacoboundCalendar.setInsensitiveDays(["<?php echo $SacoboundBlackoutDates ?>"]);

	var myEvent = sacoboundCalendar.attachEvent("onClick", function (){
		//event handler code
		reservationCalculation();
	})

	var fiddleheadCalendar;
	fiddleheadCalendar = new dhtmlXCalendarObject(["calendarFiddlehead"]);
	fiddleheadCalendar.setDateFormat("%m/%d/%Y");
	fiddleheadCalendar.hideTime();
	fiddleheadCalendar.setInsensitiveDays(["<?php echo $FiddleheadBlackoutDates ?>"]);

	var myEvent = fiddleheadCalendar.attachEvent("onClick", function (){
		//event handler code
		reservationCalculation();
	})
}

Unfortunately the issue cannot be reconstructed.
If issue still occurs - please provide any kind of sample or demo link