function Ordinamento(valore){


switch(valore){

case "1" :

str = document.getElementById("Ord1").value;

if(str=="id desc" ){

document.getElementById("Ord1").value = "id asc";
}
else
{

document.getElementById("Ord1").value = "id desc";
}



document.getElementById("Ordine").value = "1";

document.forma.submit();
return;
case "2" :
str = document.getElementById("Ord2").value;
if(str=="provincia asc" ){
document.getElementById("Ord2").value = "provincia desc";
}
else
{
document.getElementById("Ord2").value = "provincia asc";
}
document.getElementById("Ordine").value = "2";
document.forma.submit();
return;
case "3" :
str = document.getElementById("Ord3").value;
if(str=="comune asc" ){
document.getElementById("Ord3").value = "comune desc";
}
else
{
document.getElementById("Ord3").value = "comune asc";
}
document.getElementById("Ordine").value = "3";
document.forma.submit();
return;
case "4" :
str = document.getElementById("Ord4").value;
if(str=="mq asc" ){
document.getElementById("Ord4").value = "mq desc";
}
else
{
document.getElementById("Ord4").value = "mq asc";
}
document.getElementById("Ordine").value = "4";
document.forma.submit();
return;
case "5" :
str = document.getElementById("Ord5").value;
if(str=="locali asc" ){
document.getElementById("Ord5").value = "locali desc";
}
else
{
document.getElementById("Ord5").value = "locali asc";
}
document.getElementById("Ordine").value = "5";
document.forma.submit();
return;
case "6" :
str = document.getElementById("Ord6").value;
if(str=="prezzo asc" ){
document.getElementById("Ord6").value = "prezzo desc";
}
else
{
document.getElementById("Ord6").value = "prezzo asc";
}
document.getElementById("Ordine").value = "6";
document.forma.submit();
return;
}


}
