function CheckEditForms() {
	for (a=0;a<arguments.length;a++) {//cycle through passed arguments
		var ProblemField=AlertMessage=false;
		cleanText=arguments[a].name.replace(/_/g," ");//show text box name cleanly (greedy)
		
		if ( arguments[a].value=='' ) {//if empty
			AlertMessage="Please complete the '"+cleanText+"' Field.";
			ProblemField=true;
		}
		//if email field and no '.' or '@'
		if (arguments[a].name=='Email' && (arguments[a].value.indexOf('@')==-1 || arguments[a].value.indexOf('.')==-1 || arguments[a].value.indexOf(' ')!=-1)) {
			AlertMessage="Please enter a valid Email Address.";
			ProblemField=true;
		}
		if (arguments[a].type=='checkbox' && !arguments[a].checked) {
			AlertMessage="You must tick the '"+cleanText+"' box.";
			ProblemField=true;
		}
		
		if (ProblemField) {
			alert(AlertMessage);//display warning
			arguments[a].focus();//go to field
			return false;//fail
		}
	}//end for
	return true;//if all ok exec
}//end CheckEditForms