function textCounter(field, countfield, maxlimit)
{
	if (field.value.length > maxlimit)
		// if too long...trim it!
		field.value = field.value.substring(0, maxlimit);
	else 
		// otherwise, update 'characters left' counter		
		countfield.value = maxlimit - field.value.length;
}

function confirm_delete()
{
  if (confirm("Are you sure you want to delete this colloquial?")==true)
    return true;
  else
    return false;
}

function reveal(imageObj)
{
	var instructionsObj = document.getElementById("instInfoCol");
	var whatwilllearnObj = document.getElementById("whatyoulearnDiv");
	
	if (instructionsObj.style.display == "none" || instructionsObj.style.display == "")
	{
		instructionsObj.style.display = "block";
		imageObj.src="../Images/minus.gif";
		imageObj.alt = "Click to Hide Instructions";
		whatwilllearnObj.style.display = "none";
	}
	else
	{
		instructionsObj.style.display = "none";
		imageObj.src="../Images/plusik.gif";
		imageObj.alt = "Click to Reveal Instructions";					
		whatwilllearnObj.style.display = "block";			
	}
}	

