function form_callback(responseXML) {
	var status = $('status', responseXML).text();

	if (status == 'OK') {
		eval($('action', responseXML).text());
	} else {
		$('div.form_error').remove();
		$('input').removeClass('inp_textbox_err');
		$('input').addClass('inp_textbox');
		$('error',responseXML).each(function() {
			var field = $('field', this).text();
			var msg = $('msg', this).text();
			var obj = $('#'+field);
			obj.addClass('inp_textbox_err');

			if ($('#'+field).next().is("img")) {
				obj = $('#'+field).next();
			}

			if (msg) {
				obj.after('<div style="color: #C00; font-size: 10px;" class="form_error">'+msg+'</div>');
			}

		});
	}
}

