if(!payFinesDrawn) {
dojo.connect(oilsSelfckCCSubmit, 'onClick',
function() {
+
+ var year = oilsSelfckCCYear.attr('value');
+ var month = oilsSelfckCCMonth.attr('value');
+
+ var today = new Date();
+ today = new Date(today.getFullYear(), today.getMonth()); // truncate the date & time;
+ var expire = new Date(year, Number(month)-1);
+
+ if(!year || !month || expire < today) {
+ alert('Credit Card expire date is invalid or in the past.');
+ oilsSelfckCCMonth.domNode.focus();
+ return;
+ }
+
hideMe($('pay_fines_now'));
unHideMe($('pay_fines_confirm'));