
function ConfirmReset(frm)
{
   frm.txtName.focus();

   if (confirm("Are you sure you want to reset the form?")) {
      // frm.reset();
		return true;
   }
	return false;
}

function ValidateForm()
{
   var frm = document.forms.frmPost;

   if (frm.txtName.value.toString() == "") {
      alert('Please enter a name to identify this entry.');
      frm.txtName.focus();
   }
	else if (frm.txtTitle.value.toString() == "") {
		alert("Please enter a descriptive title for this link!");
		frm.txtTitle.focus();
	}
	else if (frm.txtSubject.value.toString() == "") {
		alert("A URL is imperative, no URL, no link :-)");
		frm.txtSubject.focus();
	}
	else if (frm.txtBody.value.toString() == "") {
		alert("Hey, if you're not submitting a comment, why bother?");
		frm.txtBody.focus();
	}
	else {
		// frm.submit();
		return true;
		// alert("Yey!, we're submitting this one!");
	}
	return false;
}

