function validateCount(form)
{  
  var count = 0;
  if ( form.checkbox1.length > 1 )
  {
    for (var i = 0; i < form.checkbox1.length; i++)
    {
      if (form.checkbox1[i].checked) 
	    count++;
    }
    if (count > 5 )
    {
      alert("Only a maximum of five positions can be selected.")
	  return false;
    }
    if (count < 1 )
    {
      alert("You have not selected any position.")
	  return false;
    }
    return true;
  }
  else
  {
    if ( !form.checkbox1.checked )
	{
      alert("You have not selected any position.")
	  return false;
    }
  }
}

function uncheckAll(form)
{
  if ( form.checkbox1.length > 1 )
  {
    for (var i = 0; i < form.checkbox1.length; i++)
    {
      if (form.checkbox1[i].checked) 
	    form.checkbox1[i].checked= false
    }
  }
  else
    form.checkbox1.checked= false
}

function ReturnButton()
{ 
  window.location = "http://www.cod.edu/job_desc/jobs.htm";
  return true;
}

var info;
function dirMessage1( message, width, height )
{
  if ( message != "" )
  {
    windowParameters = "";
    windowParameters += '"toolbar=no,';      // back, forward, and others
    windowParameters += 'location=no,';      // field displaying current URL
    windowParameters += 'directories=no,';   // "What's New" and other buttons
    windowParameters += 'status=no,';        // status bar at bottom of window
    windowParameters += 'menubar=no,';       // menubar at top of window
    windowParameters += 'scrollbars=no,';
    windowParameters += 'resizable=yes,';    // allows resizing of window
    windowParameters += 'copyhistory=no,';   // duplicates Go menu history for
                                             //   new window
    windowParameters += 'width=' + width + ',';
    windowParameters += 'height=' + height + ',';

// The following code is specific for Navigator browsers only. MSIE
// has default window position parameters that are not accessible.
// This code positions new window on screen with respect to top, left
// corner (0,0) of the screen

    windowParameters += 'screenX=200,';
    windowParameters += 'screenY=100"';

// end of navigator specific code

// This code creates the new window based on all of the parameters listed above
    info=window.open("","info",windowParameters);
    info.document.open();
    info.focus();
    info.document.write("<HTML><HEAD><TITLE>");
    info.document.write("Note:   ");
    info.document.write("</TITLE></HEAD><BODY BGCOLOR='#FFFFCC'>");
    info.document.write( message );
    info.document.write("</BODY></HTML>");
    info.document.close();
  }
  else
    info.close();

  return true;
}
