function doCharacterCreateClassSelect(i) {
	getAction("character/create/2", {category: i, __FORMKEY: $("#__FORMKEY").val()}); 	
}

function doCharacterCreatePlayerSelect(i) {
	getAction("character/create/3", $("#f-character-create").serialize()); 	
}

function doCharacterCreateDesctiption(i) {
	var c = _arPlayerDescriptions[i];

	$("#f-user-character-create-h-player").val(i);

	$("#d-character-create-characters img").animate({opacity: .4}, "fast");
	$("#f-character-create-i-character-" + i).animate({opacity: 1});

	var mx = Math.max(c.vit, c.rei, c.agi, c.forc, c.inte, c.def_magic, c.atk_magic, c.def_physic, c.atk_physic, c.res, c.pe);

	expBarValue("#barDefMagic", c.def_magic, mx, c.def_magic, true);
	expBarValue("#barAtkMagic", c.atk_magic, mx, c.atk_magic, true);
	expBarValue("#barDefPhysic", c.def_physic, mx, c.def_physic, true);
	expBarValue("#barAtkPhysic", c.atk_physic, mx, c.atk_physic, true);

	expBarValue("#barForc", c.forc, mx, c.forc, true);
	expBarValue("#barInte", c.inte, mx, c.inte, true);
	expBarValue("#barAgi", c.agi, mx, c.agi, true);
	expBarValue("#barPee", c.pee, mx, c.pee, true);
	expBarValue("#barPe", c.pe, mx, c.pe, true);
	expBarValue("#barRei", c.rei, mx, c.rei, true);
	expBarValue("#barVit", c.vit, mx, c.vit, true);
	expBarValue("#barRes", c.res, mx, c.res, true);

	$('#i-character-create-img').attr('src', __site_absolute + 'images/characters/selection/' + i + '.jpg');

	$("#cnName").html(c.name);
	$("#cnCategory").html(c.category);
	$("#cnLife").html(c.life);
	$("#cnReiatsu").html(c.reiatsu);
	$("#cnPee").html(c.pee);
}
