function checkDomain(searchForm) { var canSubmit = false; var searchValue; if (searchForm.urls) { searchValue = searchForm.urls.value; if (searchValue != '') { var regExInvalidChars = /[^a-zA-Z0-9-\/\s.\/s?\/s=]+/; if (regExInvalidChars.test(searchValue)) { alert('Invalid character in Url.\n\nOnly letters, numbers, hyphens and slashes are allowed.') } else { canSubmit = true; } } if (searchValue.length == 0) { alert('Please enter Url.') } } if (canSubmit) { return true; } else { return false; } } function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'none') e.style.display = 'block'; else e.style.display = 'none'; } var db_prefix = ''; var popup = { init: function() { $('#help_2').css('opacity', '1.0'); $('#helpContainer2').show(); $('#help_2').show(); $.ajax ( { url: db_prefix + './help-page.html', dataType: 'html', success: function ( html ) { $('.help-popup-body').css({'overflow':'auto'}); $('.help-popup-body').html( html ); return false; }, error: function ( errorData, errorType ) { $('.help-popup-body').css('display','none'); return false; } } ); }, close: function () { $('#helpContainer2').hide(); $('#help_2').hide(); if(this.timeout) { clearTimeout(this.timeout); } } }; var popupt = { init: function() { $('#terms_2').css('opacity', '1.0'); $('#termsContainer2').show(); $('#terms_2').show(); $.ajax ( { url: db_prefix + '/legal/terms-explorer.html', dataType: 'html', success: function ( html ) { $('.terms-popup-body').css({'overflow':'auto'}); $('.terms-popup-body').html( html ); return false; }, error: function ( errorData, errorType ) { $('.terms-popup-body').css('display','none'); return false; } } ); }, close: function () { $('#termsContainer2').hide(); $('#terms_2').hide(); if(this.timeout) { clearTimeout(this.timeout); } } }; var popupp = { init: function() { $('#policy_2').css('opacity', '1.0'); $('#policyContainer2').show(); $('#policy_2').show(); $.ajax ( { url: db_prefix + '/legal/privacy-policy.htm', dataType: 'html', success: function ( html ) { $('.policy-popup-body').css({'overflow':'auto'}); $('.policy-popup-body').html( html ); return false; }, error: function ( errorData, errorType ) { $('.policy-popup-body').css('display','none'); return false; } } ); }, close: function () { $('#policyContainer2').hide(); $('#policy_2').hide(); if(this.timeout) { clearTimeout(this.timeout); } } }; var popupr = { init: function() { $('#refund_2').css('opacity', '1.0'); $('#refundContainer2').show(); $('#refund_2').show(); $.ajax ( { url: db_prefix + '/legal/refunds.html', dataType: 'html', success: function ( html ) { $('.refund-popup-body').css({'overflow':'auto'}); $('.refund-popup-body').html( html ); return false; }, error: function ( errorData, errorType ) { $('.refund-popup-body').css('display','none'); return false; } } ); }, close: function () { $('#refundContainer2').hide(); $('#refund_2').hide(); if(this.timeout) { clearTimeout(this.timeout); } } }; var popuplimit = { init: function() { $('#request_2').css('opacity', '1.0'); $('#requestContainer2').show(); $('#request_2').show(); $.ajax ( { url: db_prefix + '/legal/reqlimit.html', dataType: 'html', success: function ( html ) { $('.request-popup-body').css({'overflow':'auto'}); $('.request-popup-body').html( html ); return false; }, error: function ( errorData, errorType ) { $('.request-popup-body').css('display','none'); return false; } } ); }, close: function () { $('#requestContainer2').hide(); $('#request_2').hide(); if(this.timeout) { clearTimeout(this.timeout); } } };