// JavaScript Document

function checkDel(a, b)
{
	if (confirm("Are you sure you would like to delete " + b + "?"))
	{
			window.location=a;
	}
}

function checkLength (txtarea, reportto, maxlen)
{
		txtlen = document.getElementById(txtarea).value.length;
		txtlen = maxlen-txtlen;
		if (txtlen<0) {warning="<br>Extra characters won't be displayed.";} else {warning="";}
		document.getElementById(reportto).innerHTML = txtlen + " characters remaining." + warning;
}