Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- if(typeof jQuery === 'function') {
- jQuery(function($) {
- function refreshCP() {
- rndId = Math.floor((Math.random() * 999) + 100);
- $("#CaptchaImage").attr('src', 'Captcha.ashx?w=200&h=60&id=' + rndId + '&sid=1&t=045642');
- return false;
- }
- if(typeof jQuery === 'function') {
- $(function() {
- $("#pbtnRegisterCS").before('<div style="clear: both; font: normal 12px/1.2em Arial;"><table cellpadding="0" cellspacing="0" style="border-spacing: 2px; border-collapse: initial; margin-top: 10px;"><tr><td colspan="2"><div id="CaptchaPanel"><label for="CaptchaImage" id="CaptchaImageLabel" style="font-weight: bold;">Verification Number:</label><br><img id="CaptchaImage" style="height: 60px; width: 200px; border-width: 0px; margin-right: 3px;"><input type="image" name="ChangeImageLink" id="ChangeImageLink" class="btncptChange" src="images/refresh_icon.gif" style="border-width: 0px;vertical-align: top;"></div></td></tr><tr id="trCaptchaField" style="padding-top: 5px;"><th class="rowHeader" align="left"><label for="CaptchaInput" id="CaptchaInputLabel">Type in the number<br>you see in the image:</label></th><td><input name="CaptchaInput" type="text" id="CaptchaInput" tabindex="4" style="width: 80px; margin-right: 3px;"><span id="CaptchaRequired" title="You must enter the number in the image." style="color: Red; display: none;">*</span><span id="ctl04" style="color: Red;">*</span></td></tr></table></div>');
- $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl03_RegisterButton").attr('onclick', '').click(function() {
- var value = $("#CaptchaInput").val() == rndId;
- if(!value) {
- $("#CaptchaInput").addClass('ui-state-error');
- } else {
- $("#CaptchaInput").removeClass('ui-state-error');
- if(!ShowError()) {
- WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$wpm$gwpPageContent$PageContent$Login$ctl03$RegisterButton", "", true, "Register", "", false, false));
- }
- }
- return value;
- });
- $("#ChangeImageLink").click(function(e) {
- e.preventDefault();
- return refreshCP();
- });
- $("#returnCustomers, #newCustomers").height(340);
- $("#pbtnRegisterCS").attr('align', 'left');
- $("#srhBarData").css({"display": "none","visibility": ""});
- $(".brkVrtLn").css({"display": "none","visibility": ""});
- $("#searchspringHomeSearch").css({"width": "805px"});
- $("#srhTxtTop").css({"width": "805px"});
- $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl02_trRememberMe").insertAfter($('[id*="LoginButton"]')).css('margin-top', '20px');
- $(".newCustomer > div:eq(3)").insertAfter($('[id*="RegisterButton"]')).css('margin-top', '20px');
- $("#ctl00_ctl00_wpm_gwpPageContent_PageContent_Login_ctl02_LoginPanel > p").css({"margin-top": "0px"});
- refreshCP();
- });
- }
- });
- }
- } catch(ex) {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement