
function ProcessStep1()
{
	var oStep1 = GetMyObjectByID("rego-part-1");
	var oStep2 = GetMyObjectByID("rego-part-2");
	
	oStep1.style.display = "none";
	oStep2.style.display = "block";
	
}

function Finish()
{
	var oStep1 = GetMyObjectByID("rego-part-1");
	var oStep2 = GetMyObjectByID("rego-part-2");
	var oFinish = GetMyObjectByID("rego-finish");
	
	oStep1.style.display = "none";
	oStep2.style.display = "none";
	oFinish.style.display = "block";	
}
/*
This function is used to toggle between work details and home details 
for the question "where do you play or intend to play?"
*/
function ToggleLocation(e)
{
	var s = GetSelectedRadioItem(e.id);
	var objs = document.getElementsByTagName("li");
	var onitems = "";
	var offitems = "";
	
	// Work out what we are showing and hiding, if the user clicked near home, then show home details.
	if(s=="nearhome" || s == "both"){onitems = "homedetails";offitems="workdetails";}
	else if(s =="nearwork"){onitems = "workdetails";offitems="homedetails";}
	else{	return;}
	
	for(var i =0; i < objs.length; i++)
	{
		if(objs[i].className == onitems)
			objs[i].style.display ="block";
		
		if(objs[i].className == offitems)
		if(s == "both")
		{
			objs[i].style.display ="block";
		}
		else
		{
			objs[i].style.display ="none";
		}
	}
}

function ToggleOtherAboutUs(e)
{
	var oOther = GetMyObjectByID("other_hearaboutus");
	var sCurrent = e.options[e.selectedIndex].value;
	
	oOther.style.display = (sCurrent == "5") ?"block":"none";
	
}