function getContent(page, state) 
	{	
		for (i=1; i<=3; i++) document.getElementById("n"+i).className = "passive";
		document.getElementById('content').innerHTML = "Loading...";
		URL = page;
		document.getElementById(state).className = "current";
   		var INTcontentType = "application/x-www-form-urlencoded; charset=UTF-8";
   		try { ajaxObj = new ActiveXObject("Msxml2.XMLHTTP"); }
   		catch (e) 
		{
   			try { ajaxObj = new ActiveXObject("Microsoft.XMLHTTP"); }
   			catch (e) { ajaxObj = new XMLHttpRequest(); }
   		}
   		ajaxObj.open("POST", URL, true);
   		ajaxObj.setRequestHeader("Content-Type", INTcontentType);
   		ajaxObj.send("");
   		ajaxObj.onreadystatechange = function () 
		{
          	if (ajaxObj.readyState == 4) { document.getElementById('content').innerHTML = ajaxObj.responseText; }
   		}
 	}

function getInfo(page,divid,vars) 
	{
		document.getElementById(divid).style.display = "block";
		URL = page;		
		var INTcontentType = "application/x-www-form-urlencoded; charset=UTF-8";
		try { ajaxObj = new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e) 
		{
			try { ajaxObj = new ActiveXObject("Microsoft.XMLHTTP"); }
			catch (e) { ajaxObj = new XMLHttpRequest(); }
		}	
		ajaxObj.open("POST", URL, true);
		ajaxObj.setRequestHeader("Content-Type", INTcontentType);
		ajaxObj.send(vars);	
		ajaxObj.onreadystatechange = function () 
		{
			if (ajaxObj.readyState == 4) { document.getElementById(divid).innerHTML = ajaxObj.responseText; }
		}
	}

function closeElem(elemid) {
	document.getElementById(elemid).style.display = "none";
}

function changeColor(elemid) {
	for(i=1; i<=9; i++) document.getElementById('interests_item'+i).style.backgroundColor = "#ffffff";
	document.getElementById(elemid).style.backgroundColor = "#C3F5BE";		
}

function openWindow(title) {
	var url = "interestdesc.cfm?title="+title;
	window.open(url,'mywindow','width=800,height=500,scrollbars=1');
}
