function switchClass(obj,strClassName) {
	obj.className = strClassName;
}
function handleList(szDivID, iState) // 1 visible, 0 hidden
{
   var obj = document.layers ? document.layers[szDivID] :
   document.getElementById ?  document.getElementById(szDivID).style :
   document.all[szDivID].style;
   obj.visibility = document.layers ? (iState ? "show" : "hide") :
   (iState ? "visible" : "hidden");
}

function open_w(fic) {
  nWin=window.open(fic,'','toobar=no,location=no,scrollbars=yes,resizable=yes,menubar=no,width=200,height=200');
  nWin.moveTo(300,100);
 }
function open_a(fic) {
  nWin=window.open(fic,'','toobar=no,location=no,scrollbars=yes,resizable=yes,menubar=no,width=650,height=800');
}
function changeDoc() {
if (document.docu.id.value != 0) { document.docu.submit(); }
}
function open_p(fic) {
  pWin=window.open(fic,'','toobar=no,location=no,scrollbars=yes,resizable=yes,menubar=no,width=860,height=1070');
 }
function open_c(fic) {
  nWin=window.open(fic,'','toobar=no,location=no,scrollbars=yes,resizable=yes,menubar=no,width=615,height=700');
 }
function recal() {
  document.order.action = "valid-massorders.php";
  document.order.submit();
 }
function suite() {
  document.order.action = "valid2-massorders.php";
  document.order.submit();
 }
function verifi() {
  if (document.filtre.group.value == 0)  {
  	alert ('You must select a group');
  	document.filtre.group.focus();
  	return false;
  }
  if (document.filtre.distrib.value == 0)  {
  	alert ('You must select a distribution mode');
  	document.filtre.distrib.focus();
  	return false;
  }
  return true;
}
function changeDoc() {
if (document.docu.id.value != 0) { document.docu.submit(); }
}