// check to make sure the user selects one choice to forward the form to	
function checkForm() {
	var rad_select = "no";
	var error_string = "";
	
	// check text fields
	if(document.theform.realname.value == "") {
		error_string += "your name\n";
		}	

	if(document.theform.email.value == "") {
		error_string += "your email address\n";
		}							
	if(!document.theform.email.value == "") {
		var str=document.theform.email.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str)) {
			error_string == "";
			}
		else {
			error_string += "your e-mail address is not quite correct\n";
			}
		}

	if(document.theform.subject.value == "") {
		error_string += "your subject\n";
		}			
	if(document.theform.message.value == "") {
		error_string += "your comments\n";
		}						
		
	if(error_string == "") {
		return true;
		}
	else {
		error_string = "We found the following omissions in your form\nYou must include:\n\n" + error_string;
		alert(error_string);
		return false;
		}
	}
