
// register event listeners on the Ajax requests to show/hide the processing indicator
Ajax.Responders.register({
	onCreate: function(responseObj) {
		$(responseObj.container.success).update('<img style="margin-left:207px;" src="/fileadmin/images/ajax-loader.gif" />');
	}
});

var worldmap_country;

function getData(country) {

	if (country == '') {
		country = worldmap_country;
	} else {
		worldmap_country = country;
	}

	// var category = $('worldmap_form')['tx_frommoworldmap_pi1[category]'].getValue();
	var category = $F($('category'));
	
	var brand = $F($('brand'));

	//var sortorder = $('worldmap_form')['tx_frommoworldmap_pi1[sortorder]'].getValue();
	var sortorder = $F($('sortorder'));

	new Ajax.Updater('worldmap_content', 'index.php', {
  		parameters: { eID: 'worldmap', country: worldmap_country, category: category, brand: brand, sortorder: sortorder, pid: worldmap_pid }
	});

}

