// =============================================================================
// ================================ FORMULAIRE  ================================
// =============================================================================
// ====== Réalisé par Thomas Chiroux (www.chiroux.com)
// ======
// ====== v1.0 
// ======       
// ====== Dernières modif : 24/05/2006 : v1.0      
// =============================================================================

// Paramètres globaux

//var gs_Base_url='http://www.monsite.com/formulaire/';
//var gs_Redirect_url = 'http://www.monsite.com/';
// Mise à jour du contenu_de_page destiné à l'utilisateur sans recharger la page
	
	// Manipulation de la requête d'identification de manière asynchrone
	function affichage(text, titre, div)
	{ 
	a = document.getElementById('paves').offsetHeight;
	b = document.getElementById('contenu_de_page').offsetHeight;
	if (b > a){l = (600/div)-20;}else {l = (400/div)-20;}
	texte = '<div id="partie0" style="float:left; width:'+l+'px" >';
	if (titre != ''){
	texte += '<table width="'+l+'"><tr><th width="30" scope="row"><div id="cap2"></div></th><td >'+titre+' </td></tr></table>';	
	}
	texte += text+'</div>';
	//alert (texte);
	document.getElementById('contenu_de_page').innerHTML += texte;
	}
	
function open_div(div)
	{ 
	a = document.getElementById('paves').offsetHeight;
	b = document.getElementById('contenu_de_page').offsetHeight;
	if (b > a){l = (600/div)-10;}else {l = (400/div)-10;}
	texte = '<div style="border:solid; float:left; width:'+l+'px" >OK';
	document.getElementById('contenu_de_page').innerHTML += texte;
	}
	
function close_div()
	{ 
	texte = '</div>';
	document.getElementById('contenu_de_page').innerHTML += texte;
	}




// Apply the Highslide settings
	hs.graphicsDir = 'highslide/graphics/';
	hs.outlineType = 'rounded-white';
	hs.outlineWhileAnimating = true;
	hs.allowSizeReduction = false;
	hs.showCredits = false;
	hs.creditsTitle = false;
	// always use this with flash, else the movie will be stopped on close:
	hs.preserveContent = false;

	// 3) Optionally set the swfOptions. See http://highslide.com/ref/hs.swfOptions for full documentation
	/* hs.swfOptions = {
		version:			  "7",
		expressInstallSwfurl: null,
		flashvars:			{},
		params:			   {},
		attributes:		   {}
	}; */