protected void btnnew_Click(object sender, EventArgs e)
 {
     Whitfieldcore wUser = new Whitfieldcore();
         wUser.ManageWorkOrders(Convert.ToInt32(ViewState["EstNum"].ToString()), txtdesc.Text.Trim(), Convert.ToInt32(txtMaterialCost.Text.Trim()), Convert.ToInt32(txtFabHours.Text.Trim()), Convert.ToInt32(txtFinishHours.Text.Trim()), Convert.ToInt32(txtInstallHours.Text.Trim()), Convert.ToInt32(txtEngHours.Text.Trim()), Convert.ToInt32(txtMiscHours.Text.Trim()), txtNotes.Text.Trim(), chkActive.SelectedItem.Value.Trim(), txtreftext.Text.Trim());
         //Response.Write("<script language='javascript'>parent.agreewin.hide();</script>");
         Response.Write("<script language='javascript'>parent.location.replace('whitfield_estimation.aspx?EstNum=" + hidEstNum.Value + "');</script>");
 }