function txt_fontsize_plus() {
	var elmt = document.getElementById('art-txt-resizable') ;
	var elmt_size = document.getElementById('art-txt-resizable').style.fontSize ;
	elmt_tab = elmt_size.split("e") ;
	size = eval( elmt_tab[0] ) ;
		if (size < 1.5) {
			var size2 = size + 0.1 ;
			document.getElementById('art-txt-resizable').style.fontSize = size2 + "em";
		}
}

function txt_fontsize_moins() {
	var elmt = document.getElementById('art-txt-resizable') ;
	var elmt_size = document.getElementById('art-txt-resizable').style.fontSize ;
	elmt_tab = elmt_size.split("e") ;
	size = eval( elmt_tab[0] ) ;
		if (size > 0.6) {
			var size2 = size - 0.1 ;
			document.getElementById('art-txt-resizable').style.fontSize = size2 + "em";
		}
}

function mail(mail){      
	nw=open('','mail','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=510,height=400');
        nw=open(mail,'mail','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=510,height=400');
        nw.focus();
}

var ajax = new Array();

function getParutionList(sel)
{
	var dateparution = sel.options[sel.selectedIndex].value;
	//document.getElementById('archives_dateparution').options.length = 0;	// Empty page select box
	if(dateparution.length>0){
		var index = ajax.length;
		ajax[index] = new sack();
		
		ajax[index].requestFile = '/hebdo/getParutions.php?dateparution='+dateparution;	// Specifying which file to get
		ajax[index].onCompletion = function(){ createParutions(index) };	// Specify function that will be executed after file has been found
		ajax[index].runAJAX();		// Execute AJAX function
	}
}

function createParutions(index)
{
	var obj = document.getElementById('archives_parution');
	eval(ajax[index].response);	
}

function getPageList(sel)
{
	var parution = sel.options[sel.selectedIndex].value;
	//document.getElementById('archives_parution').options.length = 0;
	if(parution.length>0){
		var index = ajax.length;
		ajax[index] = new sack();
		
		ajax[index].requestFile = '/hebdo/getPages.php?parution='+parution;
		ajax[index].onCompletion = function(){ createPages(index) };
		ajax[index].runAJAX();
	}
}

function createPages(index)
{
	var obj = document.getElementById('archives_page');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}

function getPage(sel)
{
	var page = sel.options[sel.selectedIndex].value;
	if(page.length>0){
		window.open('/hebdo/getPdf.php?id='+page,'aff_pdf','toolbar=0, location=0, directories=0, status=0, scrollbars=1, resizable=1, copyhistory=0, menuBar=0, width=800, height=600'); 
		return false;
	}
}
