function myCal( _id, _layer, _parent ){ this.parent = _parent; this.create( _id, _layer, true ); } myCal.prototype = new hx_gb_calendar2(); myCal.prototype.getDay = function( _day ) { var thisPtr = this; var code = _day; return code; } myCal.prototype.destroy = function() { return null; }; myCal.prototype.setDateCallback = function( _fn ) { this.dateCallback = _fn; }; myCal.prototype.onDateChanged = function() { this.dateCallback(); };