protected void Button_Save(Object sender, EventArgs e)
        {
            pList         = (ArrayList)Session["Person"];
            Session["p1"] = Session["Person"];

            pList = (ArrayList)Session["p1"];


            if (Male.Checked == true)
            {
                gender = Male.Value;
            }
            else
            {
                gender = Female.Value;
            }



            if (validateFields() == true)
            {
                pList.Add(txtFirstName.Value);                      //3
                pList.Add(txtSurname.Value);                        //4
                pList.Add(gender);                                  //5
                pList.Add(ddlList.SelectedValue.ToString());        //6
                pList.Add(txtSalutationField.Value);                //7
                pList.Add(txtTelephone.Value);                      //8
                pList.Add(txtEmail.Value);                          //9
                pList.Add(txtDesig1.Value);                         //10
                pList.Add(txtDept1.Value);                          //11
                pList.Add(txtOrg1.Value);                           //12
                pList.Add(txtDesig2.Value);                         //13
                pList.Add(txtDept2.Value);                          //14
                pList.Add(txtOrg2.Value);                           //15
                pList.Add(txtSDR.Value);                            //16
                pList.Add(ddlNationality.SelectedValue.ToString()); //17
                pList.Add(txtFullNameNameTag.Value);                //18
                pList.Add(ddlStatus.SelectedValue.ToString());      //19
                pList.Add(ddlSource.SelectedValue);                 //20
                pList.Add(ddlCat1.SelectedValue);                   //21
                pList.Add(ddlCat2.SelectedValue);                   //22


                Session["indvPerson"] = pList;



                int check = 0;
                try
                {
                    check = db.AddPerson(pList);

                    if (check == 2)
                    {
                        ScriptManager.RegisterStartupScript(Page, GetType(), "AlertDisplay", "displaySuccess('Successfully Created New Individual: " + txtSurname.Value + " " + txtFirstName.Value + "');", true);

                        disableFields();
                        PersonModel p1 = new PersonModel();
                        p1 = db.getRecentlyAddedINDIVId();
                        hiddentextPersonID.Value = p1.id;
                    }
                    else if (check == 0)
                    {
                        ScriptManager.RegisterStartupScript(Page, GetType(), "AlertFailureDisplay", "displayFailure('There seems to be an error! Please notify the Administrators.');", true);
                    }
                }
                catch (Exception ex)
                {
                    ErrorLog.WriteErrorLog(ex.ToString());
                    ScriptManager.RegisterStartupScript(Page, GetType(), "AlertFailureDisplay", "displayFailure();", true);
                }


                try
                {
                    //clearFields();
                    //clearArrayList();
                }
                catch (Exception ex)
                {
                }
            }
        }