<!--
function notNull(str) {
	if (str.length == 0 )
		return false
	else 
		return true
}

function notBlank(str) {
	for (i = 0; i < str.length; i++) {
		if (str.charAt(i) != " ")
			return true
	}
	return false
}

function validateString(myfield,s)
   {
	if (notNull(myfield.value) && notBlank(myfield.value)) 
		return true
	else {
		myfield.focus()
		alert("The " + s + " field is blank.  Please try again.")
		return false
	}
}

function verifyContactInfoSelected(chk1, chk2, chk3)
	{
	if (chk1.checked || chk2.checked || chk3.checked)
		return true
	else
		{
		chk1.focus()
		alert("Please select a contact method by checking the appropriate box or boxes and supplying the accompanying contact info.")
		return false
		}
}

function validateContactMethod1(myChkBox,myField,s)
   {
	if (myChkBox.checked)
		{
		if (notNull(myField.value) && notBlank(myField.value))
			return true
		else {
			myField.focus()
			alert("You have selected " + s + " as a contact method, but not provided the associated info.  Please try again, or select different contact method(s).")
			return false
			}
		}
	else
		return true
}

function validateJPG(myField)
	{
	var sSubStr1, sSubStr2
	
	sSubStr1=myField.split(".")
	sSubStr2=sSubstr[1]
	
	if (sSubStr2 != ".jpg" && sSubStr2 != ".jpeg")
		{
		alert("You have selected a file that is not in JPEG format, please try again.")
		myField.focus
		return false
		}
	else
		return true
	}
//-->
