function reset_ck(obj){ $('#'+obj).attr('src','/CaptchaSecurityImages.php?ckn='+obj+'&rnd='+Math.random()); } $(function(){ $('body').prepend(''); $('form').each(function(){ if($(this).attr('method')=='post' && $(this).attr('class')!='nosql') $(this).attr('action','data.php').attr('target','sql'); }); });