function checkEval(eForm){  if(eForm.summary.value==""){    alert("Please enter a one line summary!");	eForm.summary.focus();	return false;  }  //if(eForm.course.selectedIndex==0){    //alert("Please select which course you took!");	//eForm.course.focus();	//return false;  //}  //if(eForm.grade.selectedIndex==0){    //alert("Please select the grade you received!");	//eForm.grades.focus();	//return false;  //}  return true;}  function deptChange(pForm){  //Change depts reset professors and courses     pForm.crf.selectedIndex=0;	pForm.prf.selectedIndex=0;	pForm.c_type.value="dept";  //alert(pForm.drf[pForm.drf.selectedIndex].value);  //alert(pForm.drf[pForm.prf.selectedIndex].value);  //alert(pForm.drf[pForm.crf.selectedIndex].value);  pForm.submit();}function goProf(pForm){pForm.submit();}function profChange(pForm){  if(pForm.prf.selectedIndex==0)//All profs, reset courses    pForm.crf.selectedIndex=0;  pForm.c_type.value="prof";	  pForm.submit();}  function courseChange(pForm){  pForm.c_type.value="course";  pForm.submit();}  function doProf(pForm){  id=pForm.profs[pForm.profs.selectedIndex].value;  prof_id=pForm.pid.value;  if(id==prof_id){//it's the professor that's already displayed    window.close();	return;  }	  pURL="course.php?action=prof&id="+id;  opener.document.location=pURL;  window.close();} function submitEval(sForm){  if(checkEval(sForm)){    sForm.add_flag.value=1;    sForm.submit();  }	}function deptEval(eForm){  eForm.course.selectedIndex=0;  eForm.submit();}  	 function newPage(lForm,page){  lForm.current_page.value=page;  lForm.submit();}
