JavaScript function for making geonetwork XML queries