var cal = new CalendarPopup();
cal.setWeekStartDay(1);
var mydate= new Date()
mydate.setDate(mydate.getDate()-1)
var theyear=mydate.getFullYear()
var themonth=mydate.getMonth()+1
var theyesterday=mydate.getDate()
cal.addDisabledDates(null, themonth+"/"+theyesterday+"/"+theyear);
