 //<![CDATA[

function mapresize() {
  var head_height;
  var comandi_height;
  var footer_height;
  //var myWidth;
  var myHeight;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    //myWidth = window.innerWidth;
	//alert(myWidth);
    myHeight = window.innerHeight-12;
	head_height = document.getElementById("testalino").clientHeight;
  	comandi_height = document.getElementById("comandi").clientHeight;
	footer_height = document.getElementById("footer").clientHeight;
	//document.getElementById("footer").style.width=myWidth+"px";
	//alert(myHeight);
	//alert(geocode_height);
	//alert(comandi_height);
	//alert(welcome_height);
	//alert(login_height);
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    //myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
	head_height = document.getElementById("testalino").offsetHeight;
	comandi_height = document.getElementById("comandi").offsetHeight;
	footer_height = document.getElementById("footer").offsetHeight;
	//alert("a");
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    //myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
	head_height = document.getElementById("testalino").clientHeight;
  	comandi_height = document.getElementById("comandi").clientHeight;
	footer_height = document.getElementById("footer").clientHeight;
  }
  //alert(document.getElementById("geocode").clientHeight);
  document.getElementById("mappa").style.height=(myHeight-head_height-comandi_height-footer_height)+"px";
  //document.getElementById("mappa").style.height=(myHeight-269)+"px";
  //document.getElementById("personal").style.height=(myHeight-welcome_height-login_height-70)+"px";
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
}

function dirresize() {
  var content_height;
  var risultati_height;
  var myHeight;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
	content_height = document.getElementById("contentcolumn").clientHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    content_height = document.getElementById("contentcolumn").offsetHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    content_height = document.getElementById("contentcolumn").clientHeight;
  }
  document.getElementById("rightcolumn").style.height=(content_height)+"px";
    
}
function banresize(elemento) {
  var content_height;
  var risultati_height;
  var myHeight;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
	content_height = document.getElementById("contenuto").clientHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    content_height = document.getElementById("contenuto").offsetHeight-2;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    content_height = document.getElementById("contenuto").clientHeight;
  }
  document.getElementById(elemento).style.height=(content_height)+"px";
    
}
function contresize() {
  var head_height;
  var footer_height;
  //var myWidth;
  var myHeight;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    //myWidth = window.innerWidth;
    myHeight = window.innerHeight;
	head_height = document.getElementById("testalino").clientHeight;
	footer_height = document.getElementById("footer").clientHeight;
	/*alert(myHeight);
	alert(head_height);
	alert(footer_height);*/
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    //myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
	head_height = document.getElementById("testalino").offsetHeight-2;
	footer_height = document.getElementById("footer").offsetHeight;
	/*alert(myHeight);
	alert(head_height);
	alert(footer_height);*/
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    //myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
	head_height = document.getElementById("testalino").clientHeight;
  	//comandi_height = document.getElementById("comandi").clientHeight;
	footer_height = document.getElementById("footer").clientHeight;
  }
  //alert(document.getElementById("geocode").clientHeight);
  document.getElementById("contenuto").style.height=(myHeight-head_height-footer_height-45)+"px";
  //document.getElementById("mappa").style.height=(myHeight-269)+"px";
  //document.getElementById("personal").style.height=(myHeight-welcome_height-login_height-70)+"px";
  //window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
}

//]]>
 