
                <!--
                   function checkFields()
                   {
                        missinginfo = "";

                        if ( IsEmpty(document.DCDlead.fname)  )
                        {
                             missinginfo += "\n     -  First Name";
                        }

                        if ( IsEmpty(document.DCDlead.lname)  )
                        {
                             missinginfo += "\n     -  Last Name";
                        }

                        if ( IsEmpty(document.DCDlead.title)  )
                        {
                             missinginfo += "\n     -  Title";
                        }

                        if ( IsEmpty(document.DCDlead.email)  )
                        {
                             missinginfo += "\n     -  Email Address";
                        }

                        if (document.DCDlead.email.value.length > 0)
                        {
                             i   =  document.DCDlead.email.value.indexOf("@")
                             j   =  document.DCDlead.email.value.indexOf(".",i)
                             k   =  document.DCDlead.email.value.indexOf(",")
                             kk  =  document.DCDlead.email.value.indexOf(" ")
                             jj  =  document.DCDlead.email.value.lastIndexOf(".")+1
                             len =  document.DCDlead.email.value.length

                             if ((i>0) && (j>(1+1)) && (k==-1) && (kk==-1) && (len-jj >=2) && (len-jj<=3))
                             {
                             }
                             else
                             {
                                  alert("Please enter a valid email address.\n" +
                                  document.DCDlead.email.value + " is invalid.");
                                  return false;
                             }
                        }



                        if ( IsEmpty(document.DCDlead.company) )
                        {
                             missinginfo += "\n     -  Company";
                        }


                        if ( IsEmpty(document.DCDlead.comment1)  )
                        {
                             missinginfo += "\n     -  How do you plan to use DCD III?";
                        }


                        if (missinginfo != "")
                        {
                             missinginfo ="_____________________________\n" +
                             "You missed filling in some of the required fields:\n" +
                               missinginfo + "\n_____________________________" +
                             "\nPlease enter the missing fields and submit again!";
                              alert(missinginfo);
                              return false;
                        }
                        else return true;
                   }

                   function IsEmpty(aTextField)
                   {

                        spacecounter = 0;

                        for (x=0; x < aTextField.value.length; x++)
                        {
                             if (aTextField.value.charAt(x) == " " || aTextField.value.charAt(x) == "\n")
                             {
                                  spacecounter++
                             }
                        }

                        if (spacecounter ==  aTextField.value.length)
                        {
                             return true;
                        }
                        else
                        {
                             return false;
                        }
                   }


               //-->


