function checkDomain(searchForm) { if (document.getElementById('resall')) document.getElementById('resall').style.display = 'none'; var searchValue; if (searchForm.urls) { searchValue = searchForm.urls.value; searchValue = searchValue.replace('www.',''); searchValue = searchValue.replace('http://',''); searchValue = searchValue.replace('https://',''); if (searchValue != '') { var regExInvalidChars = /[^a-zA-Z0-9-_\/\s.\/s?\/s=\/s:]+/; if (regExInvalidChars.test(searchValue)) { alert('Invalid character in Url.\n\nOnly letters, numbers, hyphens and slashes are allowed.'); return false; } } if (searchValue.length == 0) { alert('Please enter Url.'); return false; } if (searchValue.length > 225) { alert('Url is longer than 225 characters.') return false; } return true; } 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 popupt = { init: function() { $('#terms_2').css('opacity', '1.0'); $('#termsContainer2').show(); $('#terms_2').show(); $.ajax ( { url: db_prefix + '/legal/terms-analyzer.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 db_prefix = ''; var poptest = { init: function(dir_1,dir_2,url_1,body_1,head_1) { $(dir_1).css('opacity', '1.0'); $(dir_2).show(); $(dir_1).show(); $(head_1).show(); $.ajax ( { url: db_prefix + url_1, dataType: 'html', success: function ( html ) { $(body_1).css({'overflow':'auto'}); $(body_1).html( html ); return false; }, error: function ( errorData, errorType ) { $(body_1).css('display','none'); return false; } } ); }, close: function (dir_1,dir_2,head_1) { $(dir_2).hide(); $(dir_1).hide(); $(head_1).hide(); $(head_1).css('display','none'); if(this.timeout) { clearTimeout(this.timeout); } } };