function control_words(name)
{
	t_value = $('#'+name).val();
	if(name == 'aw')
	{
		ts = '所有单词';
	}
	else if(name == 'bw')
	{
		ts = '所有音标';
	}
	else
	{
		ts ='所有解释';
	}
	if(t_value == '0')
	{
		$('.'+name).each(function(){$(this).css('display','none');});
		
		if(name == 'aw')
		{
		$('.test_words').each(function(){$(this).css('display','block');});
		$('.optn_word').each(function(){$(this).html('打开单词');});
		}
		$('#cwords_'+name).html('打开'+ts);
		$('#'+name).val('1');
		
	}
	else
	{
		$('.'+name).each(function(){$(this).css('display','block');});
		if(name == 'aw')
		{
		$('.test_words').each(function(){$(this).css('display','none');});
		$('.optn_word').each(function(){$(this).html('关闭单词');});
		}
		$('#cwords_'+name).html('关闭'+ts);
		$('#'+name).val('0');
		
	}
}

function isright(id_num,words)
{
	if($('#ainput_'+id_num).val() == words)
	{
	    
		$('#img_'+id_num).html('<img src="'+base_url_uuuti+'www/images/1.jpg">');
	}
	else
	{
		$('#img_'+id_num).html('<img src="'+base_url_uuuti+'www/images/2.jpg">');
	}
}

function open_words(id_num,words)
{
	
	if($('#words_'+id_num).css('display') == 'none')
	{
		$('#open_'+id_num).html('打开单词');
		$('#words_'+id_num).css('display','block')
		$('#a_'+id_num).css('display','none')
	}
	else
	{
		$('#open_'+id_num).html('关闭单词');
		$('#words_'+id_num).css('display','none')
		$('#a_'+id_num).css('display','block')
	}
}




