function CambiaColore(aa,colore) {
	var bb = document.all ? document.all[aa] : document.getElementById ?
	document.getElementById(aa) : document[aa];
	if(document.all){
		bb=bb.parentElement;
	}
	else if(document.getElementById){
		bb=bb.parentNode;
	}
	if (bb)
		bb.bgColor = colore;
}

function controllaquantita(obj)
   {
   if (isNaN(obj.value) || parseInt(obj.value) < 1 || parseInt(obj.value) > 99)
      {
      alert('Immettere la quantità da ordinare!!');
	   	obj.focus();
			return false;
      }
		else { return true;  }
   }
	 
	 function ricerca(obj)
   {
      if(obj.value.length < 3)
         {
         alert("Devi inserire almeno tre caratteri per poter effettuare una ricerca!");
        	obj.focus();
         return false;
         }
			else { return true; } 
  }
	
	function schedakit(URL) {
						winemind = window.open( URL, 'winemind', 'width=500,top=5,left=100,height=560,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0' ); 
						winemind.resizeTo(500,560);
						winemind.focus();
									}	