<SCRIPT TYPE="text/javascript" SRC="foo.js" CHARSET="ISO-8859-1">function checkFields() {
  if (document.registration.firstname.value == "") {
    alert("Please enter your first name.");
    return false;
  }
  if (document.registration.lastname.value == "") {
    alert("Please enter your last name.");
    return false;
  }
  if (document.registration.school.value == "") {
    alert("Please enter your School or affiliation.");
    return false;
  }
  if (document.registration.email.value == "") {
     alert("Please enter your email address.");
     return false;
  }
  if (document.registration.school.value == "") {
     alert("Please enter your School name.");
     return false;
  }
 
  if(document.registration.course.selectedIndex==0){
  	alert("Please select a course");
	return false;
  }

  if(document.registration.credit.checked[0]==false){
  	if(document.registration.credit.checked[1]==false){
  	  alert("Please select a course credit");
	  return false;
	}
  }
  return true;

}


