var http = getHTTPObject();
var strHTML = "";
var targ = "";

function LoadSubIndex(thisIndex){
	targ = "processIndex.asp?thisIndex="+thisIndex+"&thisProcess=DisplaySubIndex&ms="+new Date().getTime();
	http.open('GET',targ,false);
	http.send(null);
	strHTML = http.responseText;	
	document.getElementById("divSubIndex").innerHTML = strHTML;	
}

function DisplayContents(thisContent){
	targ = "processIndex.asp?thisIndex="+thisContent+"&thisProcess=DisplayContents&ms="+new Date().getTime();
	http.open('GET',targ,false);
	http.send(null);
	strHTML = http.responseText;	
	document.getElementById("divOutput").innerHTML = strHTML;	
}

function DisplayVirticalContents(thisContent, thisDrop){
	var theseBRs = ""
	targ = "processIndex.asp?thisIndex="+thisContent+"&thisProcess=DisplayContents&ms="+new Date().getTime();
	http.open('GET',targ,false);
	http.send(null);
	strHTML = http.responseText;
	for(var i=0; i<=thisDrop; i++){
		if(i > (thisDrop/3)){
			theseBRs = theseBRs + "<br>";
		}
	}
	document.getElementById("divOutput").innerHTML = "<strong><center>Displaying "+thisContent+"</center></strong><br>"+strHTML;		
}
