function fValidate(vThisForm)
{
	if (vThisForm == "frmLogin") 
	{
		if (document[vThisForm].txtPassword.value == "") {
			alert("The field -Password- cannot be left blank.")
			document[vThisForm].txtPassword.focus()
			return(false)
		}
		
		
	}
	
	if (vThisForm == "frmNewsletter") 
	{
		if (document[vThisForm].eLinks.checked != true) {
			if (document[vThisForm].Legislative.checked != true) {
				alert("Please select a newsletter you want to receive.")
				return(false)
			}
		}
		
		if (document[vThisForm].email.value == "") {
			alert("The field -Email Address- cannot be left blank.")
			document[vThisForm].email.focus()
			return(false)
		}
		
		var vThisEmail = new String(document[vThisForm].email.value)
		if (document[vThisForm].email.value == "" || vThisEmail.search("@") == -1) {
			alert("The field -Email Address- cannot be left blank and must be properly formatted.")
			document[vThisForm].email.focus()
			return(false)
		}
	}
	
	if (vThisForm == "frmRCRequest") 
	{
		if (document[vThisForm].rdate.value == "") {
			alert("The field -Requested Date- cannot be left blank.")
			document[vThisForm].rdate.focus()
			return(false)
		}
		if (document[vThisForm].rtime.value == "") {
			alert("The field -Requested Time- cannot be left blank.")
			document[vThisForm].rtime.focus()
			return(false)
		}	
		if (document[vThisForm].title.value == "") {
			alert("The field -Title- cannot be left blank.")
			document[vThisForm].title.focus()
			return(false)
		}
		if (document[vThisForm].description.value == "") {
			alert("The field -Details- cannot be left blank.")
			document[vThisForm].description.focus()
			return(false)
		}	
	}
	
	if (vThisForm == "frmRCAdd") 
	{
		if (document[vThisForm].title.value == "") {
			alert("The field -Title- cannot be left blank.")
			document[vThisForm].title.focus()
			return(false)
		}	
		if (document[vThisForm].sdate.value == "") {
			alert("The field -Sort Date- cannot be left blank.")
			document[vThisForm].sdate.focus()
			return(false)
		}	
		if (document[vThisForm].rdate.value == "") {
			alert("The field -Requested Date- cannot be left blank.")
			document[vThisForm].rdate.focus()
			return(false)
		}
		if (document[vThisForm].rtime.value == "") {
			alert("The field -Requested Time- cannot be left blank.")
			document[vThisForm].rtime.focus()
			return(false)
		}	
		if (document[vThisForm].location.value == "") {
			alert("The field -Location- cannot be left blank.")
			document[vThisForm].location.focus()
			return(false)
		}
		if (document[vThisForm].event_no.value == "") {
			alert("The field -Link to Ribbon Cuttings- cannot be left blank.")
			document[vThisForm].event_no.focus()
			return(false)
		}
		/*if (document[vThisForm].description.value == "") {
			alert("The field -Link Name- cannot be left blank.")
			document[vThisForm].description.focus()
			return(false)
		}*/
						
	}
	if (vThisForm == "frmRCEdit") 
	{
		if (document[vThisForm].title.value == "") {
			alert("The field -Title- cannot be left blank.")
			document[vThisForm].title.focus()
			return(false)
		}	
		if (document[vThisForm].sdate.value == "") {
			alert("The field -Sort Date- cannot be left blank.")
			document[vThisForm].sdate.focus()
			return(false)
		}	
		if (document[vThisForm].rdate.value == "") {
			alert("The field -Requested Date- cannot be left blank.")
			document[vThisForm].rdate.focus()
			return(false)
		}
		if (document[vThisForm].rtime.value == "") {
			alert("The field -Requested Time- cannot be left blank.")
			document[vThisForm].rtime.focus()
			return(false)
		}	
		if (document[vThisForm].location.value == "") {
			alert("The field -Location- cannot be left blank.")
			document[vThisForm].location.focus()
			return(false)
		}
		if (document[vThisForm].event_no.value == "") {
			alert("The field -Link to Ribbon Cuttings- cannot be left blank.")
			document[vThisForm].event_no.focus()
			return(false)
		}
		/*if (document[vThisForm].description.value == "") {
			alert("The field -Link Name- cannot be left blank.")
			document[vThisForm].description.focus()
			return(false)
		}
		var vThisEmail = new String(document[vThisForm].email.value)
		if (document[vThisForm].email.value == "" || vThisEmail.search("@") == -1) {
			alert("The field -Contact Email- cannot be left blank and must be properly formatted.")
			document[vThisForm].email.focus()
			return(false)
		}*/				
	}
}



