<%@ page language="C#" autoeventwireup="true" inherits="InstrumentSetting, App_Web_instrumentsetting.aspx.dbcc866c" enableEventValidation="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/UserControls/iERPToolBar.ascx" TagName="iERPToolBar" TagPrefix="dsit" %>
<%@ Register TagPrefix="HtmlColor" Namespace="UNLV.IAP.WebControls" Assembly="UNLV.IAP.WebControls.HtmlColorDropDown" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head id="Head1" runat="server">
    <title>..:: ICDAS 2.1 ::..</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/js_functions.js"> </script>

    <script type="text/javascript" language="javascript" src="../App_Include/JavaScript/ScreenSaverStar.js"> </script>

    <script type="text/javascript" language="javascript">

        function resizeObject() {
            var w = getBrowserWindowSize().width;
            var h = getBrowserWindowSize().height - 10;
            //window.resizeTo(w, h);
            var cObj;
            cObj = document.getElementById("divChildBody");
            if (cObj != null) {
                //cObj.style.height = parseInt((h*79)/100) +"px";
                cObj.style.height = (parseInt(h) - 10) + "px";
                //cObj.style.width = parseInt(w) +"px";
            }

            cObj = document.getElementById("tabInstrument");
            if (cObj != null) {
                cObj.style.height = (parseInt(h) - 180) + "px";
            }

            cObj = document.getElementById("<%#tabInstrumentList.ClientID%>");
            if (cObj != null) {
                cObj.style.height = (parseInt(h) - 190) + "px";
            }

            cObj = document.getElementById("<%#pnlContainer.ClientID%>");
            if (cObj != null) {
                cObj.style.height = (parseInt(h) - 200) + "px";
            }

            hideWait();
        }


        function validateRecord() {
            var doc = document.forms[0];
            re = /[0-9]/;
            re1 = /[a-zA-Z]/;

            if (Trim(document.getElementById("<%#txtTempratureSetValue.ClientID%>").value) == "") {
                if (document.getElementById("hdnEquipmenttypeGroup").value.indexOf("TC") !== -1)
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 1...");
                else
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value ...");

                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempratureSetValue.ClientID%>").focus();
                return false;
            }
            if (parseFloat(document.getElementById("<%#txtTempratureSetValue.ClientID%>").value) < parseFloat(document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value)) {
                if (document.getElementById("hdnEquipmenttypeGroup").value.indexOf("TC") !== -1)
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 1 >= " + document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value);
                else
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value >= " + document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value);
                
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempratureSetValue.ClientID%>").focus();
                document.getElementById("<%#txtTempratureSetValue.ClientID%>").value = "";
                return false;
            }
            if (parseFloat(document.getElementById("<%#txtTempratureSetValue.ClientID%>").value) > parseFloat(document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value)) {
                if (document.getElementById("hdnEquipmenttypeGroup").value.indexOf("TC") !== -1)
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 1 <= " + document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value);
                else
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value <= " + document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value);
                
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempratureSetValue.ClientID%>").focus();
                document.getElementById("<%#txtTempratureSetValue.ClientID%>").value = "";
                return false;
            }
            if (Trim(document.getElementById("<%#txtTempraturePIDKP.ClientID%>").value) == "") {
                alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " PID KP...");
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempraturePIDKP.ClientID%>").focus();
                return false;
            }
            if (Trim(document.getElementById("<%#txtTempraturePIDTS.ClientID%>").value) == "") {
                alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " PID TS...");
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempraturePIDTS.ClientID%>").focus();
                return false;
            }
            if (Trim(document.getElementById("<%#txtTempratureLowerLimit.ClientID%>").value) == "") {
                if (document.getElementById("hdnEquipmenttypeGroup").value.indexOf("TC") !== -1)
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Low Alarm 1...");
                else
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Low Alarm ...");
                
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempratureLowerLimit.ClientID%>").focus();
                return false;
            }
            if (Trim(document.getElementById("<%#txtTempraturePIDTI.ClientID%>").value) == "") {
                alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " PID TI...");
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempraturePIDTI.ClientID%>").focus();
                return false;
            }
            if (Trim(document.getElementById("<%#txtTempraturePIDCycleTime.ClientID%>").value) == "") {
                alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " PID CycleTime...");
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempraturePIDCycleTime.ClientID%>").focus();
                return false;
            }

            if (parseInt(document.getElementById("<%#hdnVersion.ClientID%>").value) > 400) {
                if (Trim(document.getElementById("<%#txtTempLowerLowerLimit.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Low Alert...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempLowerLowerLimit.ClientID%>").focus();
                    return false;
                }
            }

            if (Trim(document.getElementById("<%#txtTempratureUpperLimit.ClientID%>").value) == "") {
                if (document.getElementById("hdnEquipmenttypeGroup").value.indexOf("TC") !== -1)
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " High Alarm 1...");
                else
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " High Alarm ...");
                
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempratureUpperLimit.ClientID%>").focus();
                return false;
            }
            if (Trim(document.getElementById("<%#txtTempraturePIDTD.ClientID%>").value) == "") {
                alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " PID TD...");
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempraturePIDTD.ClientID%>").focus();
                return false;
            }
            if (Trim(document.getElementById("<%#txtTempraturePIDOutputPower.ClientID%>").value) == "") {
                alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " PID OutputPower...");
                $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                document.getElementById("<%#txtTempraturePIDOutputPower.ClientID%>").focus();
                return false;
            }
            if (parseInt(document.getElementById("<%#hdnVersion.ClientID%>").value) > 400) {
                if (Trim(document.getElementById("<%#txtTempUpperUpperLimit.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " High Alert ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempUpperUpperLimit.ClientID%>").focus();
                    return false;
                }
            }
            if (document.getElementById("hdnEquipmenttypeGroup").value.indexOf("TC") !== -1) {
                if (Trim(document.getElementById("<%#txtTempratureSetValue2.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 2...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue2.ClientID%>").focus();
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtTempratureSetValue2.ClientID%>").value) < parseFloat(document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 2 >= " + document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue2.ClientID%>").focus();
                    document.getElementById("<%#txtTempratureSetValue2.ClientID%>").value = "";
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtTempratureSetValue2.ClientID%>").value) > parseFloat(document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 2 <= " + document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue2.ClientID%>").focus();
                    document.getElementById("<%#txtTempratureSetValue2.ClientID%>").value = "";
                    return false;
                }
                if (Trim(document.getElementById("<%#txtTempratureLowerLimit2.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Low Alarm 2...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureLowerLimit2.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtTempratureUpperLimit2.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " High Alarm 2...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureUpperLimit2.ClientID%>").focus();
                    return false;
                }


                if (Trim(document.getElementById("<%#txtTempratureSetValue3.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 3...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue3.ClientID%>").focus();
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtTempratureSetValue3.ClientID%>").value) < parseFloat(document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 3 >= " + document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue3.ClientID%>").focus();
                    document.getElementById("<%#txtTempratureSetValue3.ClientID%>").value = "";
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtTempratureSetValue3.ClientID%>").value) > parseFloat(document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 3 <= " + document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue3.ClientID%>").focus();
                    document.getElementById("<%#txtTempratureSetValue3.ClientID%>").value = "";
                    return false;
                }
                if (Trim(document.getElementById("<%#txtTempratureLowerLimit3.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Low Alarm 3...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureLowerLimit3.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtTempratureUpperLimit3.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " High Alarm 3...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureUpperLimit3.ClientID%>").focus();
                    return false;
                }


                if (Trim(document.getElementById("<%#txtTempratureSetValue4.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 4...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue4.ClientID%>").focus();
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtTempratureSetValue4.ClientID%>").value) < parseFloat(document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 4 >= " + document.getElementById("<%#hdnTempratureSetValueLL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue4.ClientID%>").focus();
                    document.getElementById("<%#txtTempratureSetValue4.ClientID%>").value = "";
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtTempratureSetValue4.ClientID%>").value) > parseFloat(document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Set Value 4 <= " + document.getElementById("<%#hdnTempratureSetValueHL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureSetValue4.ClientID%>").focus();
                    document.getElementById("<%#txtTempratureSetValue4.ClientID%>").value = "";
                    return false;
                }
                if (Trim(document.getElementById("<%#txtTempratureLowerLimit4.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Low Alarm 4...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureLowerLimit4.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtTempratureUpperLimit4.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " High Alarm 4...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtTempratureUpperLimit4.ClientID%>").focus();
                    return false;
                }

                if (parseFloat(document.getElementById("<%#txtSoakTimeM1.ClientID%>").value) > 59) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Soak Time Minutes 1 <= 59");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtSoakTimeM1.ClientID%>").focus();
                    document.getElementById("<%#txtSoakTimeM1.ClientID%>").value = "";
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtSoakTimeM2.ClientID%>").value) > 59) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Soak Time Minutes 2 <= 59");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtSoakTimeM2.ClientID%>").focus();
                    document.getElementById("<%#txtSoakTimeM2.ClientID%>").value = "";
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtSoakTimeM3.ClientID%>").value) > 59) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Soak Time Minutes 3 <= 59");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtSoakTimeM3.ClientID%>").focus();
                    document.getElementById("<%#txtSoakTimeM3.ClientID%>").value = "";
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtSoakTimeM4.ClientID%>").value) > 59) {
                    alert("Please Enter " + document.getElementById("<%#lblTempratureSettings.ClientID%>").innerText + " Soak Time Minutes 4 <= 59");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtSoakTimeM4.ClientID%>").focus();
                    document.getElementById("<%#txtSoakTimeM4.ClientID%>").value = "";
                    return false;
                }
            } //TC Close//
            if (document.getElementById("hdnEquipmenttypeGroup").value.indexOf("D") !== -1 || document.getElementById("hdnEquipmenttypeGroup").value.indexOf("H") !== -1) {
                if (Trim(document.getElementById("<%#txtHumiditySetValue.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " Set Value...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumiditySetValue.ClientID%>").focus();
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtHumiditySetValue.ClientID%>").value) < parseFloat(document.getElementById("<%#hdnHumiditySetValueLL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " Set Value >= " + document.getElementById("<%#hdnHumiditySetValueLL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumiditySetValue.ClientID%>").focus();
                    document.getElementById("<%#txtHumiditySetValue.ClientID%>").value = "";
                    return false;
                }
                if (parseFloat(document.getElementById("<%#txtHumiditySetValue.ClientID%>").value) > parseFloat(document.getElementById("<%#hdnHumiditySetValueHL.ClientID%>").value)) {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " Set Value <= " + document.getElementById("<%#hdnHumiditySetValueHL.ClientID%>").value);
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumiditySetValue.ClientID%>").focus();
                    document.getElementById("<%#txtHumiditySetValue.ClientID%>").value = "";
                    return false;
                }
                if (Trim(document.getElementById("<%#txtHumidityPIDKP.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " PID KP ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityPIDKP.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtHumidityPIDTS.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " PID TS ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityPIDTS.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtHumidityLowerLimit.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " Low Alarm ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityLowerLimit.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtHumidityPIDTI.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " PID TI ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityPIDTI.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtHumidityPIDCycleTime.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " PID CycleTime ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityPIDCycleTime.ClientID%>").focus();
                    return false;
                }
                if (parseInt(document.getElementById("<%#hdnVersion.ClientID%>").value) > 400) {
                    if (Trim(document.getElementById("<%#txtHumLowerLowerLimit.ClientID%>").value) == "") {
                        alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " Low Alert ...");
                        $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                        document.getElementById("<%#txtHumLowerLowerLimit.ClientID%>").focus();
                        return false;
                    }
                }
                if (Trim(document.getElementById("<%#txtHumidityUpperLimit.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " High Alarm ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityUpperLimit.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtHumidityPIDTD.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " PID TD ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityPIDTD.ClientID%>").focus();
                    return false;
                }
                if (Trim(document.getElementById("<%#txtHumidityPIDOutputPower.ClientID%>").value) == "") {
                    alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " PID OutputPower ...");
                    $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                    document.getElementById("<%#txtHumidityPIDOutputPower.ClientID%>").focus();
                    return false;
                }
                if (parseInt(document.getElementById("<%#hdnVersion.ClientID%>").value) > 400) {
                    if (Trim(document.getElementById("<%#txtHumUpperUpperLimit.ClientID%>").value) == "") {
                        alert("Please Enter " + document.getElementById("<%#lblHumiditySetting.ClientID%>").innerText + " High Alert ...");
                        $find('<%#tabInstrument.ClientID%>').set_activeTabIndex(1);
                        document.getElementById("<%#txtHumUpperUpperLimit.ClientID%>").focus();
                        return false;
                    }
                }
            }

            return true;
        }

        function maskParameterLimit(obj, objType) {
            var obj1
            var obj2
            if (objType == 1) {
                obj1 = Replace(obj.id, "txtParameterLowerLimit", "cmbParameterResolution");
                obj2 = Replace(obj.id, "txtParameterLowerLimit", "txtParameterUpperLimit");
            }
            else {
                obj1 = Replace(obj.id, "txtParameterUpperLimit", "cmbParameterResolution");
                obj2 = Replace(obj.id, "txtParameterUpperLimit", "txtParameterLowerLimit");
            }
            var cObj = document.getElementById(obj1);
            var tObj = document.getElementById(obj2);

            var tVal;
            tVal = tObj.value;
            if (cObj != null) {
                jm_currencymask(obj, cObj.selectedIndex);
            }

            var minVal;
            var maxVal;

            if (cObj.selectedIndex == 0) {
                minVal = "-999";
                maxVal = "999";
            }
            else if (cObj.selectedIndex == 1) {
                minVal = "-999.9";
                maxVal = "999.9";
            }

            else if (cObj.selectedIndex == 2) {
                minVal = "-999.99";
                maxVal = "999.99";
            }
            else if (cObj.selectedIndex == 3) {
                minVal = "-999.999";
                maxVal = "999.999";
            }
            if (parseFloat(obj.value) < parseFloat(minVal)) {
                alert("Please Enter Value > " + minVal);
                obj.value = "";
                obj.focus();
            }

            if (parseFloat(obj.value) > parseFloat(maxVal)) {
                alert("Please Enter Value < " + maxVal);
                obj.value = "";
                obj.focus();
            }

        }
       			
    </script>

</head>
<body bottommargin="0" leftmargin="0" topmargin="0" rightmargin="0" onload="resizeObject(); resizeHolder(); init(); initScreenSaver('1',<%=Session["AutoLogOutTime"]%>);">
    <form id="Form1" runat="server" class="formbg">
    <asp:ToolkitScriptManager runat="Server" EnablePartialRendering="true" AsyncPostBackTimeout="0"
        ID="ToolkitScriptManager1" />
    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="left" class="formbg">
        <tr>
            <td valign="top" align="left">
                <div id="divMainBody" align="center" runat="server" width="100%" height="100%">
                    <div id="divHeader" runat="server" style="border-style: none; height: 26px; width: 100%;
                        position: absolute; left: 1px; top: 8px;" align="center">
                        <dsit:iERPToolBar ID="iERPToolBar1" runat="server" Caption="Branch Master" PageAccess="11111"
                            ValidateLogin="true" />
                    </div>
                    <asp:UpdatePanel ID="uplChildBody" runat="server" UpdateMode="Always">
                        <ContentTemplate>
                            <asp:HiddenField ID="hdnRecordKeyId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordIds" runat="server" />
                            <asp:HiddenField ID="hdnUserId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBusinessUnitId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBranchId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnEquipmentId" runat="server" Value="" />
                            <asp:HiddenField ID="hdnEquipmentType" runat="server" Value="" />
                            <asp:HiddenField ID="hdnstatus" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnLoginComments" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordKeys" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnRecordRows" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnEquipmentMasterParameterId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnEquipmentMasterId" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterName" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterUnit" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterResolution" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterColor" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterColorCode" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterLowerLimit" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterUpperLimit" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnEquipmentMasterParameterNo" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterAxis" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnParameterAlert" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnTempratureParameterValue" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnHumidityParameterValue" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnLUXParameterValue" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnUVParameterValue" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnEquipmenttypeGroup" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnVersion" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnTempratureSetValueLL" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnTempratureSetValueHL" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnHumiditySetValueLL" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnHumiditySetValueHL" runat="server" Value="0" />
                            <asp:HiddenField ID="hdnSoakTime1" runat="server" Value="" />
                            <asp:HiddenField ID="hdnSoakTime2" runat="server" Value="" />
                            <asp:HiddenField ID="hdnSoakTime3" runat="server" Value="" />
                            <asp:HiddenField ID="hdnSoakTime4" runat="server" Value="" />
                            <asp:HiddenField ID="hdnBreakCheck" runat="server" Value="0" />
                            <div id="divChildBody" runat="server" style="overflow: auto; width: 99%;">
                                <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                    <tr height="62px">
                                        <td colspan="5">
                                            &nbsp
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            Equipment Name*
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtEquipmentName" runat="server" Width="70%" MaxLength="50" ReadOnly="true"></asp:TextBox>
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                            Status
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtStatus" runat="server" Width="30%" MaxLength="50" ReadOnly="true"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            IP Address*
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtEquipmentId1" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            .
                                            <asp:TextBox ID="txtEquipmentId2" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            .
                                            <asp:TextBox ID="txtEquipmentId3" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            .
                                            <asp:TextBox ID="txtEquipmentId4" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%" colspan="2">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                            Login Interval*
                                        </td>
                                        <td width="40%">
                                            <asp:TextBox ID="txtEquipmnetLogRate" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            &nbsp mins (Max 480)
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                            <%-- Active Probes--%>
                                        </td>
                                        <td width="40%">
                                            <%-- <asp:TextBox ID="txtActiveChannel" runat="server" Width="10%" MaxLength="3" CssClass="numInput"
                                                ReadOnly="true"></asp:TextBox>
                                            &nbsp;&nbsp;&nbsp;&nbsp;Get Instrument Settings &nbsp;&nbsp;<asp:ImageButton ID="btnEquipmentDetails"
                                                runat="server" ImageUrl="../Images/download.png" ImageAlign="AbsMiddle" OnClick="btnEquipmentDetails_Click" />--%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td width="10%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                        <td width="1%">
                                        </td>
                                        <td width="9%">
                                        </td>
                                        <td width="40%">
                                        </td>
                                    </tr>
                                </table>
                                <asp:Panel ID="pnlWait" runat="server" Visible="false">
                                    <table width="98%">
                                        <tr>
                                            <td align="center">
                                                <img id="ImgWait" runat="Server" src="~/Images/AnimatedProgressBar.gif" alt="" align="absmiddle" />
                                                Please Wait...
                                            </td>
                                        </tr>
                                    </table>
                                </asp:Panel>
                                <table width="100%" align="left" cellpadding="1" cellspacing="0" class="tablefont">
                                    <tr>
                                        <td>
                                            <asp:TabContainer ID="tabInstrument" runat="server" ActiveTabIndex="0" ScrollBars="Auto"
                                                CssClass="tabCont">
                                                <asp:TabPanel ID="tabInstrumentList" runat="server" TabIndex="1">
                                                    <HeaderTemplate>
                                                        Equipment Parameters
                                                    </HeaderTemplate>
                                                    <ContentTemplate>
                                                        <asp:Panel runat="server" ID="pnlContainer" Width="100%" ScrollBars="Auto">
                                                            <asp:GridView ID="GVDeviceParameter" Width="100%" runat="server" CellPadding="0"
                                                                AllowSorting="True" AutoGenerateColumns="False" OnSorting="SortRecords" OnRowDataBound="ItemDataBound"
                                                                BorderColor="#E0E4EA">
                                                                <Columns>
                                                                    <asp:TemplateField>
                                                                        <ItemTemplate>
                                                                            <asp:CheckBox ID="chkRecordId" runat="server" AutoPostBack="true" OnCheckedChanged="chkRecordId_SelectedIndexChanged">
                                                                            </asp:CheckBox>
                                                                        </ItemTemplate>
                                                                        <HeaderTemplate>
                                                                            <!--<asp:CheckBox ID="chkAll" onclick="javascript:SelectAllCheckboxes(this);GetSelectedSearch();"-->
                                                                            <asp:CheckBox ID="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server"
                                                                                AutoPostBack="false" ToolTip="Select/Deselect All"></asp:CheckBox>
                                                                        </HeaderTemplate>
                                                                        <HeaderStyle HorizontalAlign="Center" Width="1%" CssClass="DGR_HEADER" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="1%" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="EquipmentMasterParameterId" HeaderText="EquipmentMasterParameterId">
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:BoundField>
                                                                    <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="Name ( Temp in ºC and RH in % )">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblParameterName" runat="server" Text='<%# Eval("ParameterName")%>'
                                                                                MaxLength="25" Width="98%"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="DGR_HEADER" />
                                                                        <ItemStyle HorizontalAlign="Left" Width="30%" />
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Unit">
                                                                        <ItemTemplate>
                                                                            <%--<asp:TextBox ID="txtParameterUnit" ReadOnly="true" runat="server" Text='<%# Eval("ParameterUnit")%>'
                                                                                MaxLength="5" Width="50%" CssClass="TxtCenterInput"></asp:TextBox>--%>
                                                                            <asp:Label ID="lblUnit" runat="server"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Resolution">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblParameterResolution" runat="server"></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Graph Color">
                                                                        <ItemTemplate>
                                                                            <HtmlColor:HtmlColorDropDown ID="cmbColors" runat="server" Width="200px">
                                                                                    <Color value="Red" />
                                                                                
                                                                                     <Color value="Green" />
                                                                                                                                                                    
                                                                                     <Color value="Blue" />
                                                                                                                                                                    
                                                                                     <Color value="Navy" />
                                                                                                                                                                    
                                                                                    <Color value="Yellow" />
                                                                                                                                                                    
                                                                                     <Color value="Thistle" />
                                                                                
                                                                            </HtmlColor:HtmlColorDropDown>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="DGR_HEADER" />
                                                                        <ItemStyle HorizontalAlign="Center" Width="15%" />
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="ParameterColorCode" HeaderText="ParameterColorCode">
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="Lower Limit">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="txtParameterLowerLimit" runat="server" CssClass="numInput" Text='<%# Eval("ParameterLowerLimit")%>'
                                                                                MaxLength="8" Width="90%" onkeyup="maskParameterLimit(this,1);"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="Upper Limit">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="txtParameterUpperLimit" runat="server" CssClass="numInput" Text='<%# Eval("ParameterUpperLimit")%>'
                                                                                MaxLength="8" Width="90%" onkeyup="maskParameterLimit(this,2);"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:TemplateField>
                                                                    <asp:BoundField DataField="rowNum" HeaderText="rowNum">
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:BoundField>
                                                                    <asp:TemplateField HeaderText="Axis">
                                                                        <ItemTemplate>
                                                                            <asp:DropDownList ID="cmbParameterAxis" runat="server">
                                                                                <asp:ListItem Value="0">Primary</asp:ListItem>
                                                                                <asp:ListItem Value="1">Secondary</asp:ListItem>
                                                                            </asp:DropDownList>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="ParameterType">
                                                                        <ItemTemplate>
                                                                            <asp:Label ID="lblParameterType" runat="server" Text='<%# Eval("ParameterType")%>'></asp:Label>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:TemplateField>
                                                                    <asp:TemplateField HeaderText="ParameterSetValue">
                                                                        <ItemTemplate>
                                                                            <asp:TextBox ID="txtParameterSetValue" runat="server" CssClass="numInput" Text='<%# Eval("ParameterSetValue")%>'
                                                                                MaxLength="8" Width="90%"></asp:TextBox>
                                                                        </ItemTemplate>
                                                                        <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                        <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                    </asp:TemplateField>
                                                                </Columns>
                                                                <HeaderStyle CssClass="DGR_FIXEDHEADER" Height="25px" />
                                                                <PagerSettings Position="TopAndBottom" />
                                                                <PagerStyle CssClass="DGR_PAGER"></PagerStyle>
                                                                <RowStyle CssClass="DGR_ITEM" />
                                                            </asp:GridView>
                                                        </asp:Panel>
                                                    </ContentTemplate>
                                                </asp:TabPanel>
                                                <asp:TabPanel ID="TabEquipmentSettings" runat="server" TabIndex="1">
                                                    <HeaderTemplate>
                                                        Equipment Settings
                                                    </HeaderTemplate>
                                                    <ContentTemplate>
                                                        <table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="0">
                                                            <asp:Panel ID="PnlTempratureSettings" runat="server" ScrollBars="Auto" Width="100%"
                                                                Visible="true">
                                                                <tr>
                                                                    <td colspan="5">
                                                                        <asp:Label ID="lblTempratureSettings" runat="server" Text="Temprature" CssClass="bold"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        Set Value
                                                                        <asp:Label ID="lblSV1" runat="server">1</asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtTempratureSetValue" runat="server" CssClass="numInput" MaxLength="10"
                                                                            AutoPostBack="true" OnTextChanged="txtTempratureSetValue_TextChanged"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID KP
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtTempraturePIDKP" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID TS
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtTempraturePIDTS" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        Low Alarm
                                                                        <asp:Label ID="lblLL1" runat="server">1</asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtTempratureLowerLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID TI
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtTempraturePIDTI" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID Cycle Time
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtTempraturePIDCycleTime" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <asp:Panel ID="PnlTempLowerLowerLimit" runat="server" Visible="false">
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Low Alert
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempLowerLowerLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="17%">
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                </asp:Panel>
                                                                <tr>
                                                                    <td width="16%">
                                                                        High Alarm
                                                                        <asp:Label ID="lblHL1" runat="server">1</asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtTempratureUpperLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID TD
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtTempraturePIDTD" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID Output Power
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtTempraturePIDOutputPower" runat="server" CssClass="numInput"
                                                                            MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <asp:Panel ID="PnlTempUpperUpperLimit" runat="server" Visible="false">
                                                                    <tr>
                                                                        <td width="16%">
                                                                            High Alert
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempUpperUpperLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="17%">
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                </asp:Panel>
                                                                <asp:Panel ID="pnlThaw" runat="server">
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Set Value 2
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempratureSetValue2" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Set Value 3
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempratureSetValue3" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Set Value 4
                                                                        </td>
                                                                        <td width="18%">
                                                                            <asp:TextBox ID="txtTempratureSetValue4" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Low Alarm 2
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempratureLowerLimit2" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Low Alarm 3
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempratureLowerLimit3" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Low Alarm 4
                                                                        </td>
                                                                        <td width="18%">
                                                                            <asp:TextBox ID="txtTempratureLowerLimit4" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="16%">
                                                                            High Alarm 2
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempratureUpperLimit2" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            High Alarm 3
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtTempratureUpperLimit3" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            High Alarm 4
                                                                        </td>
                                                                        <td width="18%">
                                                                            <asp:TextBox ID="txtTempratureUpperLimit4" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Soak Time 1
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtSoakTimeH1" runat="server" CssClass="numInput" MaxLength="3"
                                                                                Width="40px"></asp:TextBox>
                                                                            :
                                                                            <asp:TextBox ID="txtSoakTimeM1" runat="server" CssClass="numInput" MaxLength="2"
                                                                                Width="30px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Ramp Time 1
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtRampTime1" runat="server" CssClass="numInput" MaxLength="3" Width="40px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Soak Time 2
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtSoakTimeH2" runat="server" CssClass="numInput" MaxLength="3"
                                                                                Width="40px"></asp:TextBox>
                                                                            :
                                                                            <asp:TextBox ID="txtSoakTimeM2" runat="server" CssClass="numInput" MaxLength="2"
                                                                                Width="30px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Ramp Time 2
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtRampTime2" runat="server" CssClass="numInput" MaxLength="3" Width="40px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Soak Time 3
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtSoakTimeH3" runat="server" CssClass="numInput" MaxLength="3"
                                                                                Width="40px"></asp:TextBox>
                                                                            :
                                                                            <asp:TextBox ID="txtSoakTimeM3" runat="server" CssClass="numInput" MaxLength="2"
                                                                                Width="30px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Ramp Time 3
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtRampTime3" runat="server" CssClass="numInput" MaxLength="3" Width="40px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Soak Time 4
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtSoakTimeH4" runat="server" CssClass="numInput" MaxLength="3"
                                                                                Width="40px"></asp:TextBox>
                                                                            :
                                                                            <asp:TextBox ID="txtSoakTimeM4" runat="server" CssClass="numInput" MaxLength="2"
                                                                                Width="30px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Ramp Time 4
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtRampTime4" runat="server" CssClass="numInput" MaxLength="3" Width="40px"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Lower Range
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtLowerRange" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            Higher Range
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtHigherRange" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                            No of Cycles
                                                                        </td>
                                                                        <td width="18%">
                                                                            <asp:TextBox ID="txtNoOfCycles" runat="server" CssClass="numInput" MaxLength="3"
                                                                                Width="40px"></asp:TextBox>
                                                                        </td>
                                                                    </tr>
                                                                </asp:Panel>
                                                                <tr>
                                                                    <td width="16%">
                                                                        Total Sensor
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtTempratureTotalSensor" runat="server" CssClass="numInput" ReadOnly="true"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        Cooling
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:DropDownList ID="cmbTempratureCooling" runat="server" CssClass="numInput">
                                                                            <asp:ListItem Value="0" Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Value="1" Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td width="16%">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td width="18%">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlSterilization" runat="server" ScrollBars="Auto" Width="100%" Visible="true">
                                                                <tr>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSterilizationSetValue" runat="server" Text="Sterilization Set Value"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtSterilizationSV" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="Label6" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSterilizationTime" runat="server" Text="Sterilization Time"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtSterilizationTime" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                    </td>
                                                                    <td width="16%">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td width="18%">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="PnlHumiditySettings" runat="server" ScrollBars="Auto" Width="100%"
                                                                Visible="true">
                                                                <tr>
                                                                    <td colspan="5">
                                                                        <asp:Label ID="lblHumiditySetting" runat="server" Text="Humidity" CssClass="bold"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        Set Value
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtHumiditySetValue" runat="server" CssClass="numInput" MaxLength="10"
                                                                            AutoPostBack="true" OnTextChanged="txtHumiditySetValue_TextChanged"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID KP
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtHumidityPIDKP" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID TS
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtHumidityPIDTS" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        Low Alarm
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtHumidityLowerLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID TI
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtHumidityPIDTI" runat="server" CssClass="numInput" MaxLength="10"
                                                                            TabIndex="18"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID Cycle Time
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtHumidityPIDCycleTime" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <asp:Panel ID="PnlHumLowerLowerLimit" runat="server" Visible="false">
                                                                    <tr>
                                                                        <td width="16%">
                                                                            Low Alert
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtHumLowerLowerLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="17%">
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                </asp:Panel>
                                                                <tr>
                                                                    <td width="16%">
                                                                        High Alarm
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtHumidityUpperLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID TD
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtHumidityPIDTD" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        PID Output Power
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtHumidityPIDOutputPower" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                    </td>
                                                                </tr>
                                                                <asp:Panel ID="PnlHumUpperUpperLimit" runat="server" Visible="false">
                                                                    <tr>
                                                                        <td width="16%">
                                                                            High Alert
                                                                        </td>
                                                                        <td width="17%">
                                                                            <asp:TextBox ID="txtHumUpperUpperLimit" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="17%">
                                                                        </td>
                                                                        <td width="16%">
                                                                        </td>
                                                                        <td width="18%">
                                                                        </td>
                                                                    </tr>
                                                                </asp:Panel>
                                                                <tr>
                                                                    <td width="16%">
                                                                        Total Sensor
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtHumidityTotalSensor" runat="server" CssClass="numInput" ReadOnly="true"></asp:TextBox>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblcooling" runat="server" Text="Cooling"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:DropDownList ID="cmbHumidityCooling" runat="server" CssClass="numInput">
                                                                            <asp:ListItem Value="0" Text="Yes"></asp:ListItem>
                                                                            <asp:ListItem Value="1" Text="No"></asp:ListItem>
                                                                        </asp:DropDownList>
                                                                    </td>
                                                                    <td width="16%">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td width="18%">
                                                                        &nbsp;
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="PnlLuxUVSettings1" runat="server" ScrollBars="Auto" Width="100%" Visible="true">
                                                                <tr>
                                                                    <td colspan="5">
                                                                        <asp:Label ID="lblLUVSetting" runat="server" Text="Lux & UV" CssClass="bold"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetLux" runat="server" Text="Set Lux Value"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtLUVSettingLxuValue" runat="server" Width="50%" CssClass="numInput"
                                                                            MaxLength="10"></asp:TextBox>&nbsp;&nbsp;<asp:Label ID="txtLUVSettingLxuValueUnit"
                                                                                runat="server" Text="Klux Hrs"></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetUV" runat="server" Text="Set UV Value"></asp:Label>
                                                                    </td>
                                                                    <td width="17%" colspan="2">
                                                                        <asp:TextBox ID="txtLUVSettingUVValue" runat="server" Width="30%" CssClass="numInput"
                                                                            MaxLength="10"></asp:TextBox>&nbsp;&nbsp;<asp:Label ID="txtLUVSettingUVValueUnit"
                                                                                runat="server" Text="Watt Hrs/Sq Mtr"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="PnlLuxUVSettings2" runat="server" ScrollBars="Auto" Width="100%" Visible="true">
                                                                <tr>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetMesuredLuxIntensity" runat="server" Text="Set Measured Lux Intensity"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtLUVSettingLUXIntensity" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="txtLUVSettingLUXIntensityUnit" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetMesuredUVIntensity" runat="server" Text="Set Measured UV Intensity"></asp:Label>
                                                                    </td>
                                                                    <td width="17%" colspan="2">
                                                                        <asp:TextBox ID="txtLUVSettingUVIntensity" runat="server" Width="30%" CssClass="numInput"
                                                                            MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="txtLUVSettingUVIntensityUnit" runat="server" Text="Watt Hrs/Sq Mtr"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlSCHSetting1" runat="server" ScrollBars="Auto" Width="100%" Visible="true">
                                                                <tr>
                                                                    <td colspan="5">
                                                                        <asp:Label ID="lblSCHHeader" runat="server" Text="Shaker Settings" CssClass="bold"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetSpeed" runat="server" Text="Set Speed"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtSetSpeed" runat="server" Width="50%" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;&nbsp;<asp:Label
                                                                            ID="Label3" runat="server" Text="rpm"></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetTime" runat="server" Text="Set Time"></asp:Label>
                                                                    </td>
                                                                    <td width="17%" colspan="2">
                                                                        <asp:TextBox ID="txtSetTime" runat="server" Width="30%" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;&nbsp;<asp:Label
                                                                            ID="txtSetTimeUnit" runat="server" Text="mins"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlSCHSetting2" runat="server" ScrollBars="Auto" Width="100%" Visible="true">
                                                                <tr>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetSpeedLowAlarm" runat="server" Text="Set Speed Low Alarm"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtSetSpeedLowAlarm" runat="server" Width="50%" CssClass="numInput"
                                                                            MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblSetSpeedLowAlarmUnit" runat="server" Text="rpm"></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblSetSpeedHighAlarm" runat="server" Text="Set Speed High Alarm"></asp:Label>
                                                                    </td>
                                                                    <td width="17%" colspan="2">
                                                                        <asp:TextBox ID="txtSetSpeedHighAlarm" runat="server" Width="30%" CssClass="numInput"
                                                                            MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblSetSpeedHighAlarmUnit" runat="server" Text="rpm"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlCO2Setting" runat="server" ScrollBars="Auto" Width="100%" Visible="true">
                                                                <tr>
                                                                    <td colspan="5">
                                                                        <asp:Label ID="Label1" runat="server" Text="CO2" CssClass="bold"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblCO2SetValue" runat="server" Text="Set Value"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtCO2SetValue" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblCO2SetValueUnit" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblCO2LowAlarm" runat="server" Text="Low Alarm"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtCO2LowAlarm" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblCO2LowAlarmUnit" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblCO2HighAlarm" runat="server" Text="High Alarm"></asp:Label>
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtCO2HighAlarm" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblCO2HighAlarmUnit" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                            <asp:Panel ID="pnlO2Setting" runat="server" ScrollBars="Auto" Width="100%" Visible="true">
                                                                <tr>
                                                                    <td colspan="5">
                                                                        <asp:Label ID="Label2" runat="server" Text="O2" CssClass="bold"></asp:Label>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblO2SetValue" runat="server" Text="Set Value"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtO2SetValue" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblO2SetValueUnit" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblO2LowAlarm" runat="server" Text="Low Alarm"></asp:Label>
                                                                    </td>
                                                                    <td width="17%">
                                                                        <asp:TextBox ID="txtO2LowAlarm" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblO2LowAlarmUnit" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                    <td width="16%">
                                                                        <asp:Label ID="lblO2HighAlarm" runat="server" Text="High Alarm"></asp:Label>
                                                                    </td>
                                                                    <td width="18%">
                                                                        <asp:TextBox ID="txtO2HighAlarm" runat="server" CssClass="numInput" MaxLength="10"></asp:TextBox>&nbsp;
                                                                        <asp:Label ID="lblO2HighAlarmUnit" runat="server" Text=""></asp:Label>
                                                                    </td>
                                                                </tr>
                                                            </asp:Panel>
                                                        </table>
                                                    </ContentTemplate>
                                                </asp:TabPanel>
                                                <asp:TabPanel ID="tabInstrumentWrite" runat="server" TabIndex="1">
                                                    <HeaderTemplate>
                                                        Equipment Write Event
                                                    </HeaderTemplate>
                                                    <ContentTemplate>
                                                        <asp:Panel runat="server" ID="pnlWriteEvent" ScrollBars="Auto" Width="100%" Visible="true">
                                                            <table class="tablebg" id="Table2" cellspacing="1" cellpadding="1" width="100%" border="0">
                                                                <tr>
                                                                    <td class="GRIDTITLE" align="left" style="height: 15px">
                                                                        Equipment Write Status
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="tableInnerTr" valign="top" align="center">
                                                                        <asp:GridView ID="GVEquipmentWriteStatus" Width="100%" runat="server" CellPadding="0"
                                                                            CellSpacing="0" AllowSorting="True" AutoGenerateColumns="False" AlternatingRowStyle-CssClass="DGR_ALTERNATE"
                                                                            OnRowDataBound="ItemDataBoundWriteStatus" RowStyle-CssClass="DGR_ITEM" HeaderStyle-CssClass="DGR_HEADER"
                                                                            BorderColor="#E0E4EA" HeaderStyle-Height="25px">
                                                                            <HeaderStyle CssClass="DGR_FIXEDHEADER" />
                                                                            <Columns>
                                                                                <asp:TemplateField HeaderStyle-CssClass="">
                                                                                    <HeaderTemplate>
                                                                                        <asp:CheckBox ID="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server"
                                                                                            AutoPostBack="false" ToolTip="Select/Deselect All"></asp:CheckBox>
                                                                                    </HeaderTemplate>
                                                                                    <ItemTemplate>
                                                                                        <asp:CheckBox ID="chkRecordId" runat="server"></asp:CheckBox>
                                                                                    </ItemTemplate>
                                                                                    <ItemStyle HorizontalAlign="Center" Width="10px" />
                                                                                    <HeaderStyle HorizontalAlign="Center" Width="10px" CssClass="DGR_HEADER" />
                                                                                </asp:TemplateField>
                                                                                <asp:BoundField DataField="EquipmentMasterWriteId" HeaderText="EquipmentMasterWriteId">
                                                                                    <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                                    <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="EquipmentMasterId" HeaderText="EquipmentMasterId">
                                                                                    <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                                    <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="EquipmentName" HeaderText="Equipment Name" ItemStyle-HorizontalAlign="Left">
                                                                                    <HeaderStyle Width="15%" CssClass="DGR_HEADER"></HeaderStyle>
                                                                                    <ItemStyle Width="15%"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="LogDatetime" HeaderText="Write Date time" ItemStyle-HorizontalAlign="Center">
                                                                                    <HeaderStyle Width="15%" CssClass="DGR_HEADER"></HeaderStyle>
                                                                                    <ItemStyle Width="15%"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="SettingParameterLabel" HeaderText="Parameter Label" ItemStyle-HorizontalAlign="Left">
                                                                                    <HeaderStyle Width="20%" CssClass="DGR_HEADER"></HeaderStyle>
                                                                                    <ItemStyle Width="20%"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="SettingParameterType" HeaderText="Parameter Type" ItemStyle-HorizontalAlign="Center">
                                                                                    <HeaderStyle CssClass="hiddencol"></HeaderStyle>
                                                                                    <ItemStyle CssClass="hiddencol"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="SettingParameterValue" HeaderText="Parameter Value" ItemStyle-HorizontalAlign="Center">
                                                                                    <HeaderStyle Width="15%" CssClass="DGR_HEADER"></HeaderStyle>
                                                                                    <ItemStyle Width="15%"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="Status" HeaderText="Status" ItemStyle-HorizontalAlign="Center">
                                                                                    <HeaderStyle Width="10%" CssClass="DGR_HEADER"></HeaderStyle>
                                                                                    <ItemStyle Width="10%"></ItemStyle>
                                                                                </asp:BoundField>
                                                                                <asp:BoundField DataField="StatusDescription" HeaderText="Status Description" ItemStyle-HorizontalAlign="Center">
                                                                                    <HeaderStyle Width="25%" CssClass="DGR_HEADER"></HeaderStyle>
                                                                                    <ItemStyle Width="25%"></ItemStyle>
                                                                                </asp:BoundField>
                                                                            </Columns>
                                                                            <RowStyle CssClass="DGR_ITEM" />
                                                                            <HeaderStyle CssClass="DGR_FIXEDHEADER" />
                                                                            <AlternatingRowStyle CssClass="DGR_ALTERNATE" />
                                                                            <PagerSettings Position="TopAndBottom" />
                                                                        </asp:GridView>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="center" class="whitebg">
                                                                        <asp:Button ID="BtnCancel" runat="server" CssClass="buttonbg" Width="80px" Height="25px"
                                                                            Text="Cancel" BorderWidth="0px" OnClick="BtnCancel_Click"></asp:Button>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </asp:Panel>
                                                        <asp:UpdatePanel ID="upnlTimer1" UpdateMode="Conditional" runat="server">
                                                            <ContentTemplate>
                                                                <asp:Timer ID="Timer1" runat="server" Interval="10000" Enabled="false" OnTick="Timer1_Tick">
                                                                </asp:Timer>
                                                                <asp:Timer ID="TimerGetValues" runat="server" OnTick="TimerGetValues_Tick" Interval="30000"
                                                                    Enabled="false">
                                                                </asp:Timer>
                                                            </ContentTemplate>
                                                            <Triggers>
                                                                <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                                                                <asp:AsyncPostBackTrigger ControlID="TimerGetValues" EventName="Tick" />
                                                            </Triggers>
                                                        </asp:UpdatePanel>
                                                    </ContentTemplate>
                                                </asp:TabPanel>
                                            </asp:TabContainer>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </ContentTemplate>
                        <Triggers>
                        </Triggers>
                    </asp:UpdatePanel>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
