function fillSelect(newOpt) 
{
   newSelection = newOpt.options[newOpt.selectedIndex].value;
   optionNameAll =  newOpt.name;
   optionName = optionNameAll.split("_");
		
  myForm = document.getElementById("order");
  mySelects = myForm.getElementsByTagName("select");
   
  
  for(i=1; i<mySelects.length; i++) 
		{   
				oneSelect = mySelects[i].name;
				oneSelectPieces = oneSelect.split("_");
				
				if(oneSelectPieces[1]==optionName[1])
				{
					 mySelects[i].value=newSelection;
				}
		} 
		
}
function fillMonogram(newOpt) 
{
   optionNameAll =  newOpt.name;
   newSelection = newOpt.value;
   optionName = optionNameAll.split("_");
		
  myForm = document.getElementById("order");
  myInputs = myForm.getElementsByTagName("input");
   
 
  for(i=1; i<myInputs.length; i++) 
		{   
				oneInput = myInputs[i].name;
				oneInputPieces = oneInput.split("_");
				if(oneInputPieces[1]==optionName[1])
				{
					 myInputs[i].value=newSelection;
				}
		} 
		
}
function fillInscription(newOpt) 
{
   
   optionNameAll =  newOpt.name;
   newSelection = newOpt.value;
   optionName = optionNameAll.split("-");
		
  myForm = document.getElementById("order");
  myInputs = myForm.getElementsByTagName("input");   
  
   for(i=1; i<myInputs.length; i++) 
		{   
				oneInput = myInputs[i].name;
				oneInputPieces = oneInput.split("-");
				if(oneInputPieces[2]==optionName[2])
				{
					 myInputs[i].value=newSelection;
				}
		} 
}


