function ToggleDiv(obj)
{
    var id = obj.id;
    
    var body = document.getElementById(id + "_body");
    var img = document.getElementById(id + "_img");
    
    if (body.style.display == "none")
    {
        body.style.display = "block";
        img.src = "/images/show.gif";
    }    
    else if (body.style.display == "block")
    {
        body.style.display = "none";
        img.src = "/images/hide.gif";
    }
    else
    {
        body.style.display = "block";
        img.src = "/images/show.gif";
    }
}

function ClrChng( el )
{
        el.style.backgroundColor = '#F1EFE4';
}

function ChngBk( el )
{
        el.style.backgroundColor = '#FFF';
}

function DownloadResource()
{
	var isSelected;
	isSelected = false;
    
	for ( i = 0 ; i < Download.length ; i++ )
	{
		if (Download.elements[i].type=='checkbox')
		{
			if (Download.elements[i].checked)
			{
			    var el = document.getElementById(Download.elements[i].id + "_link");
			    window.open(el.href);
				isSelected = true;
			}
		}
	}

	if (!isSelected)
	{
		alert("To obtain the documents that you would like to open or download, please check one or more of the checkboxes on this page.");
	}
}

