Changed plain javascript check for an automated jquery check (will not require new fields to be added to a list of calls).