function confirm_it( what )
	{
	var agree=confirm( "Are you sure you want to" + what + "?" );
	if ( agree )
		return true ;
	else
		return false ;
	}

function confirm_deletions()
	{
	var deletions = 0;
	for (var i = 0; i < document.thisform.elements.length; i++ )
		{
		if (document.thisform.elements[i].type == 'checkbox')
			{
			if (document.thisform.elements[i].checked == true)
				{
				deletions++;
				}
			}
		}

	if ( deletions > 0 )
		{
		return( confirm_it( ' delete the checked items' ) );
		}
	else
		{
		return true;
		}

	}


function confirm_link( url, what )
	{
	var agree=confirm( "Are you sure you want to" + what + "?" );
	if (agree)
		{
		window.location = url;
		return true;
		}
	else
		return false;
	}

function limitText(limitField, limitCount, limitNum) {
	if (limitField.value.length > limitNum) {
		limitField.value = limitField.value.substring(0, limitNum);
	} else {
		limitCount.value = limitNum - limitField.value.length;
	}
}
