function hl(id,box)
{
	document.getElementById('ccc1').style.background='';
	document.getElementById('ccc2').style.background='';
	document.getElementById('ccc3').style.background='';
	document.getElementById('ccc4').style.background='';
	document.getElementById(id).style.background='#666666';
	document.getElementById(box).checked=true;
	document.getElementById('raspuns').style.display='block';
}

function foto(id,img)
{
document.getElementById('mimg').style.backgroundImage ="url("+img+")";
document.getElementById('small_'+id).className ="smallimg_white";
}


function overcell(rand,coloana)
{

	if (rand>0)
	{
		for (i=0;i<rand; i++)
			{
					document.getElementById('cell_'+i+'_'+coloana).style.backgroundColor ="#f4f4f4";
			}
	}
	if (coloana>0)
	{
		for (i=0;i<coloana; i++)
			{
					document.getElementById('cell_'+rand+'_'+i).style.backgroundColor ="#f4f4f4";
			}
	}

				document.getElementById('cell_'+rand+'_'+coloana).style.backgroundColor ="#999999";
				document.getElementById('cell_'+rand+'_'+coloana).style.color ="#ffffff";
				document.getElementById('cell_'+rand+'_'+coloana).style.cursor ="pointer";
}
function outcell(rand,coloana)
{
	if (rand>0)
	{
		for (i=0;i<rand; i++)
			{
					document.getElementById('cell_'+i+'_'+coloana).style.backgroundColor ="#ffffff";
			}
	}
	if (coloana>0)
	{
		for (i=0;i<coloana; i++)
			{
					document.getElementById('cell_'+rand+'_'+i).style.backgroundColor ="#ffffff";
			}
	}
				document.getElementById('cell_'+rand+'_'+coloana).style.backgroundColor ="#ffffff";
				document.getElementById('cell_'+rand+'_'+coloana).style.color ="#000000";

}


function eee(s,r)
{
	document.getElementById('c'+s).value ="1";
	var tt=0;
		for (i=1;i<=5;i++)
		{
		var ss=i-1;
		var qq=document.getElementById('c'+ss).value
		
			if (qq==1)
				{
				tt=tt+1;
				}
			if (i!=r)
			{
			document.getElementById('s'+s+'r'+i).className ="imgeval";
			}
			else
			{
			document.getElementById('s'+s+'r'+i).className ="imgevalo";
			}
		}
	if (tt==5)
	{
		document.getElementById('gogo').disabled=false
	}
}

function show()
{
document.getElementById('black').style.display='block'
document.getElementById('more').style.display='block'
}
function hide()
{
document.getElementById('black').style.display='none'
document.getElementById('more').style.display='none'
}
function sjoc(id1,id2)
{
document.getElementById(id1).style.display='block'
document.getElementById(id2).style.display='block'
}
function hjoc(id1,id2)
{
document.getElementById(id1).style.display='none'
document.getElementById(id2).style.display='none'
}

