var send = function ( count ) {
$.ajax({
url: "reg/test.php",
async: false,
type: "POST",
data: {scategory:category},
success: function(data) {
var date = new Date();
$("#textlogframe").prepend(date.getHours()+':'+date.getMinutes()+' - '+data+'\n');
if ( --count ) send( count );
}
});
};
send(coll);