function gotoUrl(url)
{
	if (url == "")
		return;
	location.href = url;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function voting_1()
{
	var nome_form = "form_voting";
	var i=0;
	var ok = false;

	for(i=0; i<=7; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
		{
			ok = true;
		}
	}

	if(ok == false)
	{
		alert("Please note: you did not make your selection on point 1.1");
		document.forms[nome_form]["0"].focus();
		return false;
	}
}

function voting_2()
{
	var nome_form = "form_voting";
	var i=0;
	var ok_1 = ok_2 = ok_3 = ok_4 = ok_5 = false;


	for(i=0; i<=2; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
			ok_1 = true;
	}
	for(i=3; i<=5; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
			ok_2 = true;
	}
	for(i=6; i<=8; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
			ok_3 = true;
	}
	for(i=9; i<=11; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
			ok_4 = true;
	}
	for(i=12; i<=14; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
			ok_5 = true;
	}


	if(ok_1 == false)
	{
		alert("Please note: you did not make your selection on point 2.1 - 1");
		document.forms[nome_form]["0"].focus();
		return false;
	}

	if(ok_2 == false)
	{
		alert("Please note: you did not make your selection on point 2.1 - 2");
		document.forms[nome_form]["3"].focus();
		return false;
	}

	if(ok_3 == false)
	{
		alert("Please note: you did not make your selection on point 2.1 - 3");
		document.forms[nome_form]["6"].focus();
		return false;
	}

	if(ok_4 == false)
	{
		alert("Please note: you did not make your selection on point 2.1 - 4");
		document.forms[nome_form]["9"].focus();
		return false;
	}

	if(ok_5 == false)
	{
		alert("Please note: you did not make your selection on point 2.1 - 5");
		document.forms[nome_form]["12"].focus();
		return false;
	}
}

function voting_3()
{
	var nome_form = "form_voting";
	var i=0;
	var ok_totale = false;

	for(i=0; i<=4; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_totale = true;
	}
	
	if(ok_totale == false)
	{
		alert("Please note: you did not make your selection on point 3.1");
		document.forms[nome_form]["0"].focus();
		return false;
	}
}

function voting_4()
{
	var nome_form = "form_voting";
	var i=0;
	var ok_1 = ok_2 = ok_3 = ok_4 = false;

	for(i=0; i<=12; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
		{
			ok_1 = true;
		}
	}

	for(i=13; i<=14; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
		{
			ok_2 = true;
		}
	}
	
	for(i=15; i<=17; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
		{
			ok_3 = true;
		}
	}

	for(i=18; i<=21; i++)
	{
		if(document.forms[nome_form].elements[i].checked)
		{
			ok_4 = true;
		}
	}

	if(ok_1 == false)
	{
		alert("Please note: you did not make your selection on point 4.1");
		document.forms[nome_form]["0"].focus();
		return false;
	}

	if(ok_2 == false)
	{
		alert("Please note: you did not make your selection on point 4.2");
		document.forms[nome_form]["13"].focus();
		return false;
	}

	if(ok_3 == false)
	{
		alert("Please note: you did not make your selection on point 4.3");
		document.forms[nome_form]["15"].focus();
		return false;
	}

	if(ok_4 == false)
	{
		alert("Please note: you did not make your selection on point 4.4");
		document.forms[nome_form]["18"].focus();
		return false;
	}
}

function voting_5()
{
	var nome_form = "form_voting";
	var i=0;
	var ok_1 = ok_2 = ok_3 = ok_4 = ok_5 = ok_6 = ok_7 = false;

	for(i=0; i<=3; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_1 = true;
	}

	for(i=4; i<=6; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_2 = true;
	}

	for(i=7; i<=9; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_3 = true;
	}

	for(i=10; i<=12; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_4 = true;
	}

	for(i=13; i<=14; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_5 = true;
	}

	for(i=15; i<=16; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_6 = true;
	}

	for(i=17; i<=18; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_7 = true;
	}

	if(ok_1 == false)
	{
		alert("Please note: you did not make your selection on point 5.1");
		document.forms[nome_form]["0"].focus();
		return false;
	}

	if(ok_2 == false)
	{
		alert("Please note: you did not make your selection on point 5.2");
		document.forms[nome_form]["4"].focus();
		return false;
	}

	if(ok_3 == false)
	{
		alert("Please note: you did not make your selection on point 5.3");
		document.forms[nome_form]["7"].focus();
		return false;
	}

	if(ok_4 == false)
	{
		alert("Please note: you did not make your selection on point 5.4");
		document.forms[nome_form]["10"].focus();
		return false;
	}

	if(ok_5 == false)
	{
		alert("Please note: you did not make your selection on point 5.5");
		document.forms[nome_form]["13"].focus();
		return false;
	}

	if(ok_6 == false)
	{
		alert("Please note: you did not make your selection on point 5.6");
		document.forms[nome_form]["15"].focus();
		return false;
	}

	if(ok_7 == false)
	{
		alert("Please note: you did not make your selection on point 5.7");
		document.forms[nome_form]["17"].focus();
		return false;
	}
}

function voting_6a()
{
	var nome_form = "form_voting";
	var i=0;
	var ok_1 = ok_2 = false;

	for(i=0; i<=6; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_1 = true;
	}

	for(i=7; i<=11; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_2 = true;
	}


	if(ok_1 == false)
	{
		alert("Please note: you did not make your selection on point 6A.1");
		document.forms[nome_form]["0"].focus();
		return false;
	}

	if(ok_2 == false)
	{
		alert("Please note: you did not make your selection on point 6A.2");
		document.forms[nome_form]["7"].focus();
		return false;
	}
}

function voting_6b()
{
	var nome_form = "form_voting";
	var i=0;
	var ok_1 = ok_2 = ok_3 = ok_4 = ok_5 = ok_6 = ok_7 = ok_8 = ok_9 = ok_10 = ok_11 = ok_12 = ok_13 = ok_14 = ok_15 = ok_16 = ok_17 = ok_18 = ok_19 = ok_20 = ok_21 = false;

	for(i=0; i<=5; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_1 = true;
	}
	for(i=6; i<=11; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_2 = true;
	}
	for(i=12; i<=17; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_3 = true;
	}
	for(i=18; i<=23; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_4 = true;
	}
	for(i=24; i<=29; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_5 = true;
	}
	for(i=30; i<=35; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_6 = true;
	}
	for(i=36; i<=41; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_7 = true;
	}
	for(i=42; i<=47; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_8 = true;
	}
	for(i=48; i<=53; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_9 = true;
	}
	for(i=54; i<=59; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_10 = true;
	}
	for(i=60; i<=65; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_11 = true;
	}
	for(i=66; i<=71; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_12 = true;
	}
	for(i=72; i<=77; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_13 = true;
	}
	for(i=78; i<=83; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_14 = true;
	}
	for(i=84; i<=89; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_15 = true;
	}
	for(i=90; i<=95; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_16 = true;
	}
	for(i=96; i<=101; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_17 = true;
	}
	for(i=102; i<=107; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_18 = true;
	}
	for(i=108; i<=113; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_19 = true;
	}
	for(i=114; i<=119; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_20 = true;
	}
	for(i=120; i<=125; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_21 = true;
	}


	if(ok_1 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Doxorubion");
		document.forms[nome_form]["0"].focus();
		return false;
	}

	if(ok_2 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Melphalan");
		document.forms[nome_form]["6"].focus();
		return false;
	}

	if(ok_3 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Mitomycin-C");
		document.forms[nome_form]["12"].focus();
		return false;
	}

	if(ok_4 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Cisplatin");
		document.forms[nome_form]["18"].focus();
		return false;
	}

	if(ok_5 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Gemcitabine");
		document.forms[nome_form]["24"].focus();
		return false;
	}

	if(ok_6 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Mitoxantrone");
		document.forms[nome_form]["30"].focus();
		return false;
	}

	if(ok_7 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Oxaliplatin");
		document.forms[nome_form]["36"].focus();
		return false;
	}

	if(ok_8 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Etoposide");
		document.forms[nome_form]["42"].focus();
		return false;
	}

	if(ok_9 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Irinotecan");
		document.forms[nome_form]["48"].focus();
		return false;
	}

	if(ok_10 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Paclitaxel");
		document.forms[nome_form]["54"].focus();
		return false;
	}

	if(ok_11 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Docetaxel");
		document.forms[nome_form]["60"].focus();
		return false;
	}

	if(ok_12 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - 5-Fluorouracil");
		document.forms[nome_form]["66"].focus();
		return false;
	}

	if(ok_13 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Carboplatin");
		document.forms[nome_form]["72"].focus();
		return false;
	}

	if(ok_14 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - CDDP+TNF alpha");
		document.forms[nome_form]["78"].focus();
		return false;
	}

	if(ok_15 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - CDDP+Dx");
		document.forms[nome_form]["84"].focus();
		return false;
	}

	if(ok_16 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - CDDP+MMC");
		document.forms[nome_form]["90"].focus();
		return false;
	}

	if(ok_17 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Oxaliplatin ip + leucovorin iv + 5-fluorouracil iv");
		document.forms[nome_form]["96"].focus();
		return false;
	}

	if(ok_18 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Oxaliplatin + irinotecan");
		document.forms[nome_form]["102"].focus();
		return false;
	}

	if(ok_19 == false)
	{
		alert("Please note: you did not make your selection on point 6B.1 - Carboplatin + INF alpha");
		document.forms[nome_form]["108"].focus();
		return false;
	}

	if(ok_20 == false)
	{
		alert("Please note: you did not make your selection on point 6B.2");
		document.forms[nome_form]["114"].focus();
		return false;
	}

	if(ok_21 == false)
	{
		alert("Please note: you did not make your selection on point 6B.3");
		document.forms[nome_form]["119"].focus();
		return false;
	}
}

function voting_7()
{
	var nome_form = "form_voting";
	var i=0;
	var ok_1 = ok_2 = false;

	for(i=0; i<=2; i++)
	{
		if(document.forms[nome_form][i].checked == true)
			ok_1 = true;
	}


	if(ok_1 == false)
	{
		alert("Please note: you did not make your selection on point 7.1");
		document.forms[nome_form]["0"].focus();
		return false;
	}
}
