﻿//ouvre une fenetre fille retaillable    	
function new_browser(src,name,w,h)
{
	size=",width="+w+",height="+h
	browser=window.open(src,name,"resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,location=0,directories=no"+size)
}


//ouvre une fenetre fille de taille fixe   
function new_browser3(src,name,w,h)
{
	size=",width="+w+",height="+h
	browser=window.open(src,name,"resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,location=0,directories=no"+size)
}	


//ouvre une photo dans une fenetre fille à la taille de la photo
function fenetrephoto2 (repimages, lo, ha, nomimage,id)
{	
	browser=window.open("visualisation.asp?image="+repimages+"&id="+id, nomimage,"resizable=no,scrollbars=auto,toolbar=no,status=no,menubar=no,location=0,directories=no,width="+lo+",height="+ha)
}

function openWin(URL,w,h,resize,scroll,windowName) {
	lAttributes = '';
	lAttributes += 'toolbar=0,';
	lAttributes += 'Location=0,';
	lAttributes += 'directory=0,';
	lAttributes += 'status=0,';
	lAttributes += 'menubar=0,';
	lAttributes += 'scrollbars='+scroll+',';
	lAttributes += 'resizable='+resize+',';
	lAttributes += 'width='+w+',';
	lAttributes += 'height='+h+'';
	if(!windowName) windowName="";
	winId = window.open(URL,windowName,lAttributes);
}

function openPrint(URL,w,h,resize,scroll) {
	lAttributes = '';
	lAttributes += 'toolbar=1,';
	lAttributes += 'Location=0,';
	lAttributes += 'directory=0,';
	lAttributes += 'status=0,';
	lAttributes += 'menubar=1,';
	lAttributes += 'scrollbars='+scroll+',';
	lAttributes += 'resizable='+resize+',';
	lAttributes += 'width='+w+',';
	lAttributes += 'height='+h+'';
	winId = window.open(URL,"windowprint",lAttributes);
}

function glossaire(id) {
	openWin('glossaire.asp?id='+id, 400, 200, 0, 1, 'Glossaire')
}