//==============================================================================
// Javascript Library (c) Virtooz 2006-2008
//
// LIBRARY: uForm.js
//
// DESCRIPTION
// Standard functions for form processing
//==============================================================================

//------------------------------------------------------------------------------
// textFilled()
//
// All text boxes are filled?
//------------------------------------------------------------------------------

function textFilled() {
  var text1 = document.formulier.text1;
  var text2 = document.formulier.text2;
  var text3 = document.formulier.text3;
  var text4 = document.formulier.text4;
  if ( ((text1) && ((text1.value=='') || (text1.value=='undefined'))) ||
       ((text2) && ((text2.value=='') || (text2.value=='undefined'))) ||
       ((text3) && ((text3.value=='') || (text3.value=='undefined'))) ||
       ((text4) && ((text4.value=='') || (text4.value=='undefined'))) ) {
    return false;
  }
  else {
    return true;
  }
}

//------------------------------------------------------------------------------
// textFilledEnableRight
//
// Enable right button when all text boxes are filled
//------------------------------------------------------------------------------

function textFilledEnableRight() {
  if (textFilled()) {
    enableRight();
  }
  else {
    disableRight();
  }
}
