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