// JavaScript Document

function unsetCheckBoxes()
{
	
	var inputs = document.getElementsByTagName("input");

	for (var i=0; i< inputs.length; i++)
	{
		
		if (inputs[i].type=='checkbox' && inputs[i].checked==false)
		{
			/*inputs[i].style="visibility: hidden;";*/
			inputs[i].checked=true;
			inputs[i].value="0";
		}
	}

}

function progressBar(link)
{
	window.open("/clientside/javascript/progressbar.html", "progress" , "height=250px, width= 315px,left=200px, top=200px");
	window.location = link;
}
function selectJump(select_id)
{
	var newIndex = document.getElementById(select_id).selectedIndex; 
	var cururl = document.getElementById(select_id).options[document.getElementById(select_id).selectedIndex].value; 
	window.location = cururl;
}

function setNumWords(id, iLimit)
{
	var iLength = document.getElementById('page_summary').value.length;
	
	if (iLength < iLimit)
		document.getElementById(id).innerHTML = 'Characters used: ' + document.getElementById('page_summary').value.length;
	else
		document.getElementById(id).innerHTML = 'Characters used:  <strong>' + document.getElementById('page_summary').value.length + '</strong> - Only ' + iLimit + ' characters allowed.';
}
