//Handles insert article
    public void Add_Article(Object s, EventArgs e)
    {
        //Instantiate article information object.
        ArticleInfo AddArticle = new ArticleInfo();

        AddArticle.Title = Request.Form["Title"];
        AddArticle.Content = Request.Form["Content"];
        AddArticle.Author = Request.Form["Author"];
        AddArticle.CatID = (int)Util.Val(Request.QueryString["catid"]);
        AddArticle.Keyword = Request.Form["Keyword"];
        AddArticle.Summary = Request.Form["Summary"];

        //Notify user if error occured.
        if (AddArticle.Add() != 0)
        {
            JSLiteral.Text = "Error occured while processing your submit.";
            return;
        }

        //Release allocated memory
        AddArticle = null;
        Util = null;

        int getlastID;
        getlastID = int.Parse(Label1.Text) + 1;

        //If success, redirect to confirmation and thank you page.
        Response.Redirect("articlepreview.aspx?aid=" + getlastID);
    }