/*
	----------------------------------------
	flipPage
	-----
	
	----------------------------------------
*/
	function flipPage (caller, startpage, params)
	{
		pg = caller.options[caller.selectedIndex].value;
		url = caller.form.action + '?' + startpage + '=' + pg;
		if (params)
			url += '&' + params;
		document.location = url;
	}


/*
	----------------------------------------
	searchOnCategory
	-----
	
	----------------------------------------
*/
	function searchOnCategory (caller)
	{
		pg = caller.options[caller.selectedIndex].value;
		url = caller.form.action + '?' +caller.name+ '=' + pg +'&srch=OK';
		document.location = url;
	}




/*
	----------------------------------------
	changeFontSize
	-----
	change the font size of all listed ones
	----------------------------------------
*/
	function changeFontSize(sizeChoice)
	{
		var a = document.getElementsByTagName('p');
		if (a)
		{
			for (i=0; i < a.length; i++)
			{
				if (a[i].getAttribute("id") == 'maintext'
					|| a[i].getAttribute("class") == 'commentaire')
				{
					switch (sizeChoice)
					{
						case 1: a[i].style.fontSize = "11px"; break;
						case 2: a[i].style.fontSize = "14px"; break;
						case 3: a[i].style.fontSize = "18px"; break;
					}
				}
			}
		}

		a = document.getElementsByTagName('h3');
		if (a)
		{
			for (i=0; i < a.length; i++)
			{
				switch (sizeChoice)
				{
					case 1: a[i].style.fontSize = "16px"; break;
					case 2: a[i].style.fontSize = "18px"; break;
					case 3: a[i].style.fontSize = "22px"; break;
				}
			}
		}

	}

