<!--
function validEmail(email) {
	invalidChars = " /:,;"

	if (email == "") {                         // cannot be empty
		return false
	}
	for (i=0; i<invalidChars.length; i++) {		// does it contain any invalid chars?
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0) > -1) {
			return false
		}
	}
	atPos = email.indexOf("@",1)               // there must be one "@" symbol?
	if (atPos == -1) {
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) {    // and only one "@" symbol
		return false
	}
	periodPos = email.indexOf(".",atPos)       // and at least one "." after the "@"
	if (periodPos == -1) {
		return false
	}
	if (periodPos+3 > email.length) {          // must be at least 2 chars after the "."
		return false
	}
	return true
}

function toggleOther() {
	if ( document.reg.coType.selectedIndex == 10 ) {
		document.reg.coType_other.disabled = false
		document.reg.coType_other.focus()
	} else {
		document.reg.coType_other.value = ""
		document.reg.coType_other.disabled = true
	}
}

function checkForm(form) {

	if ( form.fname.value == "" ) {
		alert("Please indicate your first name")
		form.fname.focus()
		return false;	
	}

	if ( form.lname.value == "" ) {
		alert("Please indicate your last name")
		form.lname.focus()
		return false;	
	}

	if ( form.title.value == "" ) {
		alert("Please indicate your job title")
		form.title.focus()
		return false;	
	}

	if ( form.company.value == "" ) {
		alert("Please indicate your company")
		form.company.focus()
		return false;	
	}

	if ( form.address.value == "" ) {
		alert("Please indicate your address")
		form.address.focus()
		return false;	
	}

	if ( form.city.value == "" ) {
		alert("Please indicate your city")
		form.city.focus()
		return false;	
	}

	if ( form.state.value == "" ) {
		alert("Please indicate your state")
		form.state.focus()
		return false;	
	}

	if ( form.zip.value == "" ) {
		alert("Please indicate your zip code")
		form.zip.focus()
		return false;	
	}

	if ( form.phone.value == "" ) {
		alert("Please indicate your phone")
		form.phone.focus()
		return false;	
	}
	
	if (!validEmail(form.email.value)) {
		alert("Invalid email address")
		form.email.focus()
		form.email.select()
		return false
	}

	return true;

}
//-->
