Check the following javascript code for any mistakes and explain what is wrong with it, asume all the images are named correctly and on the folder with the code
<html>

<head>
<link rel="icon" href="http://www.iconarchive.com/download/i87143/graphicloads/colorful-long-shadow/Restaurant.ico">
<TITLE> O 100 Saladas </TITLE>
</head>




<body  TEXT="blue" >
<center>


<I> 
<FONT FACE="Harlow Solid Italic"> 
<P> <FONT SIZE="7"> O 100 Saladas   </FONT> </P>  
</I>











<script type="text/javascript">

	img0= new Image();
	img0.src="restaurante.jpg";
	img1= new Image();
	img1.src="carne.jpg";
	img2= new Image();
	img2.src="carnea.jpg";
	img3= new Image();
	img3.src="carneb.jpg";
	img4= new Image();
	img4.src="carnes.jpg";
	img5= new Image();
	img5.src="carneab.jpg";
	img6= new Image();
	img6.src="carneas.jpg";
	img7= new Image();
	img7.src="carnebs.jpg";
	img8= new Image();
	img8.src="carneabs.jpg";
	
	img9= new Image();
	img9.src="peixe.jpg";
	img10= new Image();
	img10.src="peixea.jpg";
	img11= new Image();
	img11.src="peixeb.jpg";
	img12= new Image();
	img12.src="peixes.jpg";
	img13= new Image();
	img13.src="peixeab.jpg";
	img14= new Image();
	img14.src="peixeas.jpg";
	img15= new Image();
	img15.src="peixebs.jpg";
	img16= new Image();
	img16.src="peixeabs.jpg";
	
	img17= new Image();
	img17.src="vegetariano.jpg";
	img18= new Image();
	img18.src="vegeta.jpg";
	img19= new Image();
	img19.src="vegetb.jpg";
	img20= new Image();
	img20.src="vegets.jpg";
	img21= new Image();
	img21.src="vegetab.jpg";
	img22= new Image();
	img22.src="vegetas.jpg";
	img23= new Image();
	img23.src="vegetbs.jpg";
	img24= new Image();
	img24.src="vegetabs.jpg";
	
	



function reset()
{
var acompanhamento = ['arroz', 'batatas'];


// Limpar as checkboxes relativas ao acompanhamento
for (var each in acompanhamento){
	document.getElementById(acompanhamento[each]).checked = false;
}


// Faz reset à lista pendente ( Tipo de prato )
document.getElementById("prato").selectedIndex = 0;
				
um.src = img0.src; // Coloca imagem por defeito
		
}




function pedido()
{
	var pratoprincipal = document.getElementById("prato");
				
	var tipodeprato = pratoprincipal.options[pratoprincipal.selectedIndex].value;
	var arroz = document.getElementById('arroz').checked;
	var Batata = document.getElementById('batatas').checked;
	

if( (tipodeprato=="carne") && (arroz==false) && (Batata==false) ) { um.src=img1.src; }
if( (tipodeprato=="carne") && (arroz==true) && (Batata==false) ) { um.src=img2.src; }
if( (tipodeprato=="carne") && (arroz==false) && (Batata==true) ) { um.src=img3.src; }
if( (tipodeprato=="carne") && (arroz==true) && (Batata==true) ) { um.src=img5.src; }


if( (tipodeprato=="peixe") && (arroz==false) && (Batata==false) ) { um.src=img9.src; }
if( (tipodeprato=="peixe") && (arroz==true) && (Batata==false) ) { um.src=img10.src; }
if( (tipodeprato=="peixe") && (arroz==false) && (Batata==true) ) { um.src=img11.src; }
if( (tipodeprato=="peixe") && (arroz==true) && (Batata==true) ) { um.src=img13.src; }


if( (tipodeprato=="vegetariano") && (arroz==false) && (Batata==false) ) { um.src=img17.src; }
if( (tipodeprato=="vegetariano") && (arroz==true) && (Batata==false) ) { um.src=img18.src; }
if( (tipodeprato=="vegetariano") && (arroz==false) && (Batata==true) ) { um.src=img19.src; }
if( (tipodeprato=="vegetariano") && (arroz==true) && (Batata==true) ) { um.src=img21.src; }


}

reset();

</script>





















&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;


<!-- Lista pendente para escolher o tipo de prato -->
<select id="prato">
<option value="" disabled="disabled" selected="selected">Escolha um prato</option>
<option value="carne"> Carne </option>
<option value="peixe"> Peixe </option>
<option value="vegetariano"> Vegetariano </option>
</select>

<br>

<H4>
<input name="arroz" id="arroz" type="checkbox"/> Arroz
<input name="batatas" id="batatas" type="checkbox"/> Batatas
</H4>

<br>
<input type="button" value="Reset" onclick="reset();" ;>
<input type="button" value="Fazer pedido" onclick="pedido();" ;>

<br><br>
<img src="restaurante.jpg" border=1 width=400 height=400 name="um"></img>




</center>

</body>

</html>