﻿//	
	var xmlHttp;
	
	function createXMLHttpRequest() {
	    if (window.XMLHttpRequest && !(window.ActiveXObject)) {
	        try {
	            xmlHttp = new XMLHttpRequest();
	        }
	        catch (e) {
	            xmlHttp = false;
	        }

	    }
	    else if (window.ActiveXObject) {
	        try {
	            xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	        }
	        catch (e) {
	            try {
	                xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	            }
	            catch (e) {
	                xmlHttp = false;
	            }
	        }
	    }
	}

//
	function getKeywords(cmd) {
// AJAX Call to get keywords
		createXMLHttpRequest();
		xmlHttp.open('GET', 'ajax-keywords.asp?cmd=' + cmd, true);
		xmlHttp.onreadystatechange = displayKeywords;
		xmlHttp.send(null);
	}
	
	function displayKeywords() {
		if(xmlHttp.readyState == 4) {
			if(xmlHttp.status == 200) {
				var str=xmlHttp.responseText;
				obj.actb_keywords = str.split(",");
			}
		}
	}

