newjax.location = function() {

	return {

		name: 'location',



		
		switch_state: function(id, a, prefix) {

			if (!a) a = 0;
			if (!prefix) prefix = '';
			
			var country = id.options[id.selectedIndex].value;
			var state = '';
			//return;

			//$('preview_status_div_'+id).innerHTML = '(Read)';
			//$('message_status_div_'+id).innerHTML = '(Read)';

			newjax.update(prefix+'state_div', newjax.actions_page, { newjax_action:'switch_state', state:state, country:country, a:a, prefix:prefix }, function(t){

				//if (div.nodeName == 'DIV') 
				//$(div.id).focus();

			});
			
		}
		
		
		

	} //return

}();


Event.observe(window, 'load', function() {

	/* AFTER LOADING */
	
});
