function hasabok(p_allas)
{
	obj = init_fragment_obj();
	obj.hasaballas = p_allas;
	fragmentvaltoztatas(obj);
}
function hasabok_native(allapot)
{
	if(allapot == hasab_allas)
	{
		return;
	}
	
	var tart1 = G_('hasab1');
	var tart2 = G_('hasab2');
	
	if(allapot == 1)
	{
		G_('main').className = 'hatteretlen';
		tart1.className = 'max hasab cseredoboz';
		tart2.className = 'min hasab cseredoboz';
		hasab_allas = allapot;
	}
	else if(allapot == 2)
	{
		G_('main').className = 'hatteres';
		tart1.className = 'nagy hasab cseredoboz';
		tart2.className = 'kicsi hasab cseredoboz';
		hasab_allas = allapot;
	}
	else if(allapot == 3)
	{
		G_('main').className = 'hatteretlen';
		tart1.className = 'kozep hasab cseredoboz';
		tart2.className = 'kozep hasab cseredoboz';
		hasab_allas = allapot;
	}
	else if(allapot == 4)
	{
		G_('main').className = 'hatteretlen';
		tart1.className = 'kicsi hasab cseredoboz';
		tart2.className = 'nagy hasab cseredoboz';
		hasab_allas = allapot;
	}
	else if(allapot == 5)
	{
		G_('main').className = 'hatteretlen';
		tart1.className = 'min hasab cseredoboz';
		tart2.className = 'max hasab cseredoboz';
		hasab_allas = allapot;
	}
	
}

