function sampleHandlerFunc(voice){
	alert(voice + "\n(handler function)");
}
function getPage(file,container,values,loading){
	$(container).setHTML('<center>'+((loading == undefined  || loading == '')?'loading data.':loading)+'</center>');
	new Ajax(file, {
		method: 'post',
		data: values,
		evalScripts: true,
		update: $(container)		
		}).request();
}
	
function removeItem(element){
	new Fx.Style(element, 'opacity').start(1,0).addEvent('onComplete', (function() {element.remove();}).bind(element));
}


function getProfile(file,user_id,element){	
	var mySlide = new Fx.Slide(element,{duration: 300});
	mySlide.hide();	
	new Ajax(file, {
		method: 'post',
		data: 'cmd=get_profile&user_id='+user_id,
		evalScripts: true,
		update: element,
		onComplete: function() {
				mySlide.toggle();
			}.bind(mySlide)
		}).request();	
	
	//new Fx.Style(element, 'opacity').start(1,0).addEvent('onComplete', (function() {element.remove();}).bind(element));
}




