<script language="JavaScript" type="text/JavaScript">
function cacher( flag_,zone){
  var szStyle="";
  if( flag_){
    szStyle="none";
  }
  //document.form.prix.style.display = szStyle;
  document.getElementById(zone).style.display=szStyle;
}

function openPopUp(url) 
{
	window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=550,height=410');
}
function pop_v(URL,larg,haut) {
	window.open(URL,'','location=no,toolbar=no,directories=no,menubar=no,resizable=1,scrollbars=no,status=no,width=' + larg + ',height=' + haut);
}

// Permet d afficher l image On
function Image_On(name,src)
{
  document.images[name].src = src
}

// Permet d afficher l image Off
function Image_Off(name,src)
{
  document.images[name].src = src
}

// Permet d effacer le contenu d un formulaire
function Effacer_Form(obj)
{
  for(i=0;i<obj.length;i++)
  {
  	if(obj[i].type == "text")
      obj[i].value = "";
    if (obj[i].type == "checkbox")
    {
      obj[i].value = 0;
      obj[i].checked = false;
    }
  }
}

// Permet de savoir si la variable est de type float
function Is_Float(obj)
{
  ok = true;

  for (i=0; i<obj.value.length && ok; i++)
    ok = ((obj.value.charAt(0)=="-") || (obj.value.charAt(i)==".") || ((obj.value.charAt(i)>="0") && (obj.value.charAt(i)<="9")));

  if (!ok)
  {
	obj.focus();
	obj.select();
	alert('Le champs doit être décimal.');
 }

  return(ok);
}

// Permet d obtenir l ensemble des proprietes d un objet
function Prop_obj(obj)
{
  var str = "";
  var ligne = 0;
		
  for(var i in obj) 
  {
    str += i + "=" + obj[i] + "\n";
    ligne ++;
    if(ligne > 30)
    {
      alert(str);
      str = "";
      ligne = 0;
    }
  }		
  alert(str);
}
function Fermer()
{
  opener=self;
  self.close();
}


// -->
</SCRIPT>
