$post('func.php', 'code=1234567890', function(text) {if(text==1) {alert('1');} });
setTimeout(function () {func(text);},0);