var calendarPopUp; var defaultMaxDate = '2020-12-31'; var defaultMinDate = '2017-03-28'; var dp_xml = ''+defaultMinDate+''+defaultMaxDate+'m/d/ybasepopupnono'; Event.observe(document, 'dom:loaded', function() { calendarPopUp = new EpochPrime($('calendarDate'),dp_xml); } );