<!--
function checkForm() {
user = document.sellerNew.username.value;
pass1 = document.sellerNew.password.value;
pass2 = document.sellerNew.password_again.value;
email = document.sellerNew.email.value;
desc = document.sellerNew.desc.value;
concentration = document.sellerNew.concentration.value;

atPos = email.indexOf('@');
userSpace = user.indexOf(' ');
userComma = user.indexOf(',');

if (user == "" || pass1 == "" || pass2 == "" || email == "" || desc == "") {
	alert("Please fill all of the required fields denoted by '*'");
	}

else if (user.length < 6 || pass1.length < 6) {
	alert("Your username and password must be at least six characters in length.");
	}

else if (userSpace > 1 || userComma > 1) {
	alert("Please remove all spaces, commas, and quotes from your username.");
	document.sellerNew.username.focus();
	}

else if (document.sellerNew.desc.value.length > 250) {
	alert("Please enter a maximum of 250 characters in the 'brief description' field.");
	document.sellerNew.desc.focus();
	}

else if (pass1 != pass2) {
	alert ("'Password' and 'Confirm Password' fields do not match \n Please try again");
	} 

else if (atPos < 1 || atPos == (email.length - 1)) {
	alert("Please enter a valid email address.");	
	}

else if (document.sellerNew.careerLevel.selectedIndex == 0) {
    	alert("Please choose your career level from \"career level\" list.");
    	document.sellerNew.careerLevel.focus();
  	}
else if (document.sellerNew.concentration.value == "") {
    	alert("Please choose your specialty in the \"concentration\" list.");
    	document.sellerNew.concentration.focus();
  	}

else if (document.sellerNew.location.selectedIndex == 0) {
    	alert("Please choose your home location in the \"home location\" list.");
    	document.sellerNew.location.focus();
  	}
  	
else if (document.sellerNew.refer.selectedIndex == 0) {
    	alert("Please tell us how you found out about us in the \"how did you hear about us\" field.");
    	document.sellerNew.refer.focus();
  	}  	
	
else {
	document.sellerNew.submit()
	}
}


//-->
