function checkForm(theform){
	if(required.length>0){
		for (x in required){
			if (theform.elements[required[x]].value==''){
				alert("The "+required[x]+" field is required");
				return false;
			}
		}
	}
	return true;
}
