function Validate()
{
	var thisForm = document.vPhoto;
	var name = thisForm.submitter.value;
	var fileName = thisForm.file.value;
	var desc = thisForm.description.value;
	var cap = thisForm.caption.value;
	var noHTML = new Array("<a", "<img", "<object", "embed");
	var readOK = thisForm.readOK.checked;
	
	if (name.length == 0)
	{
		alert("You must enter a name.");
		thisForm.submitter.focus();
		return false;
	}
	
	if (fileName.length == 0)
	{
		alert("A file must be selected.");
		thisForm.file.focus();
		return false;
	}
	
	if (cap.length == 0)
	{
		alert("Please supply a Caption or Title.");
		thisForm.caption.focus();
		return false;
	}
	
	for (var loopIndex=0; loopIndex < noHTML.length; loopIndex++)
	{
		if (cap.indexOf(noHTML[loopIndex],0) >= 0 || desc.indexOf(noHTML[loopIndex], 0) >= 0)
		{
			alert("HTML is not permitted.");
			return false;
		}
	}
	
	if (!readOK)
	{
		alert("You must check the box to show that you have read and agree to the Copyright Information and Licensing Agreement.");
		return false;
	}

	return true;
}
