Get Our Newsletter
") $microForm.replaceWith($successMessage) }) asyncForm.setDelegate({ validate:function ($inputs) { var errors = [], $email = $("[name=EMAIL]", $inputs), $name = $("[name=FNAME]", $inputs), $birthYear = $("#mce-BIRTHDAY-year", $inputs), $birthMonth = $("#mce-BIRTHDAY-month", $inputs) $(":input", $inputs).removeClass("error") function foundError ($input) { $input.addClass("error") errors.push( 1 ) return } function checkForEmpty($input) { if( $input.val() == "" ) { foundError($input) return true } return false } checkForEmpty( $name ) if( !checkForEmpty( $email ) ) { if( !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test( $email.val() ) ) { foundError( $email ) } } function validateBirthday() { var currentYear = new Date().getFullYear(), currentMonth = new Date().getMonth() + 1, inputYear = parseInt( $birthYear.val(), 10 ), inputMonth = parseInt( $birthMonth.val(), 10 ), targetAgeInMonths = 13 * 12, userAgeInMonths = (currentYear - inputYear) * 12 + (currentMonth - inputMonth) function foundBirthdayError() { foundError($birthMonth) return foundError($birthYear) } if( inputYear >= 1900 && inputMonth && userAgeInMonths >= targetAgeInMonths ) { return } else { return foundBirthdayError() } } validateBirthday() return errors.length == 0 } }) })?
HTTP_X-ABGROUP:A; ab_group:A; HTTP_MOBILEDELIVERY:no; mobile_format:false; controller:video; action:show; time:Sat, 18 Jun 2011 00:26:45 GMT;
glaucoma candice crawford sunburn treatment sams metropcs bishop eddie long single ladies
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.