
function updateLoginLink(appPath, loggedin) {
	var theLink = $('ctl00_aProfileLogin');

	if (appPath == "/")
		appPath = "";

	if (loggedin == 1) {
		theLink.href = appPath + "/bupp.aspx";
		theLink.innerHTML = "My Profile";		
	} else {
		theLink.href = appPath + "/signup.aspx";
		theLink.innerHTML = "Sign Up/Log In";	
	}
}

