document.writeln("<script language=\"javascript\" type=\"text/javascript\">");
document.writeln("Date.prototype.Format = function(fmt) ");
document.writeln("{");
document.writeln("    var o =");
document.writeln("    { ");
document.writeln("        \"M+\" : this.getMonth() + 1, //月份 ");
document.writeln("        \"d+\" : this.getDate(), //日 ");
document.writeln("        \"h+\" : this.getHours(), //小时 ");
document.writeln("        \"m+\" : this.getMinutes(), //分 ");
document.writeln("        \"s+\" : this.getSeconds(), //秒 ");
document.writeln("        \"q+\" : Math.floor((this.getMonth() + 3) / 3), //季度 ");
document.writeln("        \"S\" : this.getMilliseconds() //毫秒 ");
document.writeln("    }; ");
document.writeln("    if (/(y+)/.test(fmt)) ");
document.writeln("        fmt = fmt.replace(RegExp.$1, (this.getFullYear() + \"\").substr(4 - RegExp.$1.length)); ");
document.writeln("    for (var k in o) ");
document.writeln("        if (new RegExp(\"(\" + k + \")\").test(fmt)) ");
document.writeln("            fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : ((\"00\" + o[k]).substr((\"\" + o[k]).length))); ");
document.writeln("    return fmt; ");
document.writeln("}");
document.writeln("");
document.writeln("");
document.writeln("Date.prototype.addDays = function(d)");
document.writeln("{");
document.writeln("    this.setDate(this.getDate() + d);");
document.writeln("};");
document.writeln("");
document.writeln("");
document.writeln("Date.prototype.addWeeks = function(w)");
document.writeln("{");
document.writeln("    this.addDays(w * 7);");
document.writeln("};");
document.writeln("");
document.writeln("");
document.writeln("Date.prototype.addMonths= function(m)");
document.writeln("{");
document.writeln("    var d = this.getDate();");
document.writeln("    this.setMonth(this.getMonth() + m);");
document.writeln("");
document.writeln("    if (this.getDate() < d)");
document.writeln("        this.setDate(0);");
document.writeln("};");
document.writeln("");
document.writeln("");
document.writeln("Date.prototype.addYears = function(y)");
document.writeln("{");
document.writeln("    var m = this.getMonth();");
document.writeln("    this.setFullYear(this.getFullYear() + y);");
document.writeln("");
document.writeln("    if (m < this.getMonth()) ");
document.writeln("    {");
document.writeln("        this.setDate(0);");
document.writeln("    }");
document.writeln("};");
document.writeln("</script>");
document.writeln("<select name=long>");
document.writeln(" ");
document.writeln("<script>");
document.writeln("var now = new Date();");
document.writeln("var n");
document.writeln("n=0;");
document.writeln("now.addDays(1);");
document.writeln("while (n<7)");
document.writeln("{");
document.writeln("");
document.writeln("	now.addDays(-1);");
document.writeln("	if (now.getDay()==0 || now.getDay()==6 || now.Format(\"MM-dd\")==\"02-15\" || now.Format(\"MM-dd\")==\"01-02\" || now.Format(\"MM-dd\")==\"01-03\" || now.Format(\"MM-dd\")==\"01-25\" || now.Format(\"MM-dd\")==\"01-26\" || now.Format(\"MM-dd\")==\"02-16\" || now.Format(\"MM-dd\")==\"02-17\" || now.Format(\"MM-dd\")==\"02-18\" || now.Format(\"MM-dd\")==\"02-19\" || now.Format(\"MM-dd\")==\"01-31\" || now.Format(\"MM-dd\")==\"04-04\" || now.Format(\"MM-dd\")==\"04-05\" || now.Format(\"MM-dd\")==\"04-06\" || now.Format(\"MM-dd\")==\"05-01\" || now.Format(\"MM-dd\")==\"05-02\" || now.Format(\"MM-dd\")==\"05-03\" || now.Format(\"MM-dd\")==\"05-28\" || now.Format(\"MM-dd\")==\"05-29\" || now.Format(\"MM-dd\")==\"05-30\" || now.Format(\"MM-dd\")==\"10-01\" || now.Format(\"MM-dd\")==\"10-02\" || now.Format(\"MM-dd\")==\"10-03\" || now.Format(\"MM-dd\")==\"10-04\" || now.Format(\"MM-dd\")==\"10-05\" || now.Format(\"MM-dd\")==\"10-06\" || now.Format(\"MM-dd\")==\"10-07\" || now.Format(\"MM-dd\")==\"10-08\")");
document.writeln("	{");
document.writeln("		n--;");
document.writeln("	}");
document.writeln("	else");
document.writeln("	{");
document.writeln("		if(n==0){");
document.writeln("			if(now.getHours()>15){");
document.writeln("				document.write(\"<option value=\");");
document.writeln("				document.write(now.Format(\"MMdd\"));");
document.writeln("				document.write(\">\");");
document.writeln("				document.write(now.Format(\"MM月dd日\"));");
document.writeln("				document.write(\"</option>\");");
document.writeln("			}");
document.writeln("		}");
document.writeln("		else");
document.writeln("		{");
document.writeln("			document.write(\"<option value=\");");
document.writeln("			document.write(now.Format(\"MMdd\"));");
document.writeln("			document.write(\">\");");
document.writeln("			document.write(now.Format(\"MM月dd日\"));");
document.writeln("			document.write(\"</option>\");");
document.writeln("		}");
document.writeln("	}");
document.writeln("	n++;");
document.writeln("}");
document.writeln("//now.addDays(-3);//加减日期操作");
document.writeln("//alert(now.Format(\"yyyy-MM-dd\"));");
document.writeln("</script>");
document.writeln("");
document.writeln("</select>");