function JoinPro(frmname){ document.getElementById(frmname).submit(); } $('#open-terms-sem a, #open-terms-foot a').click(function(){ var open_terms = $(this).parent(); if ( $('.show-terms',open_terms).is(':hidden') ) { $('.show-terms',open_terms).css('display','block'); $.ajax ( { url: '/legal/regterms.html', dataType: 'html', success: function ( html ) { $('.show-terms',open_terms).css({'overflow':'auto','background':'none'}); $('.show-terms',open_terms).html( html ); return false; }, error: function ( errorData, errorType ) { $('.show-terms',open_terms).css('display','none'); return false; } } ); } else $('.show-terms',open_terms).css('display','none'); return false; }); var db_prefix = ''; var popup = { init: function() { $('#help_2').css('opacity', '1.0'); $('#helpContainer2').show(); $('#help_2').show(); $.ajax ( { url: db_prefix + '/website-explorer/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.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); } } };