function controlFormulaire( form )
{ 
  var err="";
  var nb_err = 0;
  for( i=0; i < form.elements.length; i++ )
    {
      if(  form.elements[i].name != ""  )
	{
	  if( form.elements[i].name.substring(0,1) == "*" )
	    {
	      if( form.elements[i].value == "" )
		{
		  err += "    - " + form.elements[i].name.substring( 1,form.elements[i].name.length )  + "\n";
		  nb_err ++;
		}
	    }
	}
    }
  if( nb_err == 0 )
    {
      return true;
    }
  if( nb_err == 1 )
    {
      out = "Thanks to fill this field in the form : \n";
    }
  else
    {
      out = "Thanks to fill these fields in the form : \n";
    }
  alert( out + err );
  return false;
}


function initialiser()
{
opener.location.reload(true);
}

function effacer()
{
window.close();
}


function downloadfile (file)
{
if ( controlFormulaire(document.questform) )
	{
	document.forms["questform"].fileloaded.value = file ;
	document.forms["questform"].submit();
	window.open(file,'','resizable=yes, location=yes, width=800, height=600, menubar=yes, status=yes, scrollbars=yes');
	}
}

function InfoCodesPlans()
{
alert("   This file is reserved to the readers of the Cut Limestone Moulder's Manual.\n\n                          - Thank you for your comprehension -\n\n      This plan is disponible for download in the Moulders Workshop.\n\n      Follow the link 'Moulders Workshop' in the bottom of this page.\n\n  " );
  return false;
}