﻿function Validate() {
    var x = document.getElementById("txtSearch").value; if (x == "") { return false; }
    return true;
}
function getBrands(divId) { var inputString = "?id=2001"; ajaxFunction(inputString, target); }
function ajaxFunction(input, target) {
    var xmlHttp; try { xmlHttp = new XMLHttpRequest(); }
    catch (e) {
        try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); }
        catch (e) {
            try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }
            catch (e) { alert("Your browser does not support AJAX!"); return false; } 
        } 
    }
    xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { document.getElementById(target).innerHTML += xmlHttp.responseText; } }
    xmlHttp.open("GET", "../ProcessAjax.aspx" + input, true); xmlHttp.send(null);
}
function HideMessageBoxDiv() { document.getElementById('showMsgDiv').style.display = 'none'; }