function cm_bwcheck(){
	this.agent=navigator.userAgent.toLowerCase()
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	return this
}

window.onload=function(){
	setta_dimensione_iframe();
}

function setta_dimensione_iframe()
{
var bw=cm_bwcheck();
var altezza;
var is_mozzilla=bw.moz;
//alert(screen.height);
if(is_mozzilla == true) {
		altezza=window.innerHeight;
		altezza=altezza*70;
		altezza=altezza/100;
	}
else {
		altezza=document.body.clientHeight;
		altezza=altezza*70;
		altezza=altezza/100;
	}
if (screen.height == 768)
{
	if(is_mozzilla == true) {
		altezza=window.innerHeight;
		altezza=altezza*70;
		altezza=altezza/100;
	}
	else {
		altezza=document.body.clientHeight;
		altezza=altezza*70;
		altezza=altezza/100;
	}
}
else if (screen.height == 800)
{
	if(is_mozzilla == true) {
		altezza=window.innerHeight;
		altezza=altezza*70;
		altezza=altezza/100;
	}
	else {
		altezza=document.body.clientHeight;
		altezza=altezza*70;
		altezza=altezza/100;
	}
}
else if (screen.height == 1024)
{
	if(is_mozzilla == true) {
		altezza=window.innerHeight;
		altezza=altezza*80;
		altezza=altezza/100;
	}
	else {
		altezza=document.body.clientHeight;
		altezza=altezza*80;
		altezza=altezza/100;
	}
}
else if (screen.height > 1024)
{
	if(is_mozzilla == true) {
		altezza=window.innerHeight;
		altezza=altezza*80;
		altezza=altezza/100;
	}
	else {
		altezza=document.body.clientHeight;
		altezza=altezza*80;
		altezza=altezza/100;
	}
}
altezza=Math.floor(altezza);
//alert(altezza);
var lista=document.getElementsByTagName("iframe");
//alert(lista.item(0).className);
lista.item(0).height=altezza;
document.cookie="altezza ="+escape(altezza)+";";
}