<script type="text/javascript">//<![CDATA[
Calendar.setup({
cont : "cont",
fdow : 1,
selectionType : Calendar.SEL_MULTIPLE,
disabled : function(date) {
// disable all dates between 5 and 15 every month
return (date.getDate() >= 5 &&
date.getDate() <= 15);
},
// checkRange: true, // if you simply want to disallow selection but not display anything
checkRange : function(date, cal) {
// if you pass a function, it gets called and receives the first date that
// disallowed the selection, and the calendar object.
alert("Date " + date + " cannot be selected");
}
});
//]]></script>