
			function getDataFromServer(id, url, callback,formName)
{
        var oScript = document.getElementById(id);
        var head = document.getElementsByTagName("head").item(0);
        
        if (oScript)
        {
                // Destory object
                head.removeChild(oScript);
        }
        
        // Create object
        oScript = document.createElement("script");
        
        var dtRf = new Date();
        //pull id from changed drop down
		
		
		var opt = eval("document."+formName+".opt.value");
		var showFrom = eval("document."+formName+".showFrom.value");
			
		oScript.setAttribute("src",url+"?callback="+callback+"&form="+formName+"&showFrom="+showFrom+"&opt="+opt+"&rf="+dtRf.getTime());
		oScript.setAttribute("id",id);
        head.appendChild(oScript);
		
}
 
function makeRequest(formName)
{
        getDataFromServer("facList","https://webapps.sph.harvard.edu/eh/phys/includes/faculty/popFaculty.cfm","popFacList",formName);
}
 
function popFacList(facList)
{
          document.getElementById('facultyList').innerHTML = facList;
		
} 

			
