function showhide(id)
{
if(document.getElementById(id).style.display=="block")state="none";
else state="block";

if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + id + ".style.display = state");
}
if (document.layers) { //IS NETSCAPE 4 or below
document.layers[id].display = state;
}
if (document.getElementById &&!document.all) {
hza = document.getElementById(id);
hza.style.display = state;
} 
}

function popup(fichier){
	window.open(fichier,'popup','toolbar=1,location=0,directories=1,status=1,menubar=1,width=750,height=550,scrollbars=1,resizable=1');
}

function printpage(doc)
{
	fenetre = window.open(doc,'_blank','toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,copyhistory=0,menuBar=1,width=600,height=600');
}
function GoPage(page){
	document.location.href = page;
}

function openpopup(doc)
{
largeur = screen.availWidth;
hauteur = screen.availHeight;
largeur= "800px";

fenetre = window.open(doc,'fenetre',"left=0,top=0,scrollbars=1, resizable=yes, location=no, width="+largeur+", height="+hauteur+", menubar=no, status=no");
fenetre.focus();
}
function GoPage(page){
	document.location.href = page;
}

function CheckAll(form) {

for (var i=0;i<document.forms[form].elements.length;i++) {
		var e = document.forms[form].elements[i];
		if ((e.name != 'checkall') && (e.type=='checkbox')) {
			e.checked = document.getElementById('checkall').checked;
		}
	}
}



