Here is what you need to modify in the code:Comment out the following code in the init() function://query.geometry = (geometry, sourcewkid);In the execute() function, add the following codes:
function execute(geometry) {
var mySplitResult = geometry.split(",");
var mapPoint = new esri.geometry.Point([parseFloat(mySplitResult[0]), parseFloat(mySplitResult[1])],new esri.SpatialReference({ wkid:2965 }));
query.geometry = mapPoint;
queryTask.execute(query,showResults);
}