﻿//Uses a handler to change the user's avatar.
function changeAvatar_click(avImage) {
	var strSelected = avImage.id;
	var strURL = '';
	if (strSelected && strSelected != '') {
		
		//Build URL
		strURL += '/mycorner/handlers/Account.ashx?';
		strURL += 'm=ChangeAvatar';
		strURL += '&aid=' + strSelected;
		strURL += '&ref=' + window.location.href;

		//Pass avatar info to handler
		window.location.href = strURL;
	}
}

//Uses a handler to change the user's mood.
function changeMood_click(intMoodID) {
	//alert(intMoodID);
	
	var strURL = '';
		
	if (intMoodID && intMoodID != '') {

		//Build URL
		strURL += '/mycorner/handlers/Account.ashx?';
		strURL += 'm=ChangeMood';
		strURL += '&mid=' + intMoodID;
		strURL += '&ref=' + window.location.href;

		//Pass avatar info to handler
		window.location.href = strURL;
		
	}
}
