// CJ Keyword Ad Demo Static JavaScript var xmlhttp; var destinationElement; var prexx=""; function loadAds(keywds) { var url = "'+baseurl+'cgi-bin/search.pl?keywords=" + keywds; xmlhttp = null; if (window.XMLHttpRequest) { // code for Mozilla, etc. xmlhttp=new XMLHttpRequest(); } else if (window.ActiveXObject) { // code for IE xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } if (xmlhttp != null) { xmlhttp.onreadystatechange=onResponse; xmlhttp.open("GET", url, true); xmlhttp.send(null); } else { alert("Your browser does not support XMLHTTP."); } } function checkReadyState(obj) { if (obj.readyState == 4) { if (obj.status == 200) { return true; } else { alert("Problem retrieving XML data"); } } } function onResponse() { if (checkReadyState(xmlhttp)) { var response = xmlhttp.responseXML.documentElement; txt = "
| Associated Products |