

function doGroupSelect1(baseID)
{
//alert(g1SelectID);
	v = window.document.getElementById(baseID+"_g1").value;
//	alert(element);
	
	url = "com.spiff.ajax.S_AJAX_Groups?n=2&v="+v+"&id="+baseID;
	id = baseID+"_s2";
	
	doPull(url, id);
}



function doGroupSelect2(baseID)
{
//alert(g1SelectID);
	v = window.document.getElementById(baseID+"_g2").value;
//	alert(element);
	
	url = "com.spiff.ajax.S_AJAX_Groups?n=3&v="+v+"&id="+baseID;
	id = baseID+"_s3";
	
	doPull(url, id);
}








function earnings(baseName)
{
	v = window.document.getElementById(baseName+"_fund").value;
//alert(v);
	if(v=='9')
	{
		// Enable the view of the chartity select.
		enableLayer(baseName+"_fund_charity");
	}
	else
	{
		// Disable the view of the chartity select.
		disableLayer(baseName+"_fund_charity");
	}
}


function switchCss ( cssFile )
{
	document.getElementById('profileCSS').href = "/css/profile/"+cssFile; 
}



function doHereFor()
{
	val = document.getElementById('hf1').value;
	//alert(val);
	if(val==2)
	{
		enableLayer("div_hf2");
	}
	else
	{
		disableLayer("div_hf2");
	}
}

function updateProfileSection(id)
{
	var dropdownIndex = document.getElementById('ps'+id).selectedIndex;
	var val = document.getElementById('ps'+id)[dropdownIndex].value;
//alert(val);
	doPull("com.spiff.member.composite.S_MC_ProfileSections?ps="+id+"&v="+val, "h");
}


