// JavaScript Document

/* document Ready */
$( function () {
	//addEvent(window, "load", tmt_validatorInit);
	doOnLoad($("div"));
});    

function doOnLoad(context){
	
	//if($("body").attr("class")=="sortableListWithPagination") alert("ok"); else alert("ko");
	//if($("body").is("sortableListWithPagination")) alert("ok"); else alert("ko");
	$(".sortableListWithPagination", context).sortableListWithPagination();
	
	/*
	$('.errorMessage',context).hide();
	
	$(".submit", context).click(function(){
		$('#errorMessage').html('');									 
		$(this).parents("form").children('.errorMessage').hide();;
		if($(this).parents("form")[0].onsubmit()){
			$(this).parents("form")[0].submit();
		}
	});
	$(".submitCheckBox", context).click(function(){	
		$('#errorMessage').html('');
		if (document.getElementById('reg_accept').checked){
			if($(this).parents("form")[0].onsubmit()){
				addEvent(window, "load", tmt_validatorInit);
				$(this).parents("form")[0].submit();
			}	
		} else {
			alert("Veuillez cocher la case d'acceptation pour valider");
			return;
		}
	});
	*/

}
