var z=0;
function popup_imprime(z)
{
popimp = window.open(z,'','resizable=0,scrollbars=1,toolbar=0,location=0,height=500,width=650,top=10,left=10');
popimp.focus();
}

var a=0;
function popup_mp(a)
{
popmp = window.open(a,'','resizable=0,scrollbars=1,toolbar=0,location=0,height=550,width=800,top=10,left=10');
popmp.focus();
}

var b=0;
function popup_mp_profil(b)
{
popmpp = window.open(b,'','resizable=0,scrollbars=1,toolbar=0,location=0,height=450,width=800,top=10,left=10');
popmpp.focus();
}


function envoi_mdp()
{
	document.ident.submit();
}

function themalis_pop()
{
newWin = window.open('http://www.themalis.fr','','resizable=1,scrollbars=1,toolbar=1,location=1,height=600,width=750,top=10,left=150')
}

var y=0;
function forum(y)
{
newWin = window.open(y,'','resizable=1,scrollbars=1,toolbar=1,location=1,height=600,width=850,top=10,left=150')
}

var catalogue=0;
function popup_cat(catalogue)
{
var popcat =  window.open(catalogue,'','resizable=1,scrollbars=1,toolbar=1,location=1,height=600,width=850,top=10,left=150')
popcat.focus();
}

function forum_box()
{
alert('Forum bientôt disponible.')
}


function inscription_box()
{
alert('Inscription en ligne bientôt disponible.')
}

function doc_box()
{
alert('Documentation en cours de mise à jour.')
}

function assistance_box()
{
alert('Assistance en ligne bientôt disponible.')
}

function plan_box()
{
alert('Plan du site bientôt disponible.')
}

function valider_question() 
{
	document.assistance.valider_question.value='1';
	document.assistance.submit();
}

function deconnexion_mp() 
{
	document.deconnexion.deconnexion.value='1';
	document.deconnexion.submit();
}


var nav3or4 =navigator.appName.indexOf("Netscape")!=-1&&(navigator.appVersion.charAt(0).indexOf("3")!=-1||navigator.appVersion.charAt(0).indexOf("4")!=-1)
var ie4 = navigator.appName.indexOf("Microsoft Internet Explorer")!=-1&&(navigator.appVersion.indexOf("4.0")!=-1)
if((nav3or4)||(ie4))
{
	var item1 = new Image;
	item1.src = "images/maquette_v3_28.jpg";
	var item2 = new Image;
	item2.src = "images/maquette_v3_28.gif";
	var item3 = new Image;
	item3.src = "images/maquette_v3_43.jpg";
	var item4 = new Image;
	item4.src = "images/maquette_v3_43.gif";
	var item5 = new Image;
	item5.src = "images/maquette_v3_44.jpg";
	var item6 = new Image;
	item6.src = "images/maquette_v3_44.gif";
	var item7 = new Image;
	item7.src = "images/maquette_v3_45.jpg";
	var item8 = new Image;
	item8.src = "images/maquette_v3_45.gif";
	var item9 = new Image;
	item9.src = "images/maquette_v3_47.jpg";
	var item10 = new Image;
	item10.src = "images/maquette_v3_47.gif";
	var item11 = new Image;
	item11.src = "images/maquette_v3_50.jpg";
	var item12 = new Image;
	item12.src = "images/maquette_v3_50.gif";
	var item13 = new Image;
	item13.src = "images/maquette_v3_51.jpg";
	var item14 = new Image;
	item14.src = "images/maquette_v3_51.gif";
}

function display(onoff)
{
if((nav3or4)||(ie4))
	{
	if (onoff=="1") {document.images[26].src = item1.src;}
	if (onoff=="2") {document.images[26].src = item2.src;}
	if (onoff=="3") {document.images[28].src = item1.src;}
	if (onoff=="4") {document.images[28].src = item2.src;}
	if (onoff=="5") {document.images[30].src = item1.src;}
	if (onoff=="6") {document.images[30].src = item2.src;}
	if (onoff=="7") {document.images[32].src = item1.src;}
	if (onoff=="8") {document.images[32].src = item2.src;}
	if (onoff=="9") {document.images[34].src = item1.src;}
	if (onoff=="10") {document.images[34].src = item2.src;}
	if (onoff=="11") {document.images[48].src = item3.src;}
	if (onoff=="12") {document.images[48].src = item4.src;}
	if (onoff=="13") {document.images[49].src = item5.src;}
	if (onoff=="14") {document.images[49].src = item6.src;}
	if (onoff=="15") {document.images[50].src = item7.src;}
	if (onoff=="16") {document.images[50].src = item8.src;}
	if (onoff=="17") {document.images[52].src = item9.src;}
	if (onoff=="18") {document.images[52].src = item10.src;}
	if (onoff=="19") {document.images[55].src = item11.src;}
	if (onoff=="20") {document.images[55].src = item12.src;}
	if (onoff=="21") {document.images[56].src = item13.src;}
	if (onoff=="22") {document.images[56].src = item14.src;}
	}
}

function au_revoir()
{
window.opener.actualise_ecran();
}

function ferme()
{
window.close();
}

function actualise_ecran() 
{
window.location.reload();
}
