rendered paste body// Verifies The Expiry Date Isnt In The Past. Returns true If Expiry Is In The Future. function creditcard_expiry_verify () { thismonth = <?php print(date("n")); ?>; thisyear = <?php print(date("Y")); ?>; ccexpirymonthfield = document.wpac_ccform.EPS_EXPIRYMONTH; ccexpiryyearfield = document.wpac_ccform.EPS_EXPIRYYEAR; if (ccexpiryyearfield == thisyear) { if (ccexpirymonthfield >= thismonth) { return true; } else { return false; } } else { return true; }}function cc_post_verifydetails () { cc_checkexpiry = creditcard_expiry_verify(); if (cc_checkexpiry == false) { alert("Error - Card Has Expired. Please Update Expiry Month/Year"); return false; } // Add Card Number/CCV Checks Here. return true;}