function validateJoin () {
	var df = document.form1;
	var er = "";
	var strnumberOfHours = "";
	
	var strcontactName = new String(df.contactName.value);
	if (strcontactName.length == 0) { er += "Please enter your name.\n"; }
	
	var straddress = new String(df.address.value);
	if (straddress.length == 0) { er += "Please enter your address.\n"; }
	
	var strcity = new String(df.city.value);
	if (strcity.length == 0) { er += "Please enter your city.\n"; }
	
	var strstate = new String(df.state.value);
	if (strstate.length == 0) { er += "Please enter your state.\n"; }
	
	var strzip = new String(df.zip.value);
	if (strzip.length == 0) { er += "Please enter your zip.\n"; }
	
	var strphone = new String(df.phone.value);
	if (strphone.length == 0) { er += "Please enter your phone.\n"; }
	
	var strfax = new String(df.fax.value);
	if (strfax.length == 0) { er += "Please enter your fax.\n"; }
	
	var stremail = new String(df.email.value);
	if (stremail.length == 0) { er += "Please enter your email.\n"; }
	
	var strtypeOfBus = new String(df.typeOfBus.value);
	if (strtypeOfBus.length == 0) { er += "Please enter your industry experience.\n"; }
	
	var atLeastOne = false;
	numOfChks = df.numberOfHours.length;
	for (var i = 0; i<numOfChks; i++) {
		strnumberOfHours = new String(df.numberOfHours[i].value);
		if (df.numberOfHours[i].checked) { atLeastOne = true; }
	}
	if (atLeastOne == false) { er += "Please select the number of hours you are interested in working per week.\n"; }
	
	if (er != "") {
		alert(er);
		return false;
	} else {
		return true;
	}
}

function validateContact () {
	var df = document.form1;
	var er = "";
	
	var strcontactName = new String(df.contactName.value);
	if (strcontactName.length == 0) { er += "Please enter your name.\n"; }
	
	var strtitle = new String(df.title.value);
	if (strtitle.length == 0) { er += "Please enter your title.\n"; }
	
	var strorganization = new String(df.organization.value);
	if (strorganization.length == 0) { er += "Please enter your organization.\n"; }
	
	var straddress = new String(df.address.value);
	if (straddress.length == 0) { er += "Please enter your address.\n"; }
	
	var strcity = new String(df.city.value);
	if (strcity.length == 0) { er += "Please enter your city.\n"; }
	
	var strstate = new String(df.state.value);
	if (strstate.length == 0) { er += "Please enter your state.\n"; }
	
	var strzip = new String(df.zip.value);
	if (strzip.length == 0) { er += "Please enter your zip.\n"; }
	
	var strphone = new String(df.phone.value);
	if (strphone.length == 0) { er += "Please enter your phone.\n"; }
	
	var strfax = new String(df.fax.value);
	if (strfax.length == 0) { er += "Please enter your fax.\n"; }
	
	var stremail = new String(df.email.value);
	if (stremail.length == 0) { er += "Please enter your email.\n"; }
	
	var strwebsite = new String(df.website.value);
	if (strwebsite.length == 0) { er += "Please enter your website.\n"; }
	
	var strtypeOfBus = df.typeOfBus.options[df.typeOfBus.options.selectedIndex].value;
	var strtypeOfBusDesc = new String(df.typeOfBusDesc.value);
	if ((strtypeOfBus == "- Other") && (strtypeOfBusDesc.length == 0)) { er += "Please explain your type of business since you chose 'Other' type of business.\n"; }
	
	if (er != "") {
		alert(er);
		return false;
	} else {
		return true;
	}
}

function validateLogin () {
	var df = document.form1;
	var er = "";
	
	var strloginType = df.loginType.options.selectedIndex;
	if (strloginType == 0) { er += "Please select a login type.\n"; }
	
	var strusername = new String(df.username.value);
	if (strusername.length == 0) { er += "Please enter your username.\n"; }
	
	var strpassword = new String(df.password.value);
	if (strpassword.length == 0) { er += "Please enter your password.\n"; }
	
	if (er != "") {
		alert(er);
		return false;
	} else {
		return true;
	}
}

