';
var a = document.getElementById('myid');
a.appendChild(newdiv);
}
function removeme(id) {
var a = document.getElementById('myid');
if(a.childNodes.length <= 3) return;
var ele = document.getElementById(id);
if(ele) ele.parentNode.removeChild(ele);
}
function tag_search_results(url){
var idlist = assemble_idlist();
var tag_value = document.getElementById('tag_value').value;
if(idlist) {
params = "idlist=" + idlist + "&tag=" + encodeURI(tag_value);
var http = getXMLHttp();
if(http == null) { alert("Error creating XMLHttpRequest"); return; }
http.onreadystatechange = function() {
if(http.readyState == 4) {
if(http.status != 200) alert("Problem retrieving XML data:" + http.statusText);
}
}
http.open("POST", url, true);
http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http.setRequestHeader("Content-length", params.length);
http.setRequestHeader("Connection", "close");
http.send(params);
}
}
function assemble_idlist() {
var a = document.getElementById('results');
var idlist = "";
len = a.childNodes.length;
for(i=0; i