var W3CDOM = (document.createElement && document.getElementsByTagName);

function titover(id)
{
  if (!W3CDOM) return;
  var tit = document.getElementById(id);
  tit.style.borderTop = "6px solid #8888ff";
  tit.style.color = "#000";
}

function titout(id)
{
  if (!W3CDOM) return;
  var tit = document.getElementById(id);
  tit.style.borderTop = "6px solid #bbbbff";
  tit.style.color = "#000";
}

function clearInput(id)
{
  if (!W3CDOM) return;
  var input = document.getElementById(id);
  input.value="";
}

function refoot()
{
  if (!W3CDOM) return;
  var foot = document.getElementById('footer');
  foot.style.position = "absolute";
  foot.style.bottom = 0;
}

function commentSubmit()
{
  var result = validateCommentForm();
  if (result == false)
  {
    alert("Please fill out both a name and comment");       
  }
  else
  {
    document.commentForm.submit();
  }
}
  

function validateCommentForm() 
{
	valid = true;
	if ( document.commentForm.name.value == "")
	{	
	   valid = false;
	}
	if ( document.commentForm.comment.value == "")
	{	
	   valid = false;
	}
	return valid;
}

