// Java Document

//funzioni necessarie a caricare un nuovo sottocontenuto in un singolo iframe definito con id

function nuova_finestra(src) {
	window.open(src,src);
	return;
}

function popupcentrato(src,width,height) {
	
	posx=Math.floor((screen.width-width)/2);
	posy=Math.floor((screen.height-height)/2);
	
	window.open(src,"","scrollbars=yes,status=yes,toolbar=no,width="+width+",height="+height+",top="+posy+",left="+posx);
	
	return;
}

function switchIFrame(id_objframe,link_contenuto) {	
	/*alert(link_contenuto);
	alert(id_objframe);*/
	
	var objframe=document.getElementById(id_objframe);

	if(objframe==null)
		return -1;
		
	objframe.src=link_contenuto;
	return 0;
}