if (typeof(jQuery) == 'function') { jQuery(document).ready(function($){ if ($.fn.cdcaptcha) { $.fn.cdcaptcha.globalDefaults = ({ headerText : 'Captcha', infoText : 'Proves you\'re human and slide to unlock.', lockedText : 'Locked', unlockedText : 'Unlocked', uitheme : 'ui-lightness', autoFormSubmit : false, slideCaptchaUp : 0 }); $('form.josForm').cdcaptcha({ submitElement : 'button[type="submit"]', random : '1KzZD1yHn8suiMciVPlztOkfYnr', scope : 'com_user' }); } else { alert('Captcha script is blocked!'); return false; } }); } else { alert("Core Design Captcha plugin: Missing jQuery JS!"); }