function vai_alla_pag(numpag)
{
	if ((numpag != 0) && (numpag != '') && (numpag))
	{
		document.location.href = "/pagine/Tu6Genova-" + numpag + ".asp";
	}

}

function newWindow(address, width, height)
	{
		window.open(address,"HELP",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + width + ', height=' + height);
	}
	
function adjustIFrameSize (iframeWindow)
{
	if (iframeWindow.document.height)
	{
		var iframeElement;
		if (parent.document.getElementById(iframeWindow.name))
		{
			//SABA -- Codice originale
			iframeElement = parent.document.getElementById(iframeWindow.name);;
		}
		else
		{
			//SABA -- Su una pagina con tanti frame annidati il parent non funziona
			iframeElement = document.getElementById(iframeWindow.name);
		}
		iframeElement.style.height = iframeWindow.document.height + 5 +'px';
		iframeElement.style.width = iframeWindow.document.width + 2 + 'px';
	}
	else
	if (document.all)
	{
		var iframeElement;
		if (parent.document.all[iframeWindow.name])
		{
			//SABA -- Codice originale
			iframeElement = parent.document.all[iframeWindow.name];
		}
		else
		{
			//SABA -- Su una pagina con tanti frame annidati il parent non funziona
			iframeElement = document.all[iframeWindow.name];
		}
			
		if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat') 
		{
			/*
			iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 5 + 'px';
			iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 5 + 'px';
			*/
			iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 'px';
			iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 'px';

		}
		else
		{	
			/*
			iframeElement.style.height = iframeWindow.document.body.scrollHeight + 5 + 'px';
			iframeElement.style.width = iframeWindow.document.body.scrollWidth + 5 + 'px';
			*/
			iframeElement.style.height = iframeWindow.document.body.scrollHeight + 'px';
			iframeElement.style.width = iframeWindow.document.body.scrollWidth + 'px';
		}
	}
}
