function doubleConfirm()
{
	return true;
	if(confirm("Are you sure you want to do this?"))
	{
		if(confirm("Are you REALLY sure you want to do this?"))
		{
			return true;
		}
		return false;
	}
	return false;
}

function remindConfirm()
{
	alert('You must check the "Confirm Changes" button below before pressing "Edit Profile" for the changes to take effect.');
}

function swapReg()
{
	document.getElementById("part_1").style.display="none";
	document.getElementById("part_2").style.display="block";
}

function toggleSponsor(obj)
{
	if(obj.options[obj.selectedIndex].value==0 || obj.options[obj.selectedIndex].getAttribute("auto_approve")==0)
	{
		document.getElementById("sponsor_info").style.display="block";
	}
	else
	{
		document.getElementById("sponsor_info").style.display="none";
	}
}

function toggleAdminArea(obj)
{
	if(obj.options[obj.selectedIndex].value=="galaxy") document.getElementById("admin_area_box").style.display="block";
	else document.getElementById("admin_area_box").style.display="none";
}

			function sortSelect(obj)
			{
				var o = new Array();
				if(!obj.options){return;}
				for(var i=0;i<obj.options.length;i++)
				{
					o[o.length] = new Option(obj.options[i].text, obj.options[i].value, obj.options[i].defaultSelected, obj.options[i].selected);
				}
				if(o.length==0){return;}
				o = o.sort(function(a,b){if((a.text+"") <(b.text+"")){return -1;}if((a.text+"") >(b.text+"")){return 1;}return 0;});
				for(var i=0;i<o.length;i++)
				{
					obj.options[i] = new Option(o[i].text, o[i].value, o[i].defaultSelected, o[i].selected);
				}
			}

			function sendFromTo(from, to)
			{
				objFrom = document.getElementById(from);
				objTo = document.getElementById(to);
		
				var sel = new Array();
				for(var i=0;i!=objFrom.options.length;i++)
				{
					if(objFrom.options[i].selected)
					{
						sel.push(objFrom.options[i]);
					}
				}
		
				for(var i=0;i!=sel.length;i++)
				{
					var k=0;
					for(var j=0;j!=objTo.options.length;j++)
					{
						if(objTo.options[j].value==sel[i].value) { k=1; break; }	
					}
					if(!k)	objTo.appendChild(sel[i]);
					else objFrom.removeChild(sel[i]);
				}
		
				sortSelect(objFrom);
				sortSelect(objTo);
				objFrom.selectedIndex=-1;
				objTo.selectedIndex=-1;
			}

			function selectAllMembers()
			{
				var obj = document.getElementById("sel_1");
				for(var i=0;i!=obj.options.length;i++) obj.options[i].selected = 1;
				return true;
			}