var nameday_date = new Date(), nameday_day = nameday_date.getDate(), nameday_month = nameday_date.getMonth()+1; function NamedayNames(names) { if (names instanceof Array) { this.names = names; } else { this.names = names.split('|'); } } NamedayNames.prototype = { join: function(sep, last_sep, limit) { switch (arguments.length) { case 0: sep = null; case 1: last_sep = null; case 2: limit = null; case 3: break; default: return false; } var names = this.getNames(limit); if (sep==null) { sep = ', '; } if (last_sep==null) { return names.join(sep); } else { var str = ''; for (var i = 0; i1) { return false; } if (arguments.length==0 || limit==null || limit<1 || limit>=this.names.length) { return this.names; } else { var arr = new Array(limit); for (var i = 0; i","
",", "," i "); document.write('');