text: ﻿$(function(){var u,n;window.prettyPrint&&window.prettyPrint(),moment.lang("en"),u={birthdayIso:ko.observable("1978-12-02"),birthdayFormat:ko.observable("2/12/78"),birthdayDate:ko.observable(new Date("1978-12-02T00:00:00")),birthdayMoment:ko.observable(moment("1978-12-02T00:00:00")),birthdayThisYearMoment:ko.observable(moment("2013-12-02T00:00:00"))},ko.applyBindings(u),$("#dp1").datepicker({format:"MM-DD-YYYY",autoHide:!1}),$("#dp2").datepicker(),$("#dp3").datepicker(),$("#dp3").datepicker(),$("#dp6").datepicker(),$("#dpYears").datepicker(),$("#dpMonths").datepicker();var i=moment([2012,1,20]),r=moment([2012,1,25]),t=$("#dp4").datepicker();t.on("changeDate",function(){var n=t.datepicker("get");$("#startDate").text(t.datepicker("getAsText")),(n&&n.valueOf())>(r&&r.valueOf())?$("#alert").show().find("strong").text("The start date cannot be after the end date"):($("#alert").hide(),i=n),t.datepicker("hide")});n=$("#dp5").datepicker();n.on("changeDate",function(){var t=n.datepicker("get");$("#endDate").text(n.datepicker("getAsText")),(t&&t.valueOf())<(i&&i.valueOf())?$("#alert").show().find("strong").text("The end date cannot be before the start date"):($("#alert").hide(),r=t),n.datepicker("hide")})})