function headerRez(){ w = $('#navigation').innerWidth(); $('.usercontent img').css('maxWidth',w); } function resetAjaxButtons(){ $('.ajaxButtonPlaceholder').each(function(){ $clone = $('#clone_'+$(this).attr('name')); $('#clonehidden_'+$(this).attr('name')).remove(); oldid = $clone.data('id'); $clone.attr('id',oldid ); $(this).replaceWith($clone); $clone.removeClass('hidden'); makeAjaxButton($('#'+oldid)); }); } function makeAjaxButton($el){ $el.removeAttr('disabled').click(function(){ newinp = $(this).clone(); newinp.data('id',newinp.attr('id')); newinp.attr('id','clone_'+$(this).attr('name')); newinphidden = $(''); newinphidden.attr('id','clonehidden_'+$(this).attr('name')); newinp.addClass('hidden'); try{ agent = navigator.userAgent.toLowerCase(); if(agent.indexOf('chrome') > -1 && agent.indexOf('safari') > -1 && agent.indexOf('opera') > -1){$(this).attr('disabled',true);} }catch(e){} $(this).addClass('ajaxButtonPlaceholder').css('backgroundImage','url(http://files.homepagemodules.de/b2001010/a_821_7ed1d5a4.gif)') .css('backgroundRepeat','no-repeat') .css('backgroundPosition','3px center') .css('paddingLeft','20px'); $(this).val('wait...'); $(this).parent().append(newinp).append(newinphidden); $f = $(this).closest('form'); $f.submit(); }); } function xob_redirect(url,msg){ text = msg ? msg : "Please wait - loading page"; goto = url ? url : 0; $('#xChatBase,#xChatGlobalBaseBox,#xChatMenu').hide(); $('.content').find('.spacer20').first().html('
loading

'+text+'

'); if(goto){window.location = goto} } function validateMail(email) { return ValideEmail(email); } function writeError(text) { listel = $('#errorlist li'); found = false; if($('#error_wrap').length == 0) { $('
').insertAfter('#breadcrumbs'); } if($('#errorlist').length == 0) { $('