


/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/



var cur_lyr;	// holds id of currently visible layer
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.display = "block";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.display = "none";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? document.layers[id]: null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

//Script d'alerte pour Cette demande de taux concerne

function radio_button_checker()
{
// set var radio_choice to false
var radio_choice = false;

// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < Form.concerne.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (Form.concerne[counter].checked)
radio_choice = true; 
}



if (!radio_choice)
{
// If there were no selections made display an alert box 
alert("IMPORTANT\! Vous devez r\épondre \à la section \"Cette demande de taux concerne\"")
return (false);
}
return (true);
}



function openwindow()
{
	window.open("http://www.secureapp.com/mbplus/key/minb501b017/minb501b017key.asp","mywindow","menubar=0,resizable=1,width=700,height=500,scrollbars=1,location=yes,status=yes");
}

