Javascript validation of radio buttons

Hi Experts,

I have a php form that I want to validate using javascript.

I'm using the attached code to validate the text fields.

I like it because it goes back to the required field if it is not filled out. The user fills out the field. And clicks submit. If there is another required field that is missing, it goes back to that field and so on.

What I'm having trouble with is adapting this for radio buttons and check boxes.

Can someone help with this, please?

Thanks in advance.
Lisa
<script type="text/javascript" language="JavaScript">

function validate_required(field,alerttxt)
{
with (field)
  {
  if (value==null||value=="")
    {
    alert(alerttxt);return false;
    }
  else
    {
    return true;
    }
  }
}

function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(review_date,"Review Date must be filled out")==false)
  {review_date.focus();return false;}
 }
}

</script>

Open in new window

lisacowanAsked:
Who is Participating?
 
Michel PlungjanConnect With a Mentor IT ExpertCommented:
function oneChecked(radGroup,alerttxt) {
  for (var i=0;i<radGroup.length;i++) if (radGroup[i].checked) return true;
  alert(alerttxt);
  return false;
} <<<<<<<<<<<<<<<<<<<<<<< missing in the online code


and you forget returning true



  if (validate_required(goals,"Please complete Goals even if N/A")==false)
  {goals.focus();return false;}
 
  }
 return true;

}

</script>


I am off for tonight (CET) back in 10 hours

 

0
 
ploftinCommented:
Here's an example function that could check for a checkbox or radio button being checked:
function validate_Checkbox_Radio(field)
   {
   with (field)
      {
	  if (field.checked)
	     {
		 // checkbox or radio button is checked.
		 }
	  }
   }

Open in new window

0
 
lisacowanAuthor Commented:
Thanks for the answer, ploftin.

The code doesn't work, but I'm not sure I implemented it correctly. I've attached what it looks like now.

Any suggestions?

Lisa
<script type="text/javascript" language="JavaScript">

function validate_required(field,alerttxt)
{
with (field)
  {
  if (value==null||value=="")
    {
    alert(alerttxt);return false;
    }
  else
    {
    return true;
    }
  }
}

function validate_Checkbox_Radio(field)
{
with (field)
   {
	  if (field.checked)
	     {
		 // checkbox or radio button is checked.
		 }
	  }
}


function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(review_date,"Review Date must be filled out")==false)
  {review_date.focus();return false;}

  if (validate_Checkbox_Radio(field)(review_type)==false)
  {review_type.focus();return false;}


 
  }


}

Open in new window

0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
HonorGodSoftware EngineerCommented:
ploftin:

  It would be better if the function returned an indication of the "success" for "failure.

Generally, a radio button is part of a group of buttons.
The technique normally used is to have them all have the same name attribute, so a routine to "validate" the group would verify that at least one is checked.
function RadioCheck( name ) {
  var group = document.getElementsByName( name );
  for ( var g = 0; g < group.length; g++ ) {
    if ( group[ g ].checked ) {
      return true;
    }
  }
  return false;
}

Open in new window

0
 
lisacowanAuthor Commented:
HonorGod,

Thank you for your answer. I think your version is working for me, however, it is not printing an error statement, so I cannot direct users back to the unchecked field.  Does that make sense?

Lisa
0
 
ploftinCommented:
Try this.
function RadioCheck( name ) {
  var group = document.getElementsByName( name );
  for ( var g = 0; g < group.length; g++ ) {
    if ( group[ g ].checked ) {
      return true;
    }
    else {
      alert("Please check one of the boxes.");
    }
  }
  return false;
}

Open in new window

0
 
ploftinCommented:
Correction, try this.
function RadioCheck( name ) {
  var group = document.getElementsByName( name );
  for ( var g = 0; g < group.length; g++ ) {
    if ( group[ g ].checked ) {
      var onechecked = true;
    }
  }
  if (onechecked != true) {
    alert("Please check one of the boxes.");
    return false;
  }
  else {
    return true;
  }

}

Open in new window

0
 
lisacowanAuthor Commented:
This is great. It's working, and I can adapt it for my purposes if necessary. There is one change I would like to make if it's possible. Can I change the error message based on the field. For example, for one set of buttons, I would like to say, "Please pick a review type." For another, I would like to say, "Please select the productivity level."

If it's not possible, I can always create a unique function for each set of required radio buttons. There are only 4. I was just wondering if there was a more elegant solution.

Thank you very much!

Lisa
0
 
lisacowanAuthor Commented:
You won't hear from me until tomorrow. Thanks again for the help.

Lisa
0
 
ploftinCommented:
Are you referring to your original code or the updated code provided here?  If you can you provide the <form> ..... </form> portion of your code, we can provide you the best suggestion for validation for it.
0
 
lisacowanAuthor Commented:
I'm referring to the updated code. I'll post parts of the form for you tomorrow. It's pretty long, and I think you can get the gist of it from the first bit.

Thanks again for the help!

Lisa
0
 
arunc85Commented:
Hi,

Please check the below URL. It will be very useful and you can understand the code very
easily

 http://javascript.about.com/library/blradio1.htm

Regards,
arun
0
 
Michel PlungjanIT ExpertCommented:
I suggest you do NOT alert anything in the test of the objects but instead use this kind of test
I also recommend not using with since one can easily miss something or scope it wrong

<script type="text/javascript" language="JavaScript">
if (!String.trim) {String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g, "");};}
function isEmpty_text(field) {
  var val = field.value; 
  return (val==null||val.trim()=="");
}
function isChecked(radGroup) {
  for (var i=0;i<radGroup.length;i++) if (radGroup[i].checked) return true;
  return false;
}


function validate_form(thisform) {
  if (isEmpty(thisform.review_date)) {
    alert("Review Date must be filled out");
    thisform.review_date.focus();
    return false;
  }
  if (!isChecked(thisform.radioGroup)) {
    alert("Please check at least one radio");
    thisform.radioGroup[0].focus();
    return false;
  }    
  return true;  
}

</script>

Open in new window

0
 
lisacowanAuthor Commented:
ploftin:

I've attached part of the form code for your review. I've also included the validation as it now stands.

The form code includes 2 sets of radio buttons, so you can get an idea of how they work.

Please let me know if you need anything else.

Thanks again for the help.

Lisa
<script type="text/javascript" language="JavaScript">

function validate_required(field,alerttxt)
{
with (field)
  {
  if (value==null||value=="")
    {
    alert(alerttxt);return false;
    }
  else
    {
    return true;
    }
  }
}


function RadioCheck( name ) {
  var group = document.getElementsByName( name );
  for ( var g = 0; g < group.length; g++ ) {
    if ( group[ g ].checked ) {
      var onechecked = true;
    }
  }
  if (onechecked != true) {
    alert("Please check one of the buttons.");
    return false;
  }
  else {
    return true;
  }

}


function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(review_date,"Review Date must be filled out")==false)
  {review_date.focus();return false;}

  if (validate_required(job_title,"The employee's Job Title must be filled out")==false)
  {job_title.focus();return false;}

  if (validate_required(review_first_name,"Reviewer's First Name must be filled out")==false)
  {review_first_name.focus();return false;}

  if (validate_required(review_last_name,"Reviewer's Last Name must be filled out")==false)
  {review_last_name.focus();return false;}

  if (validate_required(review_email,"Reviewer's E-Mail Address must be filled out")==false)
  {review_email.focus();return false;}

  if (validate_required(from_date,"From Date must be filled out")==false)
  {from_date.focus();return false;}

  if (validate_required(to_date,"To Date must be filled out")==false)
  {to_date.focus();return false;}

  //if (validate_Checkbox_Radio(field)(review_type)==false)
  //{review_type.focus();return false;}
  
  if (RadioCheck_Type(review_type)==false)
  {review_type; return false;}
  
  if (validate_required(communication_comments,"Please complete Communication Skills Comments even if N/A")==false)
  {communication_comments.focus();return false;}

  if (validate_required(dependability_comments,"Please complete Dependability, Initiative Comments even if N/A")==false)
  {dependability_comments.focus();return false;}

  if (validate_required(attitude_comments,"Please complete Attitude, Flexibility Comments even if N/A")==false)
  {attitude_comments.focus();return false;}

  if (validate_required(decision_comments,"Please complete Decision Making, Problem Solving Comments even if N/A")==false)
  {decision_comments.focus();return false;}

  if (validate_required(knowledge_comments,"Please complete Job Knowledge Comments even if N/A")==false)
  {knowledge_comments.focus();return false;}

  if (validate_required(financial_comments,"Please complete Financial Management Comments even if N/A")==false)
  {financial_comments.focus();return false;}

  //fatcat rating here
  
  //productivity here
  
  if (validate_required(average_productivity,"Please complete Average Monthly Productivity")==false)
  {average_productivity.focus();return false;}

  //productivty rating here

  if (validate_required(productivity_comments,"Please complete Productivity Standard Comments even if N/A")==false)
  {productivity_comments.focus();return false;}

  if (validate_required(diversity_comments,"Please complete Diversity, Cultural Competency Comments even if N/A")==false)
  {diversity_comments.focus();return false;}

  if (validate_required(planning_comments,"Please complete Planning, Organization, Quality Comments even if N/A")==false)
  {planning_comments.focus();return false;}

  if (validate_required(creativity_comments,"Please complete Creativity Comments even if N/A")==false)
  {creativity_comments.focus();return false;}

  if (validate_required(leadership_comments,"Please complete Leadership Comments even if N/A")==false)
  {leadership_comments.focus();return false;}

  if (validate_required(other_comments,"Please complete Other Comments even if N/A")==false)
  {other_comments.focus();return false;}

  if (validate_required(training_comments,"Please Complete Required Training Comments even if N/A")==false)
  {training_comments.focus();return false;}

  if (validate_required(development,"Please complete Areas for Development and Growth even if N/A")==false)
  {development.focus();return false;}

  if (validate_required(goals,"Please complete Goals even if N/A")==false)
  {goals.focus();return false;}
 
  }


}

</script>

.....

<form action="emp_review_process.php" name="review" onsubmit="return validate_form(this)" method="post">
 
<p><strong>Required Fields</strong></p>	      

<table width="600" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td class="required_left">Date</td>
    <td colspan="2"><input type="text" name="review_date" value="<?php if (isset($_POST['review_date'])) echo $_POST['review_date']; ?>" /></td>
    <td>(i.e. 07/01/01)</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">Employee First Name</td>
    <td colspan="2"><?php echo $_SESSION['SESS_FIRST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">Employee Last Name</td>
    <td colspan="2"><?php echo $_SESSION['SESS_LAST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Employee Job Title</td>
    <td colspan="2"><input type="text" name="job_title" value="<?php if (isset($_POST['job_title'])) echo $_POST['job_title']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Reviewer First Name</td>
    <td colspan="2"><input type="text" name="review_first_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_first_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr>
    <td colspan="2" class="required_left">Reviewer Last Name</td>
    <td colspan="2"><input type="text" name="review_last_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_last_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Reviewer E-mail Address</td>
    <td colspan="2"><input type="text" name="review_email" value="<?php if (isset($_POST['review_email'])) echo $_POST['review_email']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">REVIEW PERIOD (MONTH/YEAR):</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left">From:</td>
    <td><input type="text" name="from_date" value="<?php if (isset($_POST['from_date'])) echo $_POST['from_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left">To:</td>
    <td><input type="text" name="to_date" value="<?php if (isset($_POST['to_date'])) echo $_POST['to_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" valign="top" class="required_left">TYPE OF REVIEW</td>
<td colspan="2"><input type="radio" name="review_type" value="annual" />&nbsp;Annual<br  />
    				<input type="radio" name="review_type" value="6-month" />&nbsp;6-Month<br  />
        <input type="radio" name="review_type" value="special" />&nbsp;Special</td>
    
    <td>&nbsp;</td>
     <td>&nbsp;</td>
  </tr>

 <tr>
    <td colspan="6"><h2>1. Communication Skills</h2>
      (Consider written, verbal, and listening skills)<br />
      Actively listens to understand others &bull; Writes clearly and concisely without factual or typographic errors in a way that is engaging and interesting  &bull; Makes clear, concise, organized presentations  &bull; Uses content (words, level of detail) appropriate for audience  &bull; Performs group presentations in an effective, credible, and professional manner &bull; Disseminates information to group participants in a way that is concise and easy to understand &bull; Keeps superiors and team members informed of work completed and pending activities &bull; Responds in a timely manner to requests from clients, coworkers, and supervisors with quality information and deliverables, whether verbal or written</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="communication_rating" value="5" />    	  Exceptional (5)
    	  <br />
    	  <input type="radio" name="communication_rating" value="4" />    	  
   	    Sometimes More (4)
   	    <br />
   	    <input type="radio" name="communication_rating" value="3" />    	  
   	    Consistently (3)
   	    <br />
   	    <input type="radio" name="communication_rating" value="2" />    	  
   	    Sometimes Less (2)
   	    <br />
   	    <input type="radio" name="communication_rating" value="1" />    	  
   	    Unsatisfactory (1)
   	    <br />
   	    <input type="radio" name="communication_rating" value="" />    	  
   	    No Rating</td>
      </tr>

</form>

Open in new window

0
 
lisacowanAuthor Commented:
mplungjan:

Thank you very much for the comment, however, I cannot get it to work. I'll keep playing around with it.

Lisa
0
 
Michel PlungjanIT ExpertCommented:
I'll have a look and test in an hour or so
0
 
Michel PlungjanIT ExpertCommented:
Here - I could not test since the form and script did not match in terms of fields

<script type="text/javascript" language="JavaScript">

if (!String.trim) {String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g, "");};}
function validate_required(field,alerttxt)
  var val = field.value;
  if (val==null||val.trim()=="") {
    alert(alerttxt);
    return false;
  }
  return true;
}
function oneChecked(radGroup,alerttxt) {
  for (var i=0;i<radGroup.length;i++) if (radGroup[i].checked) return true;
  alert(alerttxt);
  return false;
}



function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(review_date,"Review Date must be filled out")==false)
  {review_date.focus();return false;}

  if (validate_required(job_title,"The employee's Job Title must be filled out")==false)
  {job_title.focus();return false;}

  if (validate_required(review_first_name,"Reviewer's First Name must be filled out")==false)
  {review_first_name.focus();return false;}

  if (validate_required(review_last_name,"Reviewer's Last Name must be filled out")==false)
  {review_last_name.focus();return false;}

  if (validate_required(review_email,"Reviewer's E-Mail Address must be filled out")==false)
  {review_email.focus();return false;}

  if (validate_required(from_date,"From Date must be filled out")==false)
  {from_date.focus();return false;}

  if (validate_required(to_date,"To Date must be filled out")==false)
  {to_date.focus();return false;}

  if (oneChecked(review_type,"Please check a review type")==false)
  {review_type[0].focus();return false;}
 
  if (oneChecked(communication_rating,"Please check a communication rating")==false)
  {communication_rating[0].focus();return false;}
  
  if (validate_required(communication_comments,"Please complete Communication Skills Comments even if N/A")==false)
  {communication_comments.focus();return false;}

  if (validate_required(dependability_comments,"Please complete Dependability, Initiative Comments even if N/A")==false)
  {dependability_comments.focus();return false;}

  if (validate_required(attitude_comments,"Please complete Attitude, Flexibility Comments even if N/A")==false)
  {attitude_comments.focus();return false;}

  if (validate_required(decision_comments,"Please complete Decision Making, Problem Solving Comments even if N/A")==false)
  {decision_comments.focus();return false;}

  if (validate_required(knowledge_comments,"Please complete Job Knowledge Comments even if N/A")==false)
  {knowledge_comments.focus();return false;}

  if (validate_required(financial_comments,"Please complete Financial Management Comments even if N/A")==false)
  {financial_comments.focus();return false;}

  //fatcat rating here
  
  //productivity here
  
  if (validate_required(average_productivity,"Please complete Average Monthly Productivity")==false)
  {average_productivity.focus();return false;}

  //productivty rating here

  if (validate_required(productivity_comments,"Please complete Productivity Standard Comments even if N/A")==false)
  {productivity_comments.focus();return false;}

  if (validate_required(diversity_comments,"Please complete Diversity, Cultural Competency Comments even if N/A")==false)
  {diversity_comments.focus();return false;}

  if (validate_required(planning_comments,"Please complete Planning, Organization, Quality Comments even if N/A")==false)
  {planning_comments.focus();return false;}

  if (validate_required(creativity_comments,"Please complete Creativity Comments even if N/A")==false)
  {creativity_comments.focus();return false;}

  if (validate_required(leadership_comments,"Please complete Leadership Comments even if N/A")==false)
  {leadership_comments.focus();return false;}

  if (validate_required(other_comments,"Please complete Other Comments even if N/A")==false)
  {other_comments.focus();return false;}

  if (validate_required(training_comments,"Please Complete Required Training Comments even if N/A")==false)
  {training_comments.focus();return false;}

  if (validate_required(development,"Please complete Areas for Development and Growth even if N/A")==false)
  {development.focus();return false;}

  if (validate_required(goals,"Please complete Goals even if N/A")==false)
  {goals.focus();return false;}
 
  }


}

</script>

.....

<form action="emp_review_process.php" name="review" onsubmit="return validate_form(this)" method="post">
 
<p><strong>Required Fields</strong></p>	      

<table width="600" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td class="required_left">Date</td>
    <td colspan="2"><input type="text" name="review_date" value="<?php if (isset($_POST['review_date'])) echo $_POST['review_date']; ?>" /></td>
    <td>(i.e. 07/01/01)</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">Employee First Name</td>
    <td colspan="2"><?php echo $_SESSION['SESS_FIRST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">Employee Last Name</td>
    <td colspan="2"><?php echo $_SESSION['SESS_LAST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Employee Job Title</td>
    <td colspan="2"><input type="text" name="job_title" value="<?php if (isset($_POST['job_title'])) echo $_POST['job_title']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Reviewer First Name</td>
    <td colspan="2"><input type="text" name="review_first_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_first_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr>
    <td colspan="2" class="required_left">Reviewer Last Name</td>
    <td colspan="2"><input type="text" name="review_last_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_last_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Reviewer E-mail Address</td>
    <td colspan="2"><input type="text" name="review_email" value="<?php if (isset($_POST['review_email'])) echo $_POST['review_email']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">REVIEW PERIOD (MONTH/YEAR):</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left">From:</td>
    <td><input type="text" name="from_date" value="<?php if (isset($_POST['from_date'])) echo $_POST['from_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left">To:</td>
    <td><input type="text" name="to_date" value="<?php if (isset($_POST['to_date'])) echo $_POST['to_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" valign="top" class="required_left">TYPE OF REVIEW</td>
<td colspan="2"><input type="radio" name="review_type" value="annual" />&nbsp;Annual<br  />
    				<input type="radio" name="review_type" value="6-month" />&nbsp;6-Month<br  />
        <input type="radio" name="review_type" value="special" />&nbsp;Special</td>
    
    <td>&nbsp;</td>
     <td>&nbsp;</td>
  </tr>

 <tr>
    <td colspan="6"><h2>1. Communication Skills</h2>
      (Consider written, verbal, and listening skills)<br />
      Actively listens to understand others &bull; Writes clearly and concisely without factual or typographic errors in a way that is engaging and interesting  &bull; Makes clear, concise, organized presentations  &bull; Uses content (words, level of detail) appropriate for audience  &bull; Performs group presentations in an effective, credible, and professional manner &bull; Disseminates information to group participants in a way that is concise and easy to understand &bull; Keeps superiors and team members informed of work completed and pending activities &bull; Responds in a timely manner to requests from clients, coworkers, and supervisors with quality information and deliverables, whether verbal or written</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="communication_rating" value="5" />    	  Exceptional (5)
    	  <br />
    	  <input type="radio" name="communication_rating" value="4" />    	  
   	    Sometimes More (4)
   	    <br />
   	    <input type="radio" name="communication_rating" value="3" />    	  
   	    Consistently (3)
   	    <br />
   	    <input type="radio" name="communication_rating" value="2" />    	  
   	    Sometimes Less (2)
   	    <br />
   	    <input type="radio" name="communication_rating" value="1" />    	  
   	    Unsatisfactory (1)
   	    <br />
   	    <input type="radio" name="communication_rating" value="" />    	  
   	    No Rating</td>
      </tr>

</form>

Open in new window

0
 
lisacowanAuthor Commented:
mplungjan:

Thanks for the revised code. I had to add a curly brace and semicolon, so I've attached the revised code for the entire page.

The first required field test for review_date works. But the second for job_title does not. The form doesn't submit--nothing happens. Eclipse is not giving me any errors, and nothing is jumping out at me.

If you go here:

http://www.enviromedia.com/performance_reviews/review_login.php

and login with

login and password, you can see the form in action.

Thanks for all of the help!

Lisa
<?php 
	session_start();
	$_SESSION['SESS_EMPLOYEE_ID'];
	$_SESSION['SESS_FIRST_NAME'];
	$_SESSION['SESS_LAST_NAME'];
	$_SESSION['SESS_REVIEW'];
	
	// connect and select:
	$dbc = mysql_connect('localhost', 'employee', 'qwe!3aPkxE');
	mysql_select_db('performance_review');
	
	
	
	?>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>EnviroMedia Social Marketing Employee Performance Evalutions</title>

<link href="styles.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" language="JavaScript">

if (!String.trim) {String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g, "");};}
function validate_required(field,alerttxt) {
  var val = field.value;
  if (val==null||val.trim()=="") {
    alert(alerttxt);
  }
  return false;
}
function oneChecked(radGroup,alerttxt) {
  for (var i=0;i<radGroup.length;i++) if (radGroup[i].checked) return true;
  alert(alerttxt);
  return false;
}



function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(review_date,"Review Date must be filled out")==false)
  {review_date.focus();return false;}

  if (validate_required(job_title,"The employee's Job Title must be filled out")==false)
  {job_title.focus();return false;}

  if (validate_required(review_first_name,"Reviewer's First Name must be filled out")==false)
  {review_first_name.focus();return false;}

  if (validate_required(review_last_name,"Reviewer's Last Name must be filled out")==false)
  {review_last_name.focus();return false;}

  if (validate_required(review_email,"Reviewer's E-Mail Address must be filled out")==false)
  {review_email.focus();return false;}

  if (validate_required(from_date,"From Date must be filled out")==false)
  {from_date.focus();return false;}

  if (validate_required(to_date,"To Date must be filled out")==false)
  {to_date.focus();return false;}

  if (oneChecked(review_type,"Please check a review type")==false)
  {review_type[0].focus();return false;}
 
  if (validate_required(communication_comments,"Please complete Communication Skills Comments even if N/A")==false)
  {communication_comments.focus();return false;}

  if (validate_required(dependability_comments,"Please complete Dependability, Initiative Comments even if N/A")==false)
  {dependability_comments.focus();return false;}

  if (validate_required(attitude_comments,"Please complete Attitude, Flexibility Comments even if N/A")==false)
  {attitude_comments.focus();return false;}

  if (validate_required(decision_comments,"Please complete Decision Making, Problem Solving Comments even if N/A")==false)
  {decision_comments.focus();return false;}

  if (validate_required(knowledge_comments,"Please complete Job Knowledge Comments even if N/A")==false)
  {knowledge_comments.focus();return false;}

  if (validate_required(financial_comments,"Please complete Financial Management Comments even if N/A")==false)
  {financial_comments.focus();return false;}

  if (oneChecked(fatcat_rating,"Please check a FATCAT-SAW rating")==false)
  {fatcat_rating[0].focus();return false;}
  
  if (oneChecked(productivity,"Please check a Productivity Standard")==false)
  {productivity[0].focus();return false;}
  
  if (validate_required(average_productivity,"Please complete Average Monthly Productivity")==false)
  {average_productivity.focus();return false;}

  if (oneChecked(productivity_rating,"Please check a Productivity rating")==false)
  {productivity_rating[0].focus();return false;}

  if (validate_required(productivity_comments,"Please complete Productivity Standard Comments even if N/A")==false)
  {productivity_comments.focus();return false;}

  if (validate_required(diversity_comments,"Please complete Diversity, Cultural Competency Comments even if N/A")==false)
  {diversity_comments.focus();return false;}

  if (validate_required(planning_comments,"Please complete Planning, Organization, Quality Comments even if N/A")==false)
  {planning_comments.focus();return false;}

  if (validate_required(creativity_comments,"Please complete Creativity Comments even if N/A")==false)
  {creativity_comments.focus();return false;}

  if (validate_required(leadership_comments,"Please complete Leadership Comments even if N/A")==false)
  {leadership_comments.focus();return false;}

  if (validate_required(other_comments,"Please complete Other Comments even if N/A")==false)
  {other_comments.focus();return false;}

  if (validate_required(training_comments,"Please Complete Required Training Comments even if N/A")==false)
  {training_comments.focus();return false;}

  if (validate_required(development,"Please complete Areas for Development and Growth even if N/A")==false)
  {development.focus();return false;}

  if (validate_required(goals,"Please complete Goals even if N/A")==false)
  {goals.focus();return false;}
 
  }


}

</script>


</head>

<body>

	<h1>EnviroMedia Social Marketing Performance Review</h1>
	
<div align="center">

<form action="emp_review_process.php" name="review" onsubmit="return validate_form(this)" method="post">
 
<p><strong>Required Fields</strong></p>	      

<table width="600" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td class="required_left"><label for="Review Date">Date</label></td>
    <td colspan="2"><input type="text" name="review_date" value="<?php if (isset($_POST['review_date'])) echo $_POST['review_date']; ?>" /></td>
    <td>(i.e. 07/01/01)</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><label for="Employee First Name">Employee First Name</label></td>
    <td colspan="2"><?php echo $_SESSION['SESS_FIRST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><label for="Employee Last Name">Employee Last Name</label></td>
    <td colspan="2"><?php echo $_SESSION['SESS_LAST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left"><label for="Employee Job Title">Employee Job Title</label></td>
    <td colspan="2"><input type="text" name="job_title" value="<?php if (isset($_POST['job_title'])) echo $_POST['job_title']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left"><label for="Reviewer First Name">Reviewer First Name</label></td>
    <td colspan="2"><input type="text" name="review_first_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_first_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr>
    <td colspan="2" class="required_left"><label for="Reviewer Last Name">Reviewer Last Name</label></td>
    <td colspan="2"><input type="text" name="review_last_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_last_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left"><label for="Reviewer E-mail Address">Reviewer E-mail Address</label></td>
    <td colspan="2"><input type="text" name="review_email" value="<?php if (isset($_POST['review_email'])) echo $_POST['review_email']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">REVIEW PERIOD (MONTH/YEAR):</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left"><label for="Review From">From:</label></td>
    <td><input type="text" name="from_date" value="<?php if (isset($_POST['from_date'])) echo $_POST['from_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left"><label for="Review To">To:</label></td>
    <td><input type="text" name="to_date" value="<?php if (isset($_POST['to_date'])) echo $_POST['to_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" valign="top" class="required_left">TYPE OF REVIEW</td>
<td colspan="2"><input type="radio" name="review_type" id="annual" value="annual" /><label for="annual">&nbsp;Annual</label><br  />
    				<input type="radio" name="review_type" value="6-month" id="6-month" /><label for="6-month">&nbsp;6-Month</label><br  />
        <input type="radio" name="review_type" value="special" id="special" /><label for="special">&nbsp;Special</label></td>
    
    <td>&nbsp;</td>
     <td>&nbsp;</td>
  </tr>
  <tr><td colspan="6"><img src="images/blank.gif" height="5" width="500" /></td></tr>
  <tr>
    <td colspan="6"><h2>Instructions:</h2>
    <ol>
        <li>Complete all sections. </li>
        <li> Carefully evaluate each of the factors separately, based on recurring day-to-day performance since the last review and not solely on recent or isolated exceptional events.  Use examples, whenever possible, to support each performance rating. Use the employee's Active Performance Tracking (APT) spreadsheet as a reference.</li>
        <li> All employees must be rated in each of the core performance areas and given specific feedback on performance. </li>
        <li>For each factor, evaluate the employee using the definitions provided below.</li>
        <li>The overall rating will be automatically calculated on the last page. <br />
        </li>
      </ol>      </td>
    </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" height="5" width="500" /></td>
    </tr>
  <tr>
    <td colspan="6">Exceptional  (5)<strong><br />
      </strong>Performs duties in an exceptional manner; significantly exceeds expectations with exceptional quality, quantity, and timeliness of work; significantly exceeds all objectives; always achieves exceptional results well beyond those expected of the position.</td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Sometimes More  (4)<br />
      Often exceeds the normal expectations for the position; often exceeds expected criteria for quality, quantity, and timeliness of work;  regularly achieves results beyond those expected for this position.</td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Consistently  (3)<br />
      Performs all duties of the position in a capable manner; meets all expected criteria for quality, quantity, and timeliness of work, including meeting goals and objectives. </td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Sometimes Less (2)<br />
      Performs many duties in a capable manner; meets some goals and objectives but requires improvement in quality, quantity, and timeliness of work to achieve overall satisfactory performance; may require more supervision than expected for an assignment.</td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Unsatisfactory (1)<br />
      Performance is considered below established requirements for the job, suggesting lack of willingness and/or ability to perform the requirements of the position.  Separation or reassignment is necessary unless performance improves significantly. <strong>Performance plan required.</strong></td>
    </tr>
  <tr>
    <td colspan="6" style="text-align:center;"><strong>The care and accuracy with which this appraisal is conducted will<br />
      determine its value to you, to the employee, and to the organization.</strong></td>
    </tr>
    <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    
  <tr>
    <td colspan="6"><h2>1. Communication Skills</h2>
      (Consider written, verbal, and listening skills)<br />
      Actively listens to understand others &bull; Writes clearly and concisely without factual or typographic errors in a way that is engaging and interesting  &bull; Makes clear, concise, organized presentations  &bull; Uses content (words, level of detail) appropriate for audience  &bull; Performs group presentations in an effective, credible, and professional manner &bull; Disseminates information to group participants in a way that is concise and easy to understand &bull; Keeps superiors and team members informed of work completed and pending activities &bull; Responds in a timely manner to requests from clients, coworkers, and supervisors with quality information and deliverables, whether verbal or written</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="communication_rating" value="5" id="communicaton_5" />    	  <label for="communication_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="communication_rating" value="4" id="communicaton_4" />    	  
   	    <label for="communication_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="3" id="communication_3" />    	  
   	    <label for="communication_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="2" id="communication_2" />    	  
   	    <label for="communication_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="1" id="communication_1" />    	  
   	    <label for="communication_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="" id="communication_none" />    	  
   	    <label for="communication_none">No Rating</label></td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="communication_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="communication_comments" cols="100" rows="5"><?php if (isset($_POST['communication_comments'])) echo $_POST['communication_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>2. Dependability, Initiative</h2>
      Instills full confidence in coworkers, clients, supervisors &bull; Performs duties without continual supervision &bull; Does whatever is necessary to complete a job or assignment &bull; Punctuality: on time to work, meetings, and appointments &bull; Appropriate use of flex time, telecommuting &bull; A self-starter who contributes and/or carries out new ideas or methods &bull; Seeks out challenges and thrives on solving them</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="dependability_rating" value="5" id="dependability_5" />    	  <label for="dependability_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="dependability_rating" value="4" id="dependability_4" />    	  
   	    <label for="dependability_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="dependability_rating" value="3" id="dependability_3" />    	  
   	    <label for="dependability_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="dependability_rating" value="2" id="dependability_2" />    	  
   	    <label for="dependability_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="dependability_rating" value="1" id="dependability_1" /> 
   	    <label for="dependability_1">Unsatisfactory (1)</label><br />
   	    <input type="radio" name="dependability_rating" value="" id="dependability_none" />    	  
   	    <label for="dependability_none">No Rating</label>   	  
   	    
	</td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="dependability_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="dependability_comments" cols="100" rows="5"><?php if (isset($_POST['dependability_comments'])) echo $_POST['dependability_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>3. Attitude, Flexibility</h2>
      Demonstrates appropriate level of commitment, interest, and enthusiasm in the performance of responsibilities and attitude toward coworkers &bull; Works effectively with others (individuals and departments) in positive, cooperative, and collaborative relationships &bull; Adapts to changes in priorities and procedures, adjusting activities and plans accordingly &bull; Handles multiple tasks concurrently &bull; Tailors approach to  task, situation, problem, or person &bull; Develops innovative solutions to problems </td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="attitude_rating" value="5" id="attitude_5" />    	  <label for="attitude_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="attitude_rating" value="4" id="attitude_4" />    	  
   	    <label for="attitude_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="attitude_rating" value="3" id="attitude_3" />    	  
   	    <label for="attitude_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="attitude_rating" value="2" id="attitude_2" />    	  
   	    <label for="attitude_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="attitude_rating" value="1" id="attitude_1" />    	  
   	   <label for="attitude_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="attitude_rating" value="" id="attitude_none" />    	  
   	    <label for="attitude_none">No Rating</label></td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="attitude_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="attitude_comments" cols="100" rows="5"><?php if (isset($_POST['attitude_comments'])) echo $_POST['attitude_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>4. Decision Making, Problem Solving</h2>
      Demonstrates ability to make sensible and appropriate decisions &bull; Identifies problems and determines their causes &bull; Assesses possible alternatives, outcomes, and risks &bull; Makes recommendations/decisions that don't jeopardize agency profitability or agency/client reputation &bull; Demonstrates discretion and professionalism in all situations especially during unusual stress &bull;  Ability to make solid decisions and balance risks vs. assured outcomes </td>
    </tr>
     <tr>
    	<td colspan="6"><input type="radio" name="decision_rating" value="5" id="decision_5" /><label for="decision_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="decision_rating" value="4" id="decision_4" />    	  
   	    <label for="decision_4">Sometimes More (4)</label><br />
   	    <input type="radio" name="decision_rating" value="3" id="decision_3" />    	  
   	    <label for="decision_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="decision_rating" value="2" id="decision_2" />    	  
   	    <label for="decision_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="decision_rating" value="1" id="decision_1" />    	  
   	    <label for="decision_1">Unsatisfactory (1)</label><br />
   	    <input type="radio" name="decision_rating" value="" id="decision_none" />    	  
   	    <label for="decision_none">No Rating</label>
   	    </td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="decision_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="decision_comments" cols="100" rows="5"><?php if (isset($_POST['decision_comments'])) echo $_POST['decision_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>5. Job Knowledge</h2>
      Possesses thorough knowledge of the job &bull; Keeps current on developments in areas of responsibility &bull; Uses knowledge to achieve desired marketing goals and environmental/public health results &bull;  Demonstrates a sensitivity to how job affects agency's public image &bull; Stays informed about environmental and health issues to further client's interests and assist in new business pitches as needed &bull; Monitors news coverage as it relates to EnviroMedia and its clients &bull;  Communicates new business ideas and items of interest on a regular basis &bull; Seeks professional training to enhance skills and knowledge </td>
    </tr>
     <tr>
    	<td colspan="6"><input type="radio" name="knowledge_rating" value="5" id="knowledge_5" />    	  <label for="knowledge_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="knowledge_rating" value="4" id="knowledge_4" />    	  
   	    <label for="knowledge_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="3" id="knowledge_3" />    	  
   	    <label for="knowledge_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="2" id="knowledge_2" />    	  
   	    <label for="knowledge_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="1" id="knowledge_1" />    	  
   	    <label for="knowledge_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="" id="knowledge_none" />    	  
   	    <label for="knowledge_none">No Rating</label>
   	    </td>
   	    
      </tr>
      <tr>
    <td valign="top"><strong><label for="knowledge_comments">Comments:</label> </strong></td>
    <td colspan="5"><textarea name="knowledge_comments" cols="100" rows="5"><?php if (isset($_POST['knowledge_comments'])) echo $_POST['knowledge_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>6. Financial Management</h2>
      Makes EnviroMedia's profitability a top priority &bull; Properly monitors budgets and expenditures and operates within those parameters &bull; Minimizes expenses whenever possible &bull; Understands and communicates importance of financial management and holds coworkers and vendors accountable &bull;  Uses vendors who deliver results for an agreed-upon price and who invoice timely and accurately &bull; Does not execute work without appropriately signed client estimate and purchase order &bull; Seeks multiple bids and selects best value &bull; Communicates proactively with F&amp;A</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="financial_rating" value="5" id="financial_5" />    	  <label for="financial_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="financial_rating" value="4" id="financial_4" />    	  
   	    <label for="financial_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="3" id="financial_3" />    	  
   	    <label for="financial_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="2" id="financial_2" />    	  
   	    <label for="financial_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="1" id="financial_1" />    	  
   	    <label for="financial_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="" id="financial_none" />    	  
   	    <label for="financial_none">No Rating</label></td>
      </tr>
     
   <tr>
    <td valign="top"><strong><label for="financial_comments">Comments:</label> </strong></td>
    <td colspan="5"><textarea name="financial_comments" cols="100" rows="5"><?php if (isset($_POST['financial_comments'])) echo $_POST['financial_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>7. FATCAT-SAW</h2><br />
      Believes and shares a passion for the agency's core values <br /></td>
    </tr>
  <tr>
    <td class="right"><input type="checkbox" name="fatcat_fun" id="fatcat_fun" value="yes" /></td>
    <td><label for="fatcat_fun">Fun</label></td>
    <td class="right"><input type="checkbox" name="fatcat_accountability" id="fatcat_accountability" value="yes" /></td>
    <td><label for="fatcat_accountability">Accountability</label></td>
    <td class="right"><input type="checkbox" name="fatcat_trust" id="fatcat_trust" value="yes" /></td>
    <td><label for="fatcat_fun">Trust</label></td>
  </tr>
  <tr>
    <td class="right"><input type="checkbox" name="fatcat_creativity" id="fatcat_creativity" value="yes" /></td>
    <td><label for="fatcat_creativity">Creativity</label></td>
    <td class="right"><input type="checkbox" name="fatcat_accuracy" id="fatcat_accuracy" value="yes" /></td>
    <td><label for="fatcat_accuracy">Accuracy</label></td>
    <td class="right"><input type="checkbox" name="fatcat_teamwork" id="fatcat_teamwork" value="yes" /></td>
    <td><label for="fatcat_teamwork">Teamwork</label></td>
  </tr>
  <tr>
    <td class="right"><input type="checkbox" name="fatcat_savvy" id="fatcat_savvy" value="yes" /></td>
    <td><label for="fatcat_savvy">Savvy</label></td>
    <td class="right"><input type="checkbox" name="fatcat_advocacy" id="fatcat_advocacy" value="yes" /></td>
    <td><label for="fatcat_advocacy">Advocacy</label></td>
    <td class="right"><input type="checkbox" name="fatcat_willingness" id="fatcat_willingness" value="yes" /></td>
    <td><label for="fatcat_willingness">Willingness</label></td>
  </tr>
  <tr>
    <td colspan="6">If any of the above boxes are not checked, an explanation must be provided. </td>
    </tr>
  <tr>
    <td valign="top"><label for="fatcat_comments">Comments:</label></td>
    <td colspan="5"><textarea name="fatcat_comments" cols="100" rows="5"><?php if (isset($_POST['fatcat_comments'])) echo $_POST['fatcat_comments']; ?></textarea></td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="fatcat_rating" value="5" id="fatcat_5" />    	  <label for="fatcat_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="fatcat_rating" value="4" id="fatcat_4" />    	  
   	    <label for="fatcat_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="fatcat_rating" value="3" id="fatcat_3" />    	  
   	    <label for="fatcat_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="fatcat_rating" value="2" id="fatcat_2" />    	  
   	    <label for="fatcat_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="fatcat_rating" value="1" id="fatcat_1" />    	  
   	    <label for="fatcat_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="fatact_rating" value="" id="fatcat_none" />    	  
   	    <label for="fatcat_comments">No Rating</label></td>
      </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>8. Productivity Standard</h2>
      Works to complete task in an efficient manner &bull; Tracks assignments and tasks effectively to satisfy client and agency needs &bull;  Spends 60% (managers) or 80% (others) of working hours on client billable assignments</td>
    </tr>
  <tr>
    <td colspan="6" class="required_left"><input type="radio" name="productivity" value="account_service" id="account_service" />      <label for="account_service">80% Account Service</label>
      <br />
      <input type="radio" name="productivity" value="others" id="others" />  	  
      <label for="account_service">Others</label>
      <!-- managers
      <input type="radio" name="managers" value="others" id="managers" />  	  
      <label for="managers">Managers</label> --></td>
    </tr>
  <tr>
    <td colspan="2" class="required_left"><strong><label for="average_productivity">Average Monthly %</label></strong></td>
    <td colspan="2"><input type="text" name="average_productivity" value="<?php if (isset($_POST['average_productivity'])) echo $_POST['average_productivity']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr>
    	<td colspan="6"><input type="radio" name="productivity_rating" value="5" id="productivity_5" />    	  <label for="productivity_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="productivity_rating" value="4" id="productivity_4" />    	  
   	    <label for="productivity_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="productivity_rating" value="3" id="productivity_3" />    	  
   	    <label for="productivity_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="productivity_rating" value="2" id="productivity_2" />    	  
   	    <label for="productivity_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="productivity_rating" value="1" id="productivity_1" />
   	    <label for="productivity_1">Unsatisfactory (1)</label>   	  
   	    <br />
   	    <input type="radio" name="productivity_rating" value="" id="productivity_none" />    	  
   	    <label for="productivity_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="productivity_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="productivity_comments" cols="100" rows="5"><?php if (isset($_POST['productivity_comments'])) echo $_POST['productivity_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>9. Diversity, Cultural Competency</h2>
      Demonstrates understanding and commitment to agency's value of diversity and cultural competency &bull;  Assists in recruiting a diverse, multicultural workforce &bull; Demonstrates good faith effort to use disadvantaged vendors &bull; Includes diverse audiences in research and comprehensive marketing plans &bull; Demonstrates a thorough understanding of the multicultural demographics of client target markets &bull;  Incorporates demographic knowledge into all work planning and execution </td>
    </tr>
    
    <tr>
    	<td colspan="6"><input type="radio" name="diversity_rating" value="5" id="diversity_5" />    	  <label for="diversity_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="diversity_rating" value="4" id="diversity_4" />    	  
   	    <label for="diversity_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="diversity_rating" value="3" id="diversity_3" />    	  
   	    <label for="diversity_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="diversity_rating" value="2" id="diversity_2" />    	  
   	    <label for="diversity_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="diversity_rating" value="1" id="diversity_1" />    	  
   	    <label for="diversity_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="diversity_rating" value="" id="diversity_none" />    	  
   	    <label for="diversity_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="diversity_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="diversity_comments" cols="100" rows="5"><?php if (isset($_POST['diversity_comments'])) echo $_POST['diversity_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>10. Planning, Organization, Quality</h2>
      Completes work in given time frame &bull; Handles multiple tasks concurrently without creating unnecessary stress on coworkers and clients &bull; Fits approach to task, situation, problem, or person &bull;   Meets deadlines and displays appropriate sense of urgency &bull; Doesn't produce sloppy work &bull; Works with account planners and researchers to develop realistic timelines and strategic campaigns &bull; Works with attention to detail and absence of error &bull; Strives to deliver exceptional work products &bull; Follows internal quality assurance procedures</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="planning_rating" value="5" id="planning_5" />    	  <label for="planning_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="planning_rating" value="4" id="planning_4" />    	  
   	    <label for="planning_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="3" id="planning_3" />    	  
   	    <label for="planning_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="2" id="planning_2" />    	  
   	    <label for="planning_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="1" id="planning_1" />    	  
   	    <label for="planning_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="" id="planning_none" />    	  
   	    <label for="planning_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="planning_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="planning_comments" cols="100" rows="5"><?php if (isset($_POST['planning_comments'])) echo $_POST['planning_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
   <tr>
    <td colspan="6"><h2>11. Creativity</h2>
      Develops creative ideas that are strategic to client needs, result in measurable behavior change, win industry awards and recognition, and are first to market &bull; Creates tactics, products, and materials that are memorable and attention-getting and haven't been done before &bull; Creative deliverables are research-based and strategic &bull; Doesn't allow budgets, time constraints, or other barriers to interfere with the creation of great work</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="creativity_rating" value="5" id="creativity_5" />    	  <label for="creativity_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="creativity_rating" value="4" id="creativity_4" />    	  
   	    <label for="creativity_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="3" id="creativity_3" />    	  
   	    <label for="creativity_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="2" id="creativity_2" />    	  
   	    <label for="creativity_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="1" id="creativity_1" />    	  
   	    <label for="creativity_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="" id="creativity_none" />    	  
   	    <label for="creativity_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="creativity_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="creativity_comments" cols="100" rows="5"><?php if (isset($_POST['creativity_comments'])) echo $_POST['creativity_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
   <tr>
    <td colspan="6"><h2>12. Leadership</h2>
      Creates and communicates a clear vision &bull; Uses personal/professional insight and competencies to communicate with and inspire others, guiding effective performance &bull; Builds a high-performing work environment &bull; Leads by example &bull; Involved in community activities that enhance EnviroMedia's reputation</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="leadership_rating" value="5" id="leadership_5" />    	  <label for="leadership_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="leadership_rating" value="4" id="leadership_4" />    	  
   	    <label for="leadership_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="leadership_rating" value="3" id="leadership_3" />    	  
   	    <label for="leadership_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="leadership_rating" value="2" id="leadership_2" />    	  
   	    <label for="leadership_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="leadership_rating" value="1" id="leadership_1" />    	  
   	    <label for="leadership_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="leadership_rating" value="" id="leadership_none" />    	  
   	    <label for="leadership_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="leadership_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="leadership_comments" cols="100" rows="5"><?php if (isset($_POST['leadership_comments'])) echo $_POST['leadership_comments']; ?></textarea></td>
    </tr>
    
    <!-- supervisor stuff goes here -->
    <tr><td colspan="6">&nbsp;</td></tr>
   <tr>
    <td colspan="6"><h2>13. Other (Optional--Please identify in comments)</h2></td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="other_rating" value="5" id="other_5" />    	  <label for="other_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="other_rating" value="4" id="other_4" />    	  
   	    <label for="other_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="other_rating" value="3" id="other_3" />    	  
   	    <label for="other_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="other_rating" value="2" id="other_2" />    	  
   	    <label for="other_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="other_rating" value="1" id="other_1" />    	  
   	    <label for="other_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="other_rating" value="" id="other_none" />    	  
   	    <label for="other_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="other_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="other_comments" cols="100" rows="5"><?php if (isset($_POST['other_comments'])) echo $_POST['other_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6"><h2> Completed Required Training</h2></td></tr>
    <tr>
      <td colspan="6">Has employee completed mandatory training (e.g., EnviroUs, human resources agency training, and other [please specify]?<br />
    Note: Failure to comply with mandatory training requirements will be noted on this performance appraisal.<br />
    <input type="radio" name="training" value="yes" id="training_yes" />    	  
   	    <label for="training_yes">Yes</label>
   	    <br />
   	    <input type="radio" name="training" value="no" id="training_no" />    	  
   	    <label for="training_no">No</label>
   	 </td></tr>
      <tr>
      <td class="required_left" valign="top"><strong><label for="training_no">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="training_comments" cols="100" rows="5"><?php if (isset($_POST['other_comments'])) echo $_POST['other_comments']; ?></textarea></td>
    </tr>
   <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
      <td valign="top" colspan="6"><label for="achievements">ACHIEVEMENTS AND ACCOMPLISHMENTS SINCE LAST REVIEW<br />
      List significant accomplishments, including APT entries, since the last review.</label></td></tr>
      <tr><td colspan="6" class="required_left"><textarea name="accomplishments" cols="120" rows="5"><?php if (isset($_POST['accomplishments'])) echo $_POST['accomplishments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
      <td valign="top" colspan="6" class="required_left"><label for="development">AREAS FOR DEVELOPMENT AND GROWTH OPPORTUNITIES<br />
      List any areas for development and how employee can improve on these.</label></td></tr>
      <tr><td colspan="6"><textarea name="development" cols="120" rows="5"><?php if (isset($_POST['development'])) echo $_POST['development']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
      <td valign="top" class="required_left" colspan="6"><label for="goals">Describe any specific goals or special projects this employee is assigned during the next four quarters. Specify details and milestones (set cooperatively by supervisor and employee).</label></td></tr>
      <tr><td colspan="6"><textarea name="goals" cols="120" rows="5"><?php if (isset($_POST['goals'])) echo $_POST['goals']; ?></textarea></td>
    </tr>
    
    <tr>
    	<td colspan="6" class="center"><input type="hidden" name="submitted" value="true" />
			<input type="submit" value="Submit Review" /><br />
            Please do not click submit more than once. You will be given an opportunity to edit your entry on the following pages.
			</td>
      </tr>
    
    
    <tr><td colspan="6"><img src="images/blank.gif" width="600" height="10" alt="." /></td></tr>
     <!-- begin shim row -->
  <tr>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
  </tr>
  <!-- end shim row -->
</table>
</form>

<p><strong>Required Fields</strong></p>
</div>
</body>
</html>

Open in new window

0
 
ploftinCommented:
I took your code you posted to me and made some changes so you can specify the alert text for the different radio buttons.
<script type="text/javascript" language="JavaScript">

function validate_required(field,alerttxt)
{
with (field)
  {
  if (value==null||value=="")
    {
    alert(alerttxt);
	return false;
    }
  else
    {
    return true;
    }
  }
}


function RadioCheck( name, alerttxt ) {
  var group = document.getElementsByName( name );
  for ( var g = 0; g < group.length; g++ ) {
    if ( group[ g ].checked ) {
      var onechecked = true;
    }
  }
  if (onechecked != true) {
    alert(alerttxt);
    return false;
  }
  else {
    return true;
  }
}


function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(review_date,"Review Date must be filled out")==false)
  {review_date.focus();return false;}

  if (validate_required(job_title,"The employee's Job Title must be filled out")==false)
  {job_title.focus();return false;}

  if (validate_required(review_first_name,"Reviewer's First Name must be filled out")==false)
  {review_first_name.focus();return false;}

  if (validate_required(review_last_name,"Reviewer's Last Name must be filled out")==false)
  {review_last_name.focus();return false;}

  if (validate_required(review_email,"Reviewer's E-Mail Address must be filled out")==false)
  {review_email.focus();return false;}

  if (validate_required(from_date,"From Date must be filled out")==false)
  {from_date.focus();return false;}

  if (validate_required(to_date,"To Date must be filled out")==false)
  {to_date.focus();return false;}
  
  if (RadioCheck(review_type,"Please pick a review type")==false)
  {review_type; return false;}
  
  if (RadioCheck(communication_rating,"Please select the productivity level")==false)
  {communication_rating; return false;}
  
  if (validate_required(communication_comments,"Please complete Communication Skills Comments even if N/A")==false)
  {communication_comments.focus();return false;}

  if (validate_required(dependability_comments,"Please complete Dependability, Initiative Comments even if N/A")==false)
  {dependability_comments.focus();return false;}

  if (validate_required(attitude_comments,"Please complete Attitude, Flexibility Comments even if N/A")==false)
  {attitude_comments.focus();return false;}

  if (validate_required(decision_comments,"Please complete Decision Making, Problem Solving Comments even if N/A")==false)
  {decision_comments.focus();return false;}

  if (validate_required(knowledge_comments,"Please complete Job Knowledge Comments even if N/A")==false)
  {knowledge_comments.focus();return false;}

  if (validate_required(financial_comments,"Please complete Financial Management Comments even if N/A")==false)
  {financial_comments.focus();return false;}

  //fatcat rating here
  
  //productivity here
  
  if (validate_required(average_productivity,"Please complete Average Monthly Productivity")==false)
  {average_productivity.focus();return false;}

  //productivty rating here

  if (validate_required(productivity_comments,"Please complete Productivity Standard Comments even if N/A")==false)
  {productivity_comments.focus();return false;}

  if (validate_required(diversity_comments,"Please complete Diversity, Cultural Competency Comments even if N/A")==false)
  {diversity_comments.focus();return false;}

  if (validate_required(planning_comments,"Please complete Planning, Organization, Quality Comments even if N/A")==false)
  {planning_comments.focus();return false;}

  if (validate_required(creativity_comments,"Please complete Creativity Comments even if N/A")==false)
  {creativity_comments.focus();return false;}

  if (validate_required(leadership_comments,"Please complete Leadership Comments even if N/A")==false)
  {leadership_comments.focus();return false;}

  if (validate_required(other_comments,"Please complete Other Comments even if N/A")==false)
  {other_comments.focus();return false;}

  if (validate_required(training_comments,"Please Complete Required Training Comments even if N/A")==false)
  {training_comments.focus();return false;}

  if (validate_required(development,"Please complete Areas for Development and Growth even if N/A")==false)
  {development.focus();return false;}

  if (validate_required(goals,"Please complete Goals even if N/A")==false)
  {goals.focus();return false;}
 
  }


}

</script>

.....

<form action="emp_review_process.php" name="review" onsubmit="return validate_form(this)" method="post">
 
<p><strong>Required Fields</strong></p>	      

<table width="600" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td class="required_left">Date</td>
    <td colspan="2"><input type="text" name="review_date" value="<?php if (isset($_POST['review_date'])) echo $_POST['review_date']; ?>" /></td>
    <td>(i.e. 07/01/01)</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">Employee First Name</td>
    <td colspan="2"><?php echo $_SESSION['SESS_FIRST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">Employee Last Name</td>
    <td colspan="2"><?php echo $_SESSION['SESS_LAST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Employee Job Title</td>
    <td colspan="2"><input type="text" name="job_title" value="<?php if (isset($_POST['job_title'])) echo $_POST['job_title']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Reviewer First Name</td>
    <td colspan="2"><input type="text" name="review_first_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_first_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr>
    <td colspan="2" class="required_left">Reviewer Last Name</td>
    <td colspan="2"><input type="text" name="review_last_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_last_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left">Reviewer E-mail Address</td>
    <td colspan="2"><input type="text" name="review_email" value="<?php if (isset($_POST['review_email'])) echo $_POST['review_email']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">REVIEW PERIOD (MONTH/YEAR):</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left">From:</td>
    <td><input type="text" name="from_date" value="<?php if (isset($_POST['from_date'])) echo $_POST['from_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left">To:</td>
    <td><input type="text" name="to_date" value="<?php if (isset($_POST['to_date'])) echo $_POST['to_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" valign="top" class="required_left">TYPE OF REVIEW</td>
<td colspan="2"><input type="radio" name="review_type" value="annual" />&nbsp;Annual<br  />
    				<input type="radio" name="review_type" value="6-month" />&nbsp;6-Month<br  />
        <input type="radio" name="review_type" value="special" />&nbsp;Special</td>
    
    <td>&nbsp;</td>
     <td>&nbsp;</td>
  </tr>

 <tr>
    <td colspan="6"><h2>1. Communication Skills</h2>
      (Consider written, verbal, and listening skills)<br />
      Actively listens to understand others &bull; Writes clearly and concisely without factual or typographic errors in a way that is engaging and interesting  &bull; Makes clear, concise, organized presentations  &bull; Uses content (words, level of detail) appropriate for audience  &bull; Performs group presentations in an effective, credible, and professional manner &bull; Disseminates information to group participants in a way that is concise and easy to understand &bull; Keeps superiors and team members informed of work completed and pending activities &bull; Responds in a timely manner to requests from clients, coworkers, and supervisors with quality information and deliverables, whether verbal or written</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="communication_rating" value="5" />    	  Exceptional (5)
    	  <br />
    	  <input type="radio" name="communication_rating" value="4" />    	  
   	    Sometimes More (4)
   	    <br />
   	    <input type="radio" name="communication_rating" value="3" />    	  
   	    Consistently (3)
   	    <br />
   	    <input type="radio" name="communication_rating" value="2" />    	  
   	    Sometimes Less (2)
   	    <br />
   	    <input type="radio" name="communication_rating" value="1" />    	  
   	    Unsatisfactory (1)
   	    <br />
   	    <input type="radio" name="communication_rating" value="" />    	  
   	    No Rating</td>
      </tr>

</form>

Open in new window

0
 
Michel PlungjanIT ExpertCommented:
My mistake by modifying too many things at the same time

function validate_required(field,alerttxt) {
  var val = field.value;
  if (val==null||val.trim()=="") {
    alert(alerttxt);
    return false;
  }
  return true;
}
0
 
Michel PlungjanIT ExpertCommented:
Ploftin this does not work

  if (RadioCheck(review_type,"Please pick a review type")==false)
  {review_type; return false;}
 
  if (RadioCheck(communication_rating,"Please select the productivity level")==false)
  {communication_rating; return false;}
 
This might


  if (RadioCheck(review_type,"Please pick a review type")==false)
  {review_type[0].focus(); return false;}
 
  if (RadioCheck(communication_rating,"Please select the productivity level")==false)
  {communication_rating[0].focus(); return false;}
 
as I already posted

0
 
ploftinCommented:
Or if you want to continue with mplungjan's code, it looks like what you posted back to him needs a modification around the validate_required function.  It's not ever returning true - if the validation passes.  See below:
function validate_required(field,alerttxt) {
  var val = field.value;
  if (val==null||val.trim()=="") {
    alert(alerttxt);
	return false;
  }
  else {
    return true;
  }

Open in new window

0
 
lisacowanAuthor Commented:
Hmmm. Now it's going right to the processing without any error checking. I've posted the entire form again in case I messed up something.

Thanks!

Lisa
<?php 
	session_start();
	$_SESSION['SESS_EMPLOYEE_ID'];
	$_SESSION['SESS_FIRST_NAME'];
	$_SESSION['SESS_LAST_NAME'];
	$_SESSION['SESS_REVIEW'];
	
	// connect and select:
	$dbc = mysql_connect('localhost', 'employee', 'qwe!3aPkxE');
	mysql_select_db('performance_review');
	
	
	
	?>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>EnviroMedia Social Marketing Employee Performance Evalutions</title>

<link href="styles.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" language="JavaScript">

if (!String.trim) {String.prototype.trim = function() {return this.replace(/^\s+|\s+$/g, "");};}
function validate_required(field,alerttxt) {
  var val = field.value;
  if (val==null||val.trim()=="") {
    alert(alerttxt);
  }
  return false;
  
}
function oneChecked(radGroup,alerttxt) {
  for (var i=0;i<radGroup.length;i++) if (radGroup[i].checked) return true;
  alert(alerttxt);
  return false;
}


function validate_form(thisform)
{
with (thisform)
  {
  if (validate_required(review_date,"Review Date must be filled out")==false)
  {review_date.focus();return false;}

  if (validate_required(job_title,"The employee's Job Title must be filled out")==false)
  {job_title.focus();return false;}

  if (validate_required(review_first_name,"Reviewer's First Name must be filled out")==false)
  {review_first_name.focus();return false;}

  if (validate_required(review_last_name,"Reviewer's Last Name must be filled out")==false)
  {review_last_name.focus();return false;}

  if (validate_required(review_email,"Reviewer's E-Mail Address must be filled out")==false)
  {review_email.focus();return false;}

  if (validate_required(from_date,"From Date must be filled out")==false)
  {from_date.focus();return false;}

  if (validate_required(to_date,"To Date must be filled out")==false)
  {to_date.focus();return false;}

  if (oneChecked(review_type,"Please check a review type")==false)
  {review_type[0].focus();return false;}
 
  if (validate_required(communication_comments,"Please complete Communication Skills Comments even if N/A")==false)
  {communication_comments.focus();return false;}

  if (validate_required(dependability_comments,"Please complete Dependability, Initiative Comments even if N/A")==false)
  {dependability_comments.focus();return false;}

  if (validate_required(attitude_comments,"Please complete Attitude, Flexibility Comments even if N/A")==false)
  {attitude_comments.focus();return false;}

  if (validate_required(decision_comments,"Please complete Decision Making, Problem Solving Comments even if N/A")==false)
  {decision_comments.focus();return false;}

  if (validate_required(knowledge_comments,"Please complete Job Knowledge Comments even if N/A")==false)
  {knowledge_comments.focus();return false;}

  if (validate_required(financial_comments,"Please complete Financial Management Comments even if N/A")==false)
  {financial_comments.focus();return false;}

  if (oneChecked(fatcat_rating,"Please check a FATCAT-SAW rating")==false)
  {fatcat_rating[0].focus();return false;}
  
  if (oneChecked(productivity,"Please check a Productivity Standard")==false)
  {productivity[0].focus();return false;}
  
  if (validate_required(average_productivity,"Please complete Average Monthly Productivity")==false)
  {average_productivity.focus();return false;}

  if (oneChecked(productivity_rating,"Please check a Productivity rating")==false)
  {productivity[0].focus();return false;}

  if (validate_required(productivity_comments,"Please complete Productivity Standard Comments even if N/A")==false)
  {productivity_comments.focus();return false;}

  if (validate_required(diversity_comments,"Please complete Diversity, Cultural Competency Comments even if N/A")==false)
  {diversity_comments.focus();return false;}

  if (validate_required(planning_comments,"Please complete Planning, Organization, Quality Comments even if N/A")==false)
  {planning_comments.focus();return false;}

  if (validate_required(creativity_comments,"Please complete Creativity Comments even if N/A")==false)
  {creativity_comments.focus();return false;}

  if (validate_required(leadership_comments,"Please complete Leadership Comments even if N/A")==false)
  {leadership_comments.focus();return false;}

  if (validate_required(other_comments,"Please complete Other Comments even if N/A")==false)
  {other_comments.focus();return false;}

  if (validate_required(training_comments,"Please Complete Required Training Comments even if N/A")==false)
  {training_comments.focus();return false;}

  if (validate_required(development,"Please complete Areas for Development and Growth even if N/A")==false)
  {development.focus();return false;}

  if (validate_required(goals,"Please complete Goals even if N/A")==false)
  {goals.focus();return false;}
 
  }


}

</script>


</head>

<body>

	<h1>EnviroMedia Social Marketing Performance Review</h1>
	
<div align="center">

<form action="emp_review_process.php" name="review" onsubmit="return validate_form(this)" method="post">
 
<p><strong>Required Fields</strong></p>	      

<table width="600" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td class="required_left"><label for="Review Date">Date</label></td>
    <td colspan="2"><input type="text" name="review_date" value="<?php if (isset($_POST['review_date'])) echo $_POST['review_date']; ?>" /></td>
    <td>(i.e. 07/01/01)</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><label for="Employee First Name">Employee First Name</label></td>
    <td colspan="2"><?php echo $_SESSION['SESS_FIRST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><label for="Employee Last Name">Employee Last Name</label></td>
    <td colspan="2"><?php echo $_SESSION['SESS_LAST_NAME'];?></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left"><label for="Employee Job Title">Employee Job Title</label></td>
    <td colspan="2"><input type="text" name="job_title" value="<?php if (isset($_POST['job_title'])) echo $_POST['job_title']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left"><label for="Reviewer First Name">Reviewer First Name</label></td>
    <td colspan="2"><input type="text" name="review_first_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_first_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr>
    <td colspan="2" class="required_left"><label for="Reviewer Last Name">Reviewer Last Name</label></td>
    <td colspan="2"><input type="text" name="review_last_name" value="<?php if (isset($_POST['review_first_name'])) echo $_POST['review_last_name']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" class="required_left"><label for="Reviewer E-mail Address">Reviewer E-mail Address</label></td>
    <td colspan="2"><input type="text" name="review_email" value="<?php if (isset($_POST['review_email'])) echo $_POST['review_email']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">REVIEW PERIOD (MONTH/YEAR):</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left"><label for="Review From">From:</label></td>
    <td><input type="text" name="from_date" value="<?php if (isset($_POST['from_date'])) echo $_POST['from_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="required_left"><label for="Review To">To:</label></td>
    <td><input type="text" name="to_date" value="<?php if (isset($_POST['to_date'])) echo $_POST['to_date']; ?>" style="width:40px;" /></td>
    <td>(e.g., 01/01)</td>
    <td class="required_left">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" valign="top" class="required_left">TYPE OF REVIEW</td>
<td colspan="2"><input type="radio" name="review_type" id="annual" value="annual" /><label for="annual">&nbsp;Annual</label><br  />
    				<input type="radio" name="review_type" value="6-month" id="6-month" /><label for="6-month">&nbsp;6-Month</label><br  />
        <input type="radio" name="review_type" value="special" id="special" /><label for="special">&nbsp;Special</label></td>
    
    <td>&nbsp;</td>
     <td>&nbsp;</td>
  </tr>
  <tr><td colspan="6"><img src="images/blank.gif" height="5" width="500" /></td></tr>
  <tr>
    <td colspan="6"><h2>Instructions:</h2>
    <ol>
        <li>Complete all sections. </li>
        <li> Carefully evaluate each of the factors separately, based on recurring day-to-day performance since the last review and not solely on recent or isolated exceptional events.  Use examples, whenever possible, to support each performance rating. Use the employee's Active Performance Tracking (APT) spreadsheet as a reference.</li>
        <li> All employees must be rated in each of the core performance areas and given specific feedback on performance. </li>
        <li>For each factor, evaluate the employee using the definitions provided below.</li>
        <li>The overall rating will be automatically calculated on the last page. <br />
        </li>
      </ol>      </td>
    </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" height="5" width="500" /></td>
    </tr>
  <tr>
    <td colspan="6">Exceptional  (5)<strong><br />
      </strong>Performs duties in an exceptional manner; significantly exceeds expectations with exceptional quality, quantity, and timeliness of work; significantly exceeds all objectives; always achieves exceptional results well beyond those expected of the position.</td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Sometimes More  (4)<br />
      Often exceeds the normal expectations for the position; often exceeds expected criteria for quality, quantity, and timeliness of work;  regularly achieves results beyond those expected for this position.</td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Consistently  (3)<br />
      Performs all duties of the position in a capable manner; meets all expected criteria for quality, quantity, and timeliness of work, including meeting goals and objectives. </td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Sometimes Less (2)<br />
      Performs many duties in a capable manner; meets some goals and objectives but requires improvement in quality, quantity, and timeliness of work to achieve overall satisfactory performance; may require more supervision than expected for an assignment.</td>
  </tr>
  <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
  <tr>
    <td colspan="6">Unsatisfactory (1)<br />
      Performance is considered below established requirements for the job, suggesting lack of willingness and/or ability to perform the requirements of the position.  Separation or reassignment is necessary unless performance improves significantly. <strong>Performance plan required.</strong></td>
    </tr>
  <tr>
    <td colspan="6" style="text-align:center;"><strong>The care and accuracy with which this appraisal is conducted will<br />
      determine its value to you, to the employee, and to the organization.</strong></td>
    </tr>
    <tr>
    <td colspan="6" height="3"><img src="images/blank.gif" alt="." width="500" height="5" /></td>
  </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    
  <tr>
    <td colspan="6"><h2>1. Communication Skills</h2>
      (Consider written, verbal, and listening skills)<br />
      Actively listens to understand others &bull; Writes clearly and concisely without factual or typographic errors in a way that is engaging and interesting  &bull; Makes clear, concise, organized presentations  &bull; Uses content (words, level of detail) appropriate for audience  &bull; Performs group presentations in an effective, credible, and professional manner &bull; Disseminates information to group participants in a way that is concise and easy to understand &bull; Keeps superiors and team members informed of work completed and pending activities &bull; Responds in a timely manner to requests from clients, coworkers, and supervisors with quality information and deliverables, whether verbal or written</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="communication_rating" value="5" id="communicaton_5" />    	  <label for="communication_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="communication_rating" value="4" id="communicaton_4" />    	  
   	    <label for="communication_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="3" id="communication_3" />    	  
   	    <label for="communication_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="2" id="communication_2" />    	  
   	    <label for="communication_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="1" id="communication_1" />    	  
   	    <label for="communication_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="communication_rating" value="" id="communication_none" />    	  
   	    <label for="communication_none">No Rating</label></td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="communication_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="communication_comments" cols="100" rows="5"><?php if (isset($_POST['communication_comments'])) echo $_POST['communication_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>2. Dependability, Initiative</h2>
      Instills full confidence in coworkers, clients, supervisors &bull; Performs duties without continual supervision &bull; Does whatever is necessary to complete a job or assignment &bull; Punctuality: on time to work, meetings, and appointments &bull; Appropriate use of flex time, telecommuting &bull; A self-starter who contributes and/or carries out new ideas or methods &bull; Seeks out challenges and thrives on solving them</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="dependability_rating" value="5" id="dependability_5" />    	  <label for="dependability_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="dependability_rating" value="4" id="dependability_4" />    	  
   	    <label for="dependability_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="dependability_rating" value="3" id="dependability_3" />    	  
   	    <label for="dependability_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="dependability_rating" value="2" id="dependability_2" />    	  
   	    <label for="dependability_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="dependability_rating" value="1" id="dependability_1" /> 
   	    <label for="dependability_1">Unsatisfactory (1)</label><br />
   	    <input type="radio" name="dependability_rating" value="" id="dependability_none" />    	  
   	    <label for="dependability_none">No Rating</label>   	  
   	    
	</td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="dependability_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="dependability_comments" cols="100" rows="5"><?php if (isset($_POST['dependability_comments'])) echo $_POST['dependability_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>3. Attitude, Flexibility</h2>
      Demonstrates appropriate level of commitment, interest, and enthusiasm in the performance of responsibilities and attitude toward coworkers &bull; Works effectively with others (individuals and departments) in positive, cooperative, and collaborative relationships &bull; Adapts to changes in priorities and procedures, adjusting activities and plans accordingly &bull; Handles multiple tasks concurrently &bull; Tailors approach to  task, situation, problem, or person &bull; Develops innovative solutions to problems </td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="attitude_rating" value="5" id="attitude_5" />    	  <label for="attitude_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="attitude_rating" value="4" id="attitude_4" />    	  
   	    <label for="attitude_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="attitude_rating" value="3" id="attitude_3" />    	  
   	    <label for="attitude_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="attitude_rating" value="2" id="attitude_2" />    	  
   	    <label for="attitude_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="attitude_rating" value="1" id="attitude_1" />    	  
   	   <label for="attitude_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="attitude_rating" value="" id="attitude_none" />    	  
   	    <label for="attitude_none">No Rating</label></td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="attitude_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="attitude_comments" cols="100" rows="5"><?php if (isset($_POST['attitude_comments'])) echo $_POST['attitude_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>4. Decision Making, Problem Solving</h2>
      Demonstrates ability to make sensible and appropriate decisions &bull; Identifies problems and determines their causes &bull; Assesses possible alternatives, outcomes, and risks &bull; Makes recommendations/decisions that don't jeopardize agency profitability or agency/client reputation &bull; Demonstrates discretion and professionalism in all situations especially during unusual stress &bull;  Ability to make solid decisions and balance risks vs. assured outcomes </td>
    </tr>
     <tr>
    	<td colspan="6"><input type="radio" name="decision_rating" value="5" id="decision_5" /><label for="decision_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="decision_rating" value="4" id="decision_4" />    	  
   	    <label for="decision_4">Sometimes More (4)</label><br />
   	    <input type="radio" name="decision_rating" value="3" id="decision_3" />    	  
   	    <label for="decision_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="decision_rating" value="2" id="decision_2" />    	  
   	    <label for="decision_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="decision_rating" value="1" id="decision_1" />    	  
   	    <label for="decision_1">Unsatisfactory (1)</label><br />
   	    <input type="radio" name="decision_rating" value="" id="decision_none" />    	  
   	    <label for="decision_none">No Rating</label>
   	    </td>
      </tr>
    <tr>
      <td valign="top"><strong><label for="decision_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="decision_comments" cols="100" rows="5"><?php if (isset($_POST['decision_comments'])) echo $_POST['decision_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>5. Job Knowledge</h2>
      Possesses thorough knowledge of the job &bull; Keeps current on developments in areas of responsibility &bull; Uses knowledge to achieve desired marketing goals and environmental/public health results &bull;  Demonstrates a sensitivity to how job affects agency's public image &bull; Stays informed about environmental and health issues to further client's interests and assist in new business pitches as needed &bull; Monitors news coverage as it relates to EnviroMedia and its clients &bull;  Communicates new business ideas and items of interest on a regular basis &bull; Seeks professional training to enhance skills and knowledge </td>
    </tr>
     <tr>
    	<td colspan="6"><input type="radio" name="knowledge_rating" value="5" id="knowledge_5" />    	  <label for="knowledge_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="knowledge_rating" value="4" id="knowledge_4" />    	  
   	    <label for="knowledge_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="3" id="knowledge_3" />    	  
   	    <label for="knowledge_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="2" id="knowledge_2" />    	  
   	    <label for="knowledge_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="1" id="knowledge_1" />    	  
   	    <label for="knowledge_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="knowledge_rating" value="" id="knowledge_none" />    	  
   	    <label for="knowledge_none">No Rating</label>
   	    </td>
   	    
      </tr>
      <tr>
    <td valign="top"><strong><label for="knowledge_comments">Comments:</label> </strong></td>
    <td colspan="5"><textarea name="knowledge_comments" cols="100" rows="5"><?php if (isset($_POST['knowledge_comments'])) echo $_POST['knowledge_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
    <td colspan="6"><h2>6. Financial Management</h2>
      Makes EnviroMedia's profitability a top priority &bull; Properly monitors budgets and expenditures and operates within those parameters &bull; Minimizes expenses whenever possible &bull; Understands and communicates importance of financial management and holds coworkers and vendors accountable &bull;  Uses vendors who deliver results for an agreed-upon price and who invoice timely and accurately &bull; Does not execute work without appropriately signed client estimate and purchase order &bull; Seeks multiple bids and selects best value &bull; Communicates proactively with F&amp;A</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="financial_rating" value="5" id="financial_5" />    	  <label for="financial_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="financial_rating" value="4" id="financial_4" />    	  
   	    <label for="financial_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="3" id="financial_3" />    	  
   	    <label for="financial_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="2" id="financial_2" />    	  
   	    <label for="financial_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="1" id="financial_1" />    	  
   	    <label for="financial_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="financial_rating" value="" id="financial_none" />    	  
   	    <label for="financial_none">No Rating</label></td>
      </tr>
     
   <tr>
    <td valign="top"><strong><label for="financial_comments">Comments:</label> </strong></td>
    <td colspan="5"><textarea name="financial_comments" cols="100" rows="5"><?php if (isset($_POST['financial_comments'])) echo $_POST['financial_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>7. FATCAT-SAW</h2><br />
      Believes and shares a passion for the agency's core values <br /></td>
    </tr>
  <tr>
    <td class="right"><input type="checkbox" name="fatcat_fun" id="fatcat_fun" value="yes" /></td>
    <td><label for="fatcat_fun">Fun</label></td>
    <td class="right"><input type="checkbox" name="fatcat_accountability" id="fatcat_accountability" value="yes" /></td>
    <td><label for="fatcat_accountability">Accountability</label></td>
    <td class="right"><input type="checkbox" name="fatcat_trust" id="fatcat_trust" value="yes" /></td>
    <td><label for="fatcat_fun">Trust</label></td>
  </tr>
  <tr>
    <td class="right"><input type="checkbox" name="fatcat_creativity" id="fatcat_creativity" value="yes" /></td>
    <td><label for="fatcat_creativity">Creativity</label></td>
    <td class="right"><input type="checkbox" name="fatcat_accuracy" id="fatcat_accuracy" value="yes" /></td>
    <td><label for="fatcat_accuracy">Accuracy</label></td>
    <td class="right"><input type="checkbox" name="fatcat_teamwork" id="fatcat_teamwork" value="yes" /></td>
    <td><label for="fatcat_teamwork">Teamwork</label></td>
  </tr>
  <tr>
    <td class="right"><input type="checkbox" name="fatcat_savvy" id="fatcat_savvy" value="yes" /></td>
    <td><label for="fatcat_savvy">Savvy</label></td>
    <td class="right"><input type="checkbox" name="fatcat_advocacy" id="fatcat_advocacy" value="yes" /></td>
    <td><label for="fatcat_advocacy">Advocacy</label></td>
    <td class="right"><input type="checkbox" name="fatcat_willingness" id="fatcat_willingness" value="yes" /></td>
    <td><label for="fatcat_willingness">Willingness</label></td>
  </tr>
  <tr>
    <td colspan="6">If any of the above boxes are not checked, an explanation must be provided. </td>
    </tr>
  <tr>
    <td valign="top"><label for="fatcat_comments">Comments:</label></td>
    <td colspan="5"><textarea name="fatcat_comments" cols="100" rows="5"><?php if (isset($_POST['fatcat_comments'])) echo $_POST['fatcat_comments']; ?></textarea></td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="fatcat_rating" value="5" id="fatcat_5" />    	  <label for="fatcat_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="fatcat_rating" value="4" id="fatcat_4" />    	  
   	    <label for="fatcat_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="fatcat_rating" value="3" id="fatcat_3" />    	  
   	    <label for="fatcat_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="fatcat_rating" value="2" id="fatcat_2" />    	  
   	    <label for="fatcat_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="fatcat_rating" value="1" id="fatcat_1" />    	  
   	    <label for="fatcat_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="fatact_rating" value="" id="fatcat_none" />    	  
   	    <label for="fatcat_comments">No Rating</label></td>
      </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>8. Productivity Standard</h2>
      Works to complete task in an efficient manner &bull; Tracks assignments and tasks effectively to satisfy client and agency needs &bull;  Spends 60% (managers) or 80% (others) of working hours on client billable assignments</td>
    </tr>
  <tr>
    <td colspan="6" class="required_left"><input type="radio" name="productivity" value="account_service" id="account_service" />      <label for="account_service">80% Account Service</label>
      <br />
      <input type="radio" name="productivity" value="others" id="others" />  	  
      <label for="account_service">Others</label>
      <!-- managers
      <input type="radio" name="managers" value="others" id="managers" />  	  
      <label for="managers">Managers</label> --></td>
    </tr>
  <tr>
    <td colspan="2" class="required_left"><strong><label for="average_productivity">Average Monthly %</label></strong></td>
    <td colspan="2"><input type="text" name="average_productivity" value="<?php if (isset($_POST['average_productivity'])) echo $_POST['average_productivity']; ?>" /></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <tr>
    	<td colspan="6"><input type="radio" name="productivity_rating" value="5" id="productivity_5" />    	  <label for="productivity_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="productivity_rating" value="4" id="productivity_4" />    	  
   	    <label for="productivity_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="productivity_rating" value="3" id="productivity_3" />    	  
   	    <label for="productivity_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="productivity_rating" value="2" id="productivity_2" />    	  
   	    <label for="productivity_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="productivity_rating" value="1" id="productivity_1" />
   	    <label for="productivity_1">Unsatisfactory (1)</label>   	  
   	    <br />
   	    <input type="radio" name="productivity_rating" value="" id="productivity_none" />    	  
   	    <label for="productivity_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="productivity_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="productivity_comments" cols="100" rows="5"><?php if (isset($_POST['productivity_comments'])) echo $_POST['productivity_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>9. Diversity, Cultural Competency</h2>
      Demonstrates understanding and commitment to agency's value of diversity and cultural competency &bull;  Assists in recruiting a diverse, multicultural workforce &bull; Demonstrates good faith effort to use disadvantaged vendors &bull; Includes diverse audiences in research and comprehensive marketing plans &bull; Demonstrates a thorough understanding of the multicultural demographics of client target markets &bull;  Incorporates demographic knowledge into all work planning and execution </td>
    </tr>
    
    <tr>
    	<td colspan="6"><input type="radio" name="diversity_rating" value="5" id="diversity_5" />    	  <label for="diversity_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="diversity_rating" value="4" id="diversity_4" />    	  
   	    <label for="diversity_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="diversity_rating" value="3" id="diversity_3" />    	  
   	    <label for="diversity_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="diversity_rating" value="2" id="diversity_2" />    	  
   	    <label for="diversity_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="diversity_rating" value="1" id="diversity_1" />    	  
   	    <label for="diversity_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="diversity_rating" value="" id="diversity_none" />    	  
   	    <label for="diversity_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="diversity_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="diversity_comments" cols="100" rows="5"><?php if (isset($_POST['diversity_comments'])) echo $_POST['diversity_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
  <tr>
    <td colspan="6"><h2>10. Planning, Organization, Quality</h2>
      Completes work in given time frame &bull; Handles multiple tasks concurrently without creating unnecessary stress on coworkers and clients &bull; Fits approach to task, situation, problem, or person &bull;   Meets deadlines and displays appropriate sense of urgency &bull; Doesn't produce sloppy work &bull; Works with account planners and researchers to develop realistic timelines and strategic campaigns &bull; Works with attention to detail and absence of error &bull; Strives to deliver exceptional work products &bull; Follows internal quality assurance procedures</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="planning_rating" value="5" id="planning_5" />    	  <label for="planning_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="planning_rating" value="4" id="planning_4" />    	  
   	    <label for="planning_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="3" id="planning_3" />    	  
   	    <label for="planning_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="2" id="planning_2" />    	  
   	    <label for="planning_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="1" id="planning_1" />    	  
   	    <label for="planning_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="planning_rating" value="" id="planning_none" />    	  
   	    <label for="planning_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="planning_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="planning_comments" cols="100" rows="5"><?php if (isset($_POST['planning_comments'])) echo $_POST['planning_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
   <tr>
    <td colspan="6"><h2>11. Creativity</h2>
      Develops creative ideas that are strategic to client needs, result in measurable behavior change, win industry awards and recognition, and are first to market &bull; Creates tactics, products, and materials that are memorable and attention-getting and haven't been done before &bull; Creative deliverables are research-based and strategic &bull; Doesn't allow budgets, time constraints, or other barriers to interfere with the creation of great work</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="creativity_rating" value="5" id="creativity_5" />    	  <label for="creativity_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="creativity_rating" value="4" id="creativity_4" />    	  
   	    <label for="creativity_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="3" id="creativity_3" />    	  
   	    <label for="creativity_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="2" id="creativity_2" />    	  
   	    <label for="creativity_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="1" id="creativity_1" />    	  
   	    <label for="creativity_1">Unsatisfactory (1)</label>
   	    <br />
   	    <input type="radio" name="creativity_rating" value="" id="creativity_none" />    	  
   	    <label for="creativity_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="creativity_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="creativity_comments" cols="100" rows="5"><?php if (isset($_POST['creativity_comments'])) echo $_POST['creativity_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
   <tr>
    <td colspan="6"><h2>12. Leadership</h2>
      Creates and communicates a clear vision &bull; Uses personal/professional insight and competencies to communicate with and inspire others, guiding effective performance &bull; Builds a high-performing work environment &bull; Leads by example &bull; Involved in community activities that enhance EnviroMedia's reputation</td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="leadership_rating" value="5" id="leadership_5" />    	  <label for="leadership_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="leadership_rating" value="4" id="leadership_4" />    	  
   	    <label for="leadership_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="leadership_rating" value="3" id="leadership_3" />    	  
   	    <label for="leadership_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="leadership_rating" value="2" id="leadership_2" />    	  
   	    <label for="leadership_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="leadership_rating" value="1" id="leadership_1" />    	  
   	    <label for="leadership_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="leadership_rating" value="" id="leadership_none" />    	  
   	    <label for="leadership_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="leadership_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="leadership_comments" cols="100" rows="5"><?php if (isset($_POST['leadership_comments'])) echo $_POST['leadership_comments']; ?></textarea></td>
    </tr>
    
    <!-- supervisor stuff goes here -->
    <tr><td colspan="6">&nbsp;</td></tr>
   <tr>
    <td colspan="6"><h2>13. Other (Optional--Please identify in comments)</h2></td>
    </tr>
    <tr>
    	<td colspan="6"><input type="radio" name="other_rating" value="5" id="other_5" />    	  <label for="other_5">Exceptional (5)</label>
    	  <br />
    	  <input type="radio" name="other_rating" value="4" id="other_4" />    	  
   	    <label for="other_4">Sometimes More (4)</label>
   	    <br />
   	    <input type="radio" name="other_rating" value="3" id="other_3" />    	  
   	    <label for="other_3">Consistently (3)</label>
   	    <br />
   	    <input type="radio" name="other_rating" value="2" id="other_2" />    	  
   	    <label for="other_2">Sometimes Less (2)</label>
   	    <br />
   	    <input type="radio" name="other_rating" value="1" id="other_1" />    	  
   	    <label for="other_1">Unsatisfactory (1)</label>
   	    <br />   	    
   	    <input type="radio" name="other_rating" value="" id="other_none" />    	  
   	    <label for="other_none">No Rating</label></td>
      </tr>
    <tr>
      <td class="required_left" valign="top"><strong><label for="other_comments">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="other_comments" cols="100" rows="5"><?php if (isset($_POST['other_comments'])) echo $_POST['other_comments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6"><h2> Completed Required Training</h2></td></tr>
    <tr>
      <td colspan="6">Has employee completed mandatory training (e.g., EnviroUs, human resources agency training, and other [please specify]?<br />
    Note: Failure to comply with mandatory training requirements will be noted on this performance appraisal.<br />
    <input type="radio" name="training" value="yes" id="training_yes" />    	  
   	    <label for="training_yes">Yes</label>
   	    <br />
   	    <input type="radio" name="training" value="no" id="training_no" />    	  
   	    <label for="training_no">No</label>
   	 </td></tr>
      <tr>
      <td class="required_left" valign="top"><strong><label for="training_no">Comments:</label> </strong></td>
      <td colspan="5"><textarea name="training_comments" cols="100" rows="5"><?php if (isset($_POST['other_comments'])) echo $_POST['other_comments']; ?></textarea></td>
    </tr>
   <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
      <td valign="top" colspan="6"><label for="achievements">ACHIEVEMENTS AND ACCOMPLISHMENTS SINCE LAST REVIEW<br />
      List significant accomplishments, including APT entries, since the last review.</label></td></tr>
      <tr><td colspan="6" class="required_left"><textarea name="accomplishments" cols="120" rows="5"><?php if (isset($_POST['accomplishments'])) echo $_POST['accomplishments']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
      <td valign="top" colspan="6" class="required_left"><label for="development">AREAS FOR DEVELOPMENT AND GROWTH OPPORTUNITIES<br />
      List any areas for development and how employee can improve on these.</label></td></tr>
      <tr><td colspan="6"><textarea name="development" cols="120" rows="5"><?php if (isset($_POST['development'])) echo $_POST['development']; ?></textarea></td>
    </tr>
    <tr><td colspan="6">&nbsp;</td></tr>
    <tr>
      <td valign="top" class="required_left" colspan="6"><label for="goals">Describe any specific goals or special projects this employee is assigned during the next four quarters. Specify details and milestones (set cooperatively by supervisor and employee).</label></td></tr>
      <tr><td colspan="6"><textarea name="goals" cols="120" rows="5"><?php if (isset($_POST['goals'])) echo $_POST['goals']; ?></textarea></td>
    </tr>
    
    <tr>
    	<td colspan="6" class="center"><input type="hidden" name="submitted" value="true" />
			<input type="submit" value="Submit Review" /><br />
            Please do not click submit more than once. You will be given an opportunity to edit your entry on the following pages.
			</td>
      </tr>
    
    
    <tr><td colspan="6"><img src="images/blank.gif" width="600" height="10" alt="." /></td></tr>
     <!-- begin shim row -->
  <tr>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
    <td width="100"><img src="image/blank.gif" width="100" height="1" /></td>
  </tr>
  <!-- end shim row -->
</table>
</form>

<p><strong>Required Fields</strong></p>
</div>
</body>
</html>

Open in new window

0
 
ploftinConnect With a Mentor Commented:
Your oneChecked function is missing a closing }


function oneChecked(radGroup,alerttxt) {
  for (var i=0;i<radGroup.length;i++) if (radGroup[i].checked) return true;
  alert(alerttxt);
  return false;
}

Open in new window

0
 
ploftinCommented:
The code you posted has it, but the page that's online (http://www.enviromedia.com/performance_reviews/emp_review.php) does not.
0
 
lisacowanAuthor Commented:
Yeah! It's working. And I learned some things about JS. Thank you very much. I'll divide up the points now.
0
 
ploftinCommented:
Excellent! Glad to hear it.
0
 
HonorGodSoftware EngineerCommented:
Thanks for the assist, and the points.

Good luck & have a great day.
0
 
Michel PlungjanIT ExpertCommented:
Great it works for you.
I however see that the solution you have accepted, is not the solution you have used on the site....
0
 
lisacowanAuthor Commented:
mplungjan,

I just wanted to make sure that everyone who helped got a fair number of points. I'll try to go back and edit what I've done, but I'm not positive I can.

Thanks again for the help.  I appreciate it.

Lisa
0
 
Michel PlungjanIT ExpertCommented:
No problem, just to make sure that people finding this later will understand which was the solution actually used in the end.
0
 
lisacowanAuthor Commented:
I would like for this question to remain as it stands. I think if people read the entire thread, they will figure it out.

Lisa
0
 
Michel PlungjanIT ExpertCommented:
Hi Lisa,
the question got reopened so you could assign the "accepted solution" and "assisted solution(s)" accordingly.

e.g. accepted solution http:#a33466705 

Thanks for your cooperation :)

Michel
0
 
lisacowanAuthor Commented:
Okay. I'll take care of it when I am awake enough to see.

Lisa
0
 
Michel PlungjanIT ExpertCommented:
(o_O)
0
 
lisacowanAuthor Commented:
Okay. I think I have the points assigned to the correct answers. Have a good day everyone and thanks again for the help.

Lisa
0
 
Michel PlungjanIT ExpertCommented:
Sigh...
0
 
HonorGodSoftware EngineerCommented:
Michel... ;-)  Don't you just love it?

Lisa,

Thank you for the assist, and the points.

Good luck & have a great day.
0
 
Michel PlungjanIT ExpertCommented:
I guess Lisa needed more coffee ;) Or EE needs to make it easier to assign points
0
 
lisacowanAuthor Commented:
Oh no. What did I do wrong? I'm on my third cup of coffee now and am about as awake as I am going to get.
0
 
Michel PlungjanIT ExpertCommented:
I had hoped you would accept comment http:#a33466705 as accepted solution instead of one of my other comments as assisted solution again
0
 
lisacowanAuthor Commented:
Okay. I get it now. Thanks for spelling it out.  I am still going to assign points to ploftin, but I'll redo how I have accepted everything.

Can a moderator please re-open this question?

Thanks,
Lia
0
 
Michel PlungjanIT ExpertCommented:
Yes of course - points all around :)
Question unaccepted...
0
 
HonorGodSoftware EngineerCommented:
hehe... Thanks for the chuckle... I needed that.
0
 
ploftinCommented:
I'm confused now.  Anywho, thanks for the points - if I get to keep them ;)  If not, no biggie.  As always - assign points as you feel is proper and good luck!
0
 
Michel PlungjanIT ExpertCommented:
Ploftin: No need for confusion. HonorGod, you and me should all get points. However the solution actually USED by the asker should get the "accepted solution"
I am not normally fussed, but it does make a difference to my stats at EE
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.