// JavaScript Document

// Functions used in Ptw Section

function chk_supersede(id, selection)
{
	var id; // Selected checkbox id
	var nextid; // id of the checkbox going to be unchecked
	
	if (selection == 1) // Ckecked 'All active' checkbox
	{
		var nextid = "2-"+id; // Generate the relative 'Current Month' check box id
	}
	else if (selection == 2) // Ckecked 'Current Month' checkbox
	{
		var nextid = id.substring(2); // Generate the relative 'All active' check box id
	}

	
	if ( document.getElementById(id).checked == true )
	{
		document.getElementById(nextid).checked = false;
	}
}


function selectAllSwitch(num, sel, desel)
{
	// Selecting All Checkboxes in 'sel' list
	selectall (num, sel); // this function defined in grnl.js
	// Deselect All Checkboxes in 'desel' list
	clearSelected (num, desel);
}
