/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "pin") {
    if ($ajaxobj->Duplicate_Pin_Common($validateValue, "create_purchaser", "pin")) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
} else {
    if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "create_purchaser", "pin", $validateId)) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
}
/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "specification_no") {
    if ($ajaxobj->Duplicate_Pin_Common($validateValue, "specification", "specification_no")) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
} else {
    if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "specification", "specification_no", $validateId)) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
}
/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "pin") {
    if ($ajaxobj->Duplicate_Pin_Common($validateValue, "officer", "officer_pin")) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
} else {
    if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "officer", "officer_pin", $validateId)) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
}
/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "po_number") {
    if ($ajaxobj->Duplicate_Pin_Common($validateValue, "history_po", "po_number")) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
} else {
    if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "history_po", "po_number", $validateId)) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
}
/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "csign_short_name") {
    if ($ajaxobj->Duplicate_Pin_Common($validateValue, "consignee", "csign_short_name")) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
} else {
    if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "consignee", "csign_short_name", $validateId)) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
}
/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "office_code") {
    if ($ajaxobj->Duplicate_Pin_Common($validateValue, "office", "office_code")) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
} else {
    if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "office", "office_code", $validateId)) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
}
/* RETURN VALUE */
$arrayToJs = array();
$arrayToJs[0] = $validateId;
/*$cn = mysql_connect("localhost","root","12345678");
mysql_select_db("rainbow",$cn);
$qs = mysql_query("SELECT `officer_user_name` FROM `officer` WHERE `officer` LIKE '".$validateValue."'");*/
if ($validateId == "pin") {
    if ($ajaxobj->Duplicate_Pin_Common($validateValue, "employee", "employee_pin")) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
} else {
    if ($ajaxobj->Duplicate_Pin2_Common($validateValue, "employee", "employee_pin", $validateId)) {
        // validate??
        $arrayToJs[1] = true;
        // RETURN TRUE
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH success
    } else {
        $arrayToJs[1] = false;
        echo json_encode($arrayToJs);
        // RETURN ARRAY WITH
    }
}