only the first line of my javasript code works : I have used some code to fill my inputs bij an onlcick fucntion. Now the first line works but it seems that he skips the other lines what can i do?.

This is my code: 
`var InputProduct = document.getElementById("product");
var InputNaam = document.getElementById("Anaam");
var InputPrijs = document.getElementById("APrijs");
var InputVolgorde = document.getElementById("AvolgNR");`
	
	function fill($name, $prijs , $volgorde)
	{
		InputProduct.value = $name;
		 InputNaam.value = $name;
		  InputPrijs.value = $prijs;
		   InputVolgorde.value = $volgorde;	
	}
and this is how i use the onclick:

`onclick="fill('<?php echo $adviesprijzen['Naam']; ?>', '<?php echo $adviesprijzen['BedragInclBTW']; ?>', '<?php echo $adviesprijzen['volgorde']; ?>')"`

