//display the disaster on screen
        protected void ddlDisaster_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                disaster disaster = new disaster();
                GlobalVariables.DisasterID = Convert.ToInt32(ddlDisaster.SelectedItem.Value);
                disaster = disaster.Select(Convert.ToInt32(ddlDisaster.SelectedItem.Value));
                nLat = disaster.disaster_north_latitude;
                nLong = disaster.disaster_north_longitude;

                sLat = disaster.disaster_south_latitude;
                sLong = disaster.disaster_south_longitude;

                eLat = disaster.disaster_east_latitude;
                eLong = disaster.disaster_east_longitude;

                wLat = disaster.disaster_west_latitude;
                wLong = disaster.disaster_west_longitude;

                Alert_Type_TextBox.Text = "Disaster Related: " + Convert.ToString(disaster.disaster_name);

                Page page = HttpContext.Current.Handler as Page;
                ScriptManager.RegisterStartupScript(page, page.GetType(),
                "plotPoly", "plotPoly();", true);

            }
            catch { }
        }
        //load the found disaster into the dropdown list box
        protected void loadDisaster()
        {
            disaster currentDisaster = new disaster();
            {

                try
                {
                    DataTable dtlw = currentDisaster.Select("1=1");
                    ddlDisaster.Items.Clear();

                    ddlDisaster.Items.Add("");

                    if (dtlw.Rows.Count > 0)
                    {
                        for (int i = 0; i < dtlw.Rows.Count; i++)
                        {
                            ddlDisaster.Items.Add(new ListItem(dtlw.Rows[i]["disaster_name"].ToString(), dtlw.Rows[i]["disaster_id"].ToString()));
                        }
                    }
                    else
                    {
                        ddlDisaster.Items.Add("No Disasters");

                    }

                }
                catch
                {

                }
            }
        }
        //display the disaster on screen (data and poly points)
        protected void ddlDisaster_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                Page page = HttpContext.Current.Handler as Page;
                ScriptManager.RegisterStartupScript(page, page.GetType(),
                "plotPoly", "plotPoly();", true);
                disaster disaster = new disaster();
                GlobalVariables.DisasterID = Convert.ToInt32(ddlDisaster.SelectedItem.Value);
                disaster = disaster.Select(GlobalVariables.DisasterID);
                txtDisasterName.Text = disaster.disaster_name.ToString();
                txtDisasterType.Text = disaster.disaster_type.ToString();
                txtNorthLat.Text = disaster.disaster_north_latitude.ToString();
                txtNorthLong.Text = disaster.disaster_north_longitude.ToString();
                txtSouthLat.Text = disaster.disaster_south_latitude.ToString();
                txtSouthLong.Text = disaster.disaster_south_longitude.ToString();
                txtEastLat.Text = disaster.disaster_east_latitude.ToString();
                txtEastLong.Text = disaster.disaster_east_longitude.ToString();
                txtWestLat.Text = disaster.disaster_west_latitude.ToString();
                txtWestLong.Text = disaster.disaster_west_longitude.ToString();

            }
            catch { }
        }
        //display the disaster on screen
        protected void ddlDisaster_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                disaster disaster = new disaster();
                GlobalVariables.DisasterID = Convert.ToInt32(ddlDisaster.SelectedItem.Value);
                disaster = disaster.Select(Convert.ToInt32(ddlDisaster.SelectedItem.Value));
                nLat = disaster.disaster_north_latitude;
                nLong = disaster.disaster_north_longitude;

                sLat = disaster.disaster_south_latitude;
                sLong = disaster.disaster_south_longitude;

                eLat = disaster.disaster_east_latitude;
                eLong = disaster.disaster_east_longitude;

                wLat = disaster.disaster_west_latitude;
                wLong = disaster.disaster_west_longitude;

                Page.ClientScript.RegisterStartupScript(this.GetType(), "plotPoly", "plotPoly()", true);

            }
            catch { }
        }