/*
	Purpose: Toggle the display of the free trial options section passed.
*/
function showHideFreeTrial( advancedOptionsId )
{	

	//var arrow = new objWrapper(arrowId);
	var advancedOptions = new objWrapper(advancedOptionsId);
	
	// toggle the display
	if (advancedOptions.css.display == 'none')
	{
		showFreeTrial( advancedOptionsId);
	}
	else
	{
		hideFreeTrial( advancedOptionsId);
	}
	
	
}

/*
	Purpose: show the free trial options section passed.
*/
function showFreeTrial( advancedOptionsId )
{
	//var arrow = new objWrapper(arrowId);
	var advancedOptions = new objWrapper(advancedOptionsId);
	
	//arrow.obj.className = arrowClassName + 'Up';
	advancedOptions.show();
	
	/*if (formBoxId != null)
	{
		formBox = new objWrapper(formBoxId);
		formBox.obj.className = 'FormBox';
	}*/
}

/*
	Purpose: hide the free trial options section passed.
*/
function hideFreeTrial( advancedOptionsId )
{
	//var arrow = new objWrapper(arrowId);
	var advancedOptions = new objWrapper(advancedOptionsId);
	
	//arrow.obj.className = arrowClassName + 'Down';
	advancedOptions.hide();
	
	/*if (formBoxId != null)
	{
		formBox = new objWrapper(formBoxId);
		formBox.obj.className = 'FormBoxAlt';
	}*/
}

function userRegistered()
{
	showHideFreeTrial('bottomSection');
	showHideFreeTrial('boxLogin');
	showHideFreeTrial('BoxFreeTrial4');
	return false;
}

function userFreeTrial()
{
	showHideFreeTrial('bottomSection');
	showHideFreeTrial('boxLogin');
	showHideFreeTrial('BoxFreeTrial1');
	return false;
}

/* YS: Sprint M13 : Item 889 : 05/Jun/2009 : New function that shows the BoxFreeTrial which holds all the fields in
                                             a single form instead of three different forms. */
function userFreeTrialCompressedForm()
{
	showHideFreeTrial('bottomSection');
	showHideFreeTrial('boxLogin');
	showHideFreeTrial('BoxFreeTrial');
	return false;
}

