function checkrequired(which) {
	
	var pass=true;
	if (document.images) {
		for (i=0;i<which.length;i++) {
			var tempobj=which.elements[i];
			if (tempobj.id.substring(0,3)=="req") {
				if (((tempobj.type=="text"||tempobj.type=="textarea")&&
										tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
										tempobj.selectedIndex==0)) {
					pass=false;
					break;
     			}
   			}
  		}
	}

	if (!pass) {
		alert("Incomplete Form: Please ensure all fields marked with an asterisk (*) are completed.");
		return false;
	}
	else if (document.inputForm.email.value != document.inputForm.emailConfirm.value){
		alert ("Please ensure the emails you have entered match.");
		return false
	}
	else
		return true;
} 
