
function swap_photos () {
	var match_photos = getRef ("match_photos");
	match_photos.className = (match_photos.className=="SHOW") ? "HIDDEN" : "SHOW";
}


function ajaxViewMatch (id, checked) {
	var val = (checked) ? 1 : 0;
	var url = page;
	var pars = 'page=action&action=CHANGE_FIELD_VIEW_MATCH&id='+id+'&checked='+val+'';
	var myAjax = new Ajax.Updater(
		'resViewMatch',
    url,
    {
			method: 'get',
			parameters: pars,
			onComplete: ajaxViewMatchResponse,
			onFailure: ajaxViewMatchError
		}
 	);
}
/* Résultat */
function ajaxViewMatchResponse(originalRequest) {
}

/* En cas d'erreur */
function ajaxViewMatchError(request) {
	//alert (request);
	alert('Erreur (ajaxError)');
}

function matchUsersView (id) {
	var url = page;
	var pars = 'page=match_users_view&id='+id;
	$('usersViewMatch').innerHTML ="Chargement en cours...";
	var myAjax = new Ajax.Updater(
		'usersViewMatch',
    url,
    {
			method: 'get',
			parameters: pars,
			onFailure: ajaxViewMatchError
		}
 	);
}
/* Résultat */

