Thank you very much for your support.
your example is working fine .
There is only one problem
function traverseCells(calendar) is not working in internet explore very well
I have made one change to find cell in ie
dayCells = calendar.get_element().getElementsByClassName("rcMainTable").getElementsByTagName("td");
dayCells = $(".rcMainTable", calendar.get_element()).getElementsByTagName("td");
following Function line is not working in internet explore
var fDate = calendar.get_focusedDate();
calendar.set_focusedDate([fDate, fDate, fDate - fDate % 4 + 1]);
var firstDate = new Date(calendar.get_focusedDate());
firstDate gets value "NaN";
please suggest any solution
Thanks you very much you have solved my half problem now I can work on it to get my desiered functionality.