Control | calendar}
Btncell.onmouseout=function () {
btncell.style.csstext= "width:100%;border:1 outset;background-color:buttonface;";
}
Btncell.onmousedown=function () {
btncell.style.csstext= "width:100%;border:1 inset;background-color: #F0F0F0;";
// }
Btncell.onmouseup=function () {
btncell.style.csstext= "width:100%;border:1 outset;background-color: #F0F0F0;";
}
Btncell.onclick=function () {
Btncell.blur ();
}
return Btncell;
}
This.setdefaultdate=function () {
var dftdate=new Date ();
Calendar.today[0]=dftdate.getyear ();
Calendar.today=dftdate.getmonth () +1;
Calendar.today=dftdate.getdate ();
}
/****************** Show Calendar *********************/
This.show=function (Targetobject,defaultdate,sourceobject) {
if (targetobject==undefined) {
Alert ("No target image set. \ n Method: Atcalendar.show (obj target pair like, string default date, obj click on image); \ n \ nthe target image: The image of the received date return value. \ n Default date: format is \ "Yyyy-mm-dd\" and the default is the date of day. \ n Click on the Image: Click on this pair like pop-up calendar, default to target like. \ n ");
return false;
}
else Calendar.target=targetobject;
if (sourceobject==undefined) Calendar.source=calendar.target;
else Calendar.source=sourceobject;
var FirstDay;
var cells=new Array ();