
function the_size(risultati)
{
          
	  
        var myWidth = 0, myHeight = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
          //Non-IE
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
        } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
          //IE 6+ in 'standards compliant mode'
           myWidth = document.documentElement.clientWidth;
           myHeight = document.documentElement.clientHeight;
        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
           //IE 4 compatible
           myWidth = document.body.clientWidth;
           myHeight = document.body.clientHeight;
        }
	//alert(myHeight);  
	document.getElementById("risultati").style.height=(myHeight-205)+"px";  // era a 190...questo modifica i risultati e le offerte
	
	//document.getElementById("supportingText").style.height=(myHeight-231)+"px";
}


function the_size1(risultati)
{
          
	  
        var myWidth = 0, myHeight = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
          //Non-IE
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
        } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
          //IE 6+ in 'standards compliant mode'
           myWidth = document.documentElement.clientWidth;
           myHeight = document.documentElement.clientHeight;
        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
           //IE 4 compatible
           myWidth = document.body.clientWidth;
           myHeight = document.body.clientHeight;
        }
	//alert(myHeight);  
	//document.getElementById("risultati").style.height=(myHeight-231)+"px"; 
	
	document.getElementById("supportingText").style.height=(myHeight-164)+"px";
}



function the_size2(risultati)
{
         // RISULTATI = 3 -- scheda tecnica
	 // RISULTATI = 4 -- Pagina centrale index sito
	 // RISULTATI = 5 -- PAGINA CARRELLO
	 // RISULTATI = 6 -- PAGINA riepilogo ordine
	 // RISULTATI = 7 -- PAGINA contenuto istituzionale
	 // RISULTATI = 8 -- PAGINA guasti e garanzie
	 
	  
        var myWidth = 0, myHeight = 0;
        if( typeof( window.innerWidth ) == 'number' ) {
          //Non-IE
          myWidth = window.innerWidth;
          myHeight = window.innerHeight;
		  
        } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
          //IE 6+ in 'standards compliant mode'
           myWidth = document.documentElement.clientWidth;
           myHeight = document.documentElement.clientHeight;
		   
        } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
           //IE 4 compatible
           myWidth = document.body.clientWidth;
           myHeight = document.body.clientHeight;
        }
		//alert(myHeight);  
		document.getElementById("risultati").style.height=(myHeight-223)+"px";
		//if (risultati == 1) document.getElementById("risultati").style.height=(myHeight-223)+"px";	
		//if (risultati == 2) document.getElementById("risultati").style.height=(myHeight-221)+"px";
		//if (risultati == 3) document.getElementById("risultati").style.height=(myHeight-221)+"px";
	 	//if (risultati == 4) document.getElementById("risultati").style.height=(myHeight-262)+"px";
	 	//if (risultati == 5) document.getElementById("risultati").style.height=(myHeight-210)+"px";
	 	//if (risultati == 6) document.getElementById("risultati").style.height=(myHeight-229)+"px";
	 	//if (risultati == 7) document.getElementById("risultati").style.height=(myHeight-273)+"px";
	 	//if (risultati == 8) document.getElementById("risultati").style.height=(myHeight-238)+"px";
	 
}





