function submitForm(oForm){
//	for(i=0;i<oForm.length;i++){
//		if(oForm[i].required=="true"){
//			alert("Please check that all required fields\nare completed before submitting");
//			return false;
//			break;
//		}
//	}
	if(valid(oForm["email"])){
		oForm.submit();
		return true;
	}else{
		return false;
	}
}

function valid(field) {
	var str = field.value; // email string
	var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/; // not valid
	var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/; // valid
	if (!reg1.test(str) && reg2.test(str)) { // if syntax is valid
		return true;
	}
	alert("\"" + str + "\" is an invalid e-mail!"); // this is also optional
	field.focus();
	field.select();
	return false;
}