// DViewScript.js
// Update Date: 3/22/2007 1:23:22 PM


// JS Global Variables
var dtCh= "/";
var minYear=1900;
var maxYear=2100;
var imageWin = "";


//***********************************************************//
//**	Script Name: ValidateComment
//**	Script Description: Ability to validate a comment form post
//**	Last Modified: 8/24/2006 9:32:17 AM
//***********************************************************//
function ValidateComment(thisForm){
	var name = document.getElementById('Username');
	var comments = document.getElementById('Comments');

	if (name.value == ''){
		alert('Please enter a valid name');
		name.focus();
		return false;
	}else if(comments.value ==''){
		alert('Please enter a comment');
		comments.focus();
		return false;
	}

	// strip html
	comments.value = stripHTML(comments.value);
	return true;
	

}


