function checkDomain(searchForm) { var canSubmit = false; var searchValue; if (searchForm.myfield) { searchValue = searchForm.myfield.value; if (searchValue != '') { var regExInvalidChars = /[^a-zA-Z0-9-\s.]+/; var regExInvalidChars1 = /[.-]/; if (regExInvalidChars.test(searchValue)||regExInvalidChars1.test(searchValue)) { alert('Invalid character in the phrase.\n\nOnly letters, numbers are allowed.') } else { canSubmit = true; } } if (searchValue.length <= 2) { alert('Minimum Word Lenght 3 Characters.') canSubmit = false; } } 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 popupt = { init: function() { $('#terms_2').css('opacity', '1.0'); $('#termsContainer2').show(); $('#terms_2').show(); $.ajax ( { url: db_prefix + '/legal/terms-suggestion.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 popupwho = { init: function(whst) { $('#whois_2').css('opacity', '1.0'); $('#whoisContainer2').show(); $('#whois_2').show(); $.ajax ( { url: whst, dataType: 'html', success: function ( html ) { $('.whois-popup-body').css({'overflow':'auto'}); $('.whois-popup-body').html( html ); return false; }, error: function ( errorData, errorType ) { $('.whois-popup-body').css('display','none'); return false; } } ); }, close: function () { $('#whoisContainer2').hide(); $('#whois_2').hide(); if(this.timeout) { clearTimeout(this.timeout); } } };