function isblank(s){
			
	for(i=0; i < s.length; i++) {
		var c= s.charAt(i);
		if((c != ' ') && (c != '\n') && (c != '\t')) return false;
	}
	return true;
}

function checkMe(){
var msg = "We're sorry, but there is a problem with your attempted submission.\n Please fix the following and try again:\n";
//msg += "_______________________________________________________________\n";
var error_count = 0;
var dom_chain = window.document.email;
		
	if(dom_chain.who.value == "0"){
	error_count++;
	msg += "Choose a person to send the message to.\n";
	}

	if(isblank(dom_chain.txtContact.value)){
	error_count++;
	msg += "Tell us your name.\n";
	}
	
	if(isblank(dom_chain.txtCompany.value)){
	error_count++;
	msg += "Tell us your Company.\n";
	}
	
	if(isblank(dom_chain.txtAddress.value )){
	error_count++;
	msg += "Tell us your Address.\n";
	}
	if(isblank(dom_chain.txtCity.value)){
	error_count++;
	msg += "Tell us your City.\n";
	}
	if(isblank(dom_chain.txtState.value)){
	error_count++;
	msg += "Tell us your State.\n";
	}
	
	if(isblank(dom_chain.txtZip.value)){
	error_count++;
	msg += "Tell us your Zip code.\n";
	}
	
	if(isblank(dom_chain.txtPhone.value)){
	error_count++;
	msg += "Tell us your Phone.\n";
	}

	if(isblank(dom_chain.txtEmail.value)){
	error_count++;
	msg += "Tell us your email address.\n";
	}
	
	if(isblank(dom_chain.msg.value)){
	error_count++;
	msg += "Type a message.\n";
	}
			
	if (error_count>0){
	alert(msg);
	msg = "";
	error_count = 0;
	}else{
	dom_chain.submit();
	}
}
