function js_cookies()
{
	cook = window.open('cookies.html','cookk','width=400,height=250');
	cook.focus();
}

function js_vat()
{
	vatwin = window.open('vat.html','vatt','width=450,height=450');
	vatwin.focus();
}

function js_licence()
{
	licen = window.open('licence.html','licenn','width=450,height=230');
	licen.focus();
}


function js_infoscd( page )
{
	puzz = window.open( page ,'cd','width=400,height=190');
	puzz.focus();
}

function js_tshirts( page )
{
	tsh = window.open( page ,'tshirts','width=400,height=180');
	tsh.focus();
}

function js_materiel( page )
{
	materi = window.open( page ,'materiell','width=350,height=300');
	materi.focus();
}


function js_cahiers( page )
{
	cah = window.open( page ,'cahh','width=400,height=350');
	cah.focus();
}

function js_choix_pays()
{
	var id_select = document.getElementById('country_code');
	var pays = id_select.options[id_select.selectedIndex].id;
	var index = id_select.selectedIndex;

	window.location = "./?pays=" + pays;
}


function js_affiche_pays( pays )
{
	var pays;

	document.getElementById(pays).selected=true;

}



/***
*** permet de dsactiver un bouton si un article est puis.
*/
function verif_epuise( select_id, span_id, lang)
{
	var x=document.getElementById(select_id);
	var texte=x.options[x.selectedIndex].text;

	if ( ( texte.match( 'puis' ) != null ) || ( texte.match( 'out' ) != null ) || ( texte.match( 'Εξαντλήθηκε' ) != null ) )
	{
		switch ( lang )
		{
			case 'fr': document.getElementById(span_id).innerHTML = "<img src='./epuise.jpg' alt='&Eacute;puis&eacute;' />"; break;
			case 'en': document.getElementById(span_id).innerHTML = "<img src='./outofstock.jpg' alt='Out of Stock' />"; break;
			case 'gr': document.getElementById(span_id).innerHTML = "<img src='./outofstock.jpg' alt='Εξαντλήθηκε' />"; break;
		}
	}
	else
	{
		switch ( lang )
		{
			case 'fr': document.getElementById(span_id).innerHTML = "<input type='image' src='./ajouter.jpg' name='submit' alt='Ajouter au Panier' />"; break;
			case 'en': document.getElementById(span_id).innerHTML = "<input type='image' src='./add.jpg' name='submit' alt='Add to Cart' />"; break;
			case 'gr': document.getElementById(span_id).innerHTML = "<input type='image' src='./add.jpg' name='submit' alt='Προσθήκη στο Καλάθι' />"; break;
		}
	}
}



