$(document).ready(function(){ $( ".btn_show" ) . click( function(){ var form_content = $( ".form_content" ) . html(); $( ".form_content" ) . html( "" ); $( ".form_holder" ) . hide( "slowly" ) . html( form_content ) . show( "slowly" ); init_content(); return false; }); function init_content() { $( ".btn_send" ) . click( function(){ var arr_f = [ "first_name", "headline", "storyline", "capcha", "email", ]; res = true; for(i=0; i').show() ; else { $( ".capimage" ) . click(); alert(ret.message); } }, 'json' ); } return false; }); $( ".required_text") . change( function(){ if (! inp_verify_text( $( this ) . attr( "name" ) ) ) { return false; } }); $( ".capimage" ) . click( function(){ d = new Date(); $( this ).attr("src", "./kap.php?PHPSESSID=jobvfk02st9sorugjt33auaof5&ts=" + d.getTime()); }); } });