function showBox(name) {
	//document.getElementById('disabled_' + name).style.display = 'block';
	//$('disabled_'+name).appear();
	Effect.Appear('disabled_'+name);
	window.scrollTo(0,0);
}

function closeBox(name) {
	//document.getElementById('disabled_' + name).style.display = 'none';
	$('disabled_'+name).fade();
}

function toggleUpdates() {
	var upd = document.getElementById('updates');
	var isIE = false;
	var img = null;
	
	if (navigator.userAgent.indexOf('MSIE') > -1)
	{
		isIE = true;
		img = document.getElementById('updatesimage');
	}
	
	if (upd.value == 0) {
		upd.value = 1;
		
		if (isIE) {
			img.src = img.src.replace('off', 'on');
			img.title = "Updates on";
		}
	}
	else {
		upd.value = 0;
		
		if (isIE) {
			img.src = img.src.replace('on', 'off');
			img.title = "Updates off";
		}
	}
	
	new Ajax.Updater('updates_response', 'modify?field=updates', {
	  parameters: { updates: upd.value },
	  method: 'post'
	});
}

function noUpdates() {
	$('updates_response').update('You can\'t turn on updates until you verify your IM ID.');
}