//apre la home page dinamica dell'autore facendo prima il test su flash
function aprimi(autore, nomewin, ww, hh, scrl)
{

	// autore: cartella dell'autore (es.: augias)
	// ww: width della finestra
	// hh: height della finestra
	// scrl: scrollbars yes o no
	
	var init="/flashchk.html";
	
	var strWW; 
	var strHH; 
	var strSc;
	
	strWW = "" + ww;
	strHH = "" + hh;
	
	if (scrl != "yes")
		strSc = "no";
	else
		strSc = "yes";
	window.open("" + autore + init, nomewin,
		    "width="+ strWW +",height="+ strHH +",scrollbars="+ strSc +",toolbar=no,directories=no,alwaysRaised,status=no,menubar=no,copyhistory=no");
}

//apre la home page statica dell'autore (senza animazione flash)
function apriHomePage(autore, nomewin, ww, hh, scrl)
{
	// autore: cartella dell'autore (es.: augias)
	// ww: width della finestra
	// hh: height della finestra
	// scrl: scrollbars yes o no
	
	var features = "";
	var init="/index.html";
	
	var strWW; 
	var strHH; 
	var strSc;
	
	strWW = "" + ww;
	strHH = "" + hh;
	
	if (scrl != "yes")
		strSc = "no";
	else
		strSc = "yes";

	features = "toolbar=yes,scrollbars=" + strSc + ",location=yes,status=yes,resizable=yes,menubar=yes,width=" +ww+ ",height=" + hh;
	window.open("" + autore + init, nomewin, features);
}

//apre la home page esterna dell'autore
function apriHomePageEsterna(autore, nomewin, ww, hh, scrl)
{
	// autore: cartella dell'autore (es.: augias)
	// ww: width della finestra
	// hh: height della finestra
	// scrl: scrollbars yes o no
	
	var features = "";
	var init="";
	
	var strWW; 
	var strHH; 
	var strSc;
	
	strWW = "" + ww;
	strHH = "" + hh;
	
	if (scrl != "yes")
		strSc = "no";
	else
		strSc = "yes";

	features = "toolbar=yes,scrollbars=" + strSc + ",location=yes,status=yes,resizable=yes,menubar=yes,width=" +ww+ ",height=" + hh;
	window.open("" + autore + init, nomewin, features);
}
