function check(x) {
	var a = /\W/;
	var b = /[(\-\-);]/
	
	if(!(a.test(x))) {
		return true;
	} else {
		alert(b.test(x));
	}
	
	return false;
}

function validate() {
	var s = document.addition.crit.value;
	var v = true;
	
	if(s == "") {
		alert("Please enter a value into the box");
		v = false;
	}
	
	switch(document.addition.criteria.selectedIndex) {
		case 0: {
			if(isNaN(parseInt(s))) {alert("Please enter a number"); return false; }
			return true;
			break;
		}
		default: {
			break;
		}
	}
	
	return v;
}



