
			function getDataFromServer(id, url, callback)
{
        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 cat = eval("document.getShots.pickShots.value");
		oScript.setAttribute("src",url+"?callback="+callback+"&cat="+cat+"&rf="+dtRf.getTime());
		oScript.setAttribute("id",id);
		head.appendChild(oScript);		
}
 
function makeRequest(formName)
{
        getDataFromServer("physSnaps","https://webapps.sph.harvard.edu/eh/phys/includes/snapshots/serveSnaps.cfm","changeSnaps");
}


function changeSnaps(snapDisplay)
{
      document.getElementById('snaps').innerHTML = snapDisplay;		
} 


			
