function exportgge_headerlocation() {

	            oldselection_type=myform.selection_type.value;
          		oldselection_coords=myform.selection_coords.value;
          		myform.selection_coords.value = mainmap.extent.xmin + ',' + mainmap.extent.ymin + ';' + mainmap.extent.xmax + ',' + mainmap.extent.ymax;
						
							myform.selection_type.value = "rectangle";
							oldaction=myform.action;
							myform.action=myform.action+'?ggeheaderlocation=yes';
							myform.action=myform.action+'&ggetpl=shape2kml&';
							var elt = xGetElementById("tool");
  						    toolid = elt.value ;
							elt.value= 'query_by_bbox';
							
							function_queryresult_in_popup=window.queryresult_in_popup;
							window.queryresult_in_popup = null;
							
							storeFeatures();
						    doSubmit();
							xHide(xGetElementById('loadbarDiv'));
							setActiveToolButton(toolid);
							myform.action=oldaction;
							myform.selection_coords.value =oldselection_type;
							myform.selection_type.value =oldselection_coords;
							
							
}