/*	checks all none of the check boxes on the page
Created by 	[ADRIAN CORCORAN]
Website		[http://www.attikdesigns.ie]
*/
function SetAllCheckBoxesToThis(setToThis, FormNameBase, FieldName)
{
	//	is the check all box checked?
	var checkedOrNot	= document.getElementById(setToThis).checked;
	//	initialise array to hold checked boxes
	var myArray	= new Array();
	//	loop through all forms on the page	
	for (i=0; i<document.forms.length; i++)
	{
		//	testing array
//		myArray.push(document.forms[i].id+"<br>");
		//	if the form name has the same base name as the supplied form name base
		if (document.forms[i].id.substring(0, 18) == FormNameBase.substring(0, 18))
		{
			//	testing
//			myArray.push("matched<br>");
			//	set the check box in this form accordingly
			document.forms[i].elements[FieldName].checked	= checkedOrNot;
		}
	}
	
//	document.getElementById('jsPanel').innerHTML	= dump(myArray);
}//-->

