
function ValueOfCheck(FormName, FieldName)
{
	/*if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	//var objCheckBoxes = document.forms['frmAnalisiDinamica'].elements['chktbAnalisilunividstrumento[]'];

	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		ValueOfCheck= objCheckBoxes.value;
	else
		// set the check value for all check boxes
		for(var i = 0; i < countCheckBoxes; i++)
		{	
			if (objCheckBoxes[i].checked == true)
			{
				return  objCheckBoxes[i].value;		
			}
		}
		*/
}



function SetAllCheckBoxes(FormName, FieldName, CheckValue)
{
	if(!document.forms[FormName])
		return;
	var objCheckBoxes = document.forms[FormName].elements[FieldName];
	//var objCheckBoxes = document.forms['frmAnalisiDinamica'].elements['chktbAnalisilunividstrumento[]'];

	if(!objCheckBoxes)
		return;
	var countCheckBoxes = objCheckBoxes.length;
	if(!countCheckBoxes)
		objCheckBoxes.checked = CheckValue;
	else
		// set the check value for all check boxes
		for(var i = 0; i < countCheckBoxes; i++)
			objCheckBoxes[i].checked = CheckValue;
}


function ApriInterrogazione(lsLocazione)
{
	lsParametri = 'menubar=no,location=no,scrollbars=no,toolbar=no,titlebar=no,width=760,height=340';
	ApriPopup(lsLocazione,'interrogazione',lsParametri);
} 
function ApriInterrogazioneIndici(lsLocazione)
{
	lsParametri = 'menubar=no,location=no,scrollbars=no,toolbar=no,titlebar=no,width=760,height=410';
	ApriPopup(lsLocazione,'interrogazione',lsParametri);
} 

function ApriFinestraStandard(lsLocazione)
{
	lsParametri = 'menubar=no,location=no,scrollbars=yes,toolbar=no,titlebar=no,width=1024,height=800';
	ApriPopup(lsLocazione,'aiuti',lsParametri);
	
}

function ApriAiuti(lsLocazione)
{
	lsParametri = 'menubar=no,location=no,scrollbars=no,toolbar=no,titlebar=no,width=500,height=550';
	ApriPopup(lsLocazione,'aiuti',lsParametri);
} 

function ApriPopup(lsLocazione, lsNomeFinestra, lsParametri) 
{
	TestString = 'no';
	TestPopup = window.open(lsLocazione,lsNomeFinestra,lsParametri);
	TestString = TestPopup;
	if(TestString == 'no' || TestString == null)
	{
		alert('Il vostro browser non supporta le finestre di POPUP - Per il corretto funzionamento di eXact Suite è necessario cambiare i settaggi del proprio browser ');
		return false;
	}
	else
		return true;
}