function identify(position)
{	
	var res = map.getResolution();
	var scale = OpenLayers.Util.getScaleFromResolution(res, "m");	 
	var pos = map.getLonLatFromPixel(position);
	var qtype = "";
	 if(map.currentWeed == "all"){
         	qtype = "all";
         }
	else if(map.currentWeed != "by Scientific Name"){
    		qtype = "s";
    	}
    /*url = "http://localhost/requests/va/identify?x=" + pos.lon + "&y=" + pos.lat + "&species=" + escape(map.currentWeed) + "&agency=" + escape(map.agency) + "&qtype=" + qtype;*/
    /*http://hermes.freac.fsu.edu/imi/requests/identify/ny?x=501600&y=4803200*/
	//var url = baseRequestFolderURL + imiStateCode + "/identify?x=" + pos.lon + "&y=" + pos.lat + "&species=" + escape(map.currentWeed) + "&agency=" + escape(map.agency) + "&qtype=" + qtype;
	var url = host + "/imi/requests/identify/" + imiStateCode + "?x=" + pos.lon + "&y=" + pos.lat + "&species=" + escape(map.currentWeed) + "&agency=" + escape(map.agency) + "&qtype=" + qtype;
	url = "/cgi-bin/proxy.cgi?url=" + escape(url);
	var xmlhttp = newXHR();
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState==4){
			var ident = xmlhttp.responseText;
			eval(ident);
       			//by eval(ident) we get access to these three variables, which were returned
        		//by the python
        		idinfo = [counties, weeds];
        		//show the window with the points tab displayed and pass in weeds data
			showWindow(weedData,features,idinfo); //must pass weedData and features into show window along with the new weeds (identify info)
		}
	}
	xmlhttp.send(null);
}
