/*************************************************************
*  Copyright © iWeBB, 2001-2002                              *
*  Carter BloodCare All rights reserved                      *
**************************************************************/
function chkcanc() 
{

  missinginfo = "";

  if( (document.calform.p_rec.value == "") &&
      (document.calform.p_lname.value == "") &&
      (document.calform.p_fname.value == "") &&
      (document.calform.p_phoneh.value == "") &&
      (document.calform.p_zip.value == "") 
    ) 
  {
    missinginfo += "\n     -  Field must be entered";
    document.calform.p_rec.focus();
  }
  else if( (document.calform.p_rec.value == "") &&
      ( (document.calform.p_lname.value == "") ||
      (document.calform.p_fname.value == "") ||
      (document.calform.p_phoneh.value == "") ||
      (document.calform.p_zip.value == "") 
      )
	)
  {
     missinginfo += "\n     -  Enter all the four fields";
     document.calform.p_lname.focus();
  } 


  if (missinginfo != "") 
  {
    missinginfo ="_____________________________\n" +
    "The following information is missing:\n" +
    missinginfo + "\n_____________________________" +
    "\nPlease re-enter and submit again!";
    alert(missinginfo);
    return false;
  }
  else return true;
}
