

function marcarColorPared3(colorPared,  bloc){
	
	var myTextField;

	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("fondo", colorPared);
		
	}else{
		window.alert('errore');
	}
}

function changeColor(colorPared){
	
	var myTextField;
	window.alert('colorPared='+colorPared);
	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("vinilo1", colorPared);
		
	}else{
		window.alert('errore');
	}
}

function change_color(){
	
	var myTextField;
	var colorPared;

	var mylist=document.getElementById("selectcolore")
	var val = mylist.options[mylist.selectedIndex].label;
	//alert('selectedindex='+mylist.selectedIndex+' val='+val);

	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("fondo", val);
		
	}else{
		window.alert('errore');
	}
}

function change_color1(){
	
	var myTextField;
	var colorPared;

	var mylist=document.getElementById("selectcolore1")
	var val = mylist.options[mylist.selectedIndex].label;
	//alert('selectedindex='+mylist.selectedIndex+' val='+val);

	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("fondo", val);
		
	}else{
		window.alert('errore');
	}
}

function change_color2(){
	
	var myTextField;
	var colorPared;

	var mylist=document.getElementById("selectcolore2")
	var val = mylist.options[mylist.selectedIndex].label;
	//alert('selectedindex='+mylist.selectedIndex+' val='+val);

	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("fondo22", val);
		
	}else{
		window.alert('errore');
	}
}

function change_color3(){
	
	var myTextField;
	var colorPared;

	var mylist=document.getElementById("selectcolore3")
	var val = mylist.options[mylist.selectedIndex].label;
	//alert('selectedindex='+mylist.selectedIndex+' val='+val);

	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("fondo222", val);
		
	}else{
		window.alert('errore');
	}
}


function change_color1(){
	
	var myTextField;
	var colorPared;

	var mylist=document.getElementById("selectcolore1")
	var val = mylist.options[mylist.selectedIndex].label;

	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("fondo", val);
		
	}else{
		window.alert('errore');
	}
}

function toggleSet(rad) 
{ 
	var type = rad.value; 
	//alert(type);

	var myTextField;

	if(document.getElementById){
		myTextField=document.getElementById('combi_id2');
		myTextField.SetVariable("orientazione", type);
		//window.alert('fatto');
	}else{
		//window.alert('errore');
	}
  
} 


