cal=Zapatec.Calendar.setup({
        showOthers        : false,
        multiple          : false,
	    electric		  : true,
        step              : 2,
        range             : [2007.04, 2009.12],
        singleClick       : true,
        inputField        : "date",
        button            : "trigger",
        ifFormat          : "%m/%d/%Y",
        numberMonths      : 2,
        monthsInRow       : 2,
		weekNumbers       : false,
		dateStatusFunc    : dateOutOfRange
		
		
      });


	var SPECIAL_DAYS = {
	    0 : [ 1, 21 ],             // "special days" in January
	    4 : [  26 ],    // "special days" in April
	    6 : [ 4 ],
	    8 : [1],
	    9 : [13],
	   10 : [27,28],      // "special days" in September
	   11 : [ 25, 31 ]              // "special days" in December
	};

	// this function returns true if the passed date is special
	function dateIsSpecial(year, month, day) {
	    var m = SPECIAL_DAYS[month];
	    if (!m) return false;
	    for (var i in m) if (m[i] == day) return true;
	    return false;
	}


	// configure it to the calendar
	//cal.setDateStatusHandler(dateStatusHandler);
	
	function dateOutOfRange(date, year, month) {
	    	if (dateIsSpecial(year, month, date.getDate())) 
				return true;
			if (date.getDay()==6 || date.getDay() == 0) { //No Weekends
				return true;
			}
			if(date < new Date()){
				return true;
			}
		}
		
	
