<!-- 

function checkBlank(value) {
	if (value.length == 0) {
		return true;		//no input at all
	}
	for (var i = 0; i <= value.length-1; i++) {
		if (value.charAt(i) != " ") {
			return false;	//1 character was found
		}
	}
	return true;			//only blank spaces found
}

function validateInput(elem) {
	var entry = document.getElementById(elem).value;
	if (!checkBlank(entry)) {
		return true;
	}
	return false;
}
	
function validateForm(){

	if (!validateInput('name')) {
	alert("Please enter a name");
	return false;
	}
	
	if (!validateInput('email')) {
	alert("Please enter a valid email address");
	return false;
	}
	
	if (!validateInput('web')) {
	alert("Please enter your company web address");
	return false;
	}
	
	if (!validateInput('reps')) {
	alert("Please enter the amount of reps you have in this field");
	return false;
	}
	
	if (!validateInput('sell')) {
	alert("Please tell us what it is you sell");
	return false;
	}
	
	if (!validateInput('location')) {
	alert("Please enter where you are located");
	return false;
	}
	
	if (!validateInput('tools')) {
	alert("Please enter the tools you currently use in this field");
	return false;
	}
	
	if (!validateInput('otherdetails')) {
	alert("Please tell us what you hope winner-net will do for you");
	return false;
	}
	
	
	return true;

}
 -->
