<!--
/* --------------------- DIV visible or not  ----------------------- */
function display(name)
{
//alert(document.getElementById(name).style.display);
	if (document.getElementById(name).style.display == 'none')
	{
		document.getElementById(name).style.display	= 'block';
	}else{
		document.getElementById(name).style.display	= 'none';
	}

}
/* --------------------- Preloader van de images  ----------------------- */
if ( document.images )
{
  home_on = new Image ( );
  home_off = new Image ( );

  aanbieden_on = new Image ( );
  aanbieden_off = new Image ( );

  handelaars_on = new Image ( );
  handelaars_off = new Image ( );

  registreer_on = new Image ( );
  registreer_off = new Image ( );

  myba_on = new Image ( );
  myba_off = new Image ( );

  faq_on = new Image ( );
  faq_off = new Image ( );

  home_on.src = "../images/nl/btn_home_on.gif";
  home_off.src = "../images/nl/btn_home.gif";

  aanbieden_on.src = "../images/nl/btn_aanbieden_on.gif";
  aanbieden_off.src = "../images/nl/btn_aanbieden.gif";

  handelaars_on.src = "../images/nl/btn_handelaars_on.gif";
  handelaars_off.src = "../images/nl/btn_handelaars.gif";

  registreer_on.src = "../images/nl/btn_registreer_on.gif";
  registreer_off.src = "../images/nl/btn_registreer.gif";

  myba_on.src = "../images/nl/btn_myba_on.gif";
  myba_off.src = "../images/nl/btn_myba.gif";

  faq_on.src = "../images/nl/btn_faq_on.gif";
  faq_off.src = "../images/nl/btn_faq.gif";
}
/* --------------------- Button rollover  ----------------------- */
function button_on ( imgName )
{
  if ( document.images )
  {
    butOn = eval ( imgName + "_on.src" );
    document[imgName].src = butOn;
  }
}

function button_off ( imgName )
{
  if ( document.images )
  {
    butOff = eval ( imgName + "_off.src" );
    document[imgName].src = butOff;
  }
}
/*--------------------- Progress Bar uploader --------------------------- */

function ProgressBar(form){
 //check file sizes.
 
 if (checkFileSize()) {
   alert('Upload size is over limit. Please check selected files.')
   return false;
 };

  
 //ASP script handling progress window
 var ProgressScript
 ProgressScript = 'progress.asp'
 

 //Progress window parameters
 var pp = 'toolbar=no,location=no,directories=no,status=no,menubar=no'
 pp+=',scrollbars=no,resizable=yes,width=350,height=200';
  
 //1. Get unique UploadID
 var UploadID
 UploadID = Math.round(Math.random() * 0x7FFFFFF0)
  
 //2. Add upload ID to form action URL
 var action = form.action;
 if ('' == action) action = ''+document.location;
 action = AddToQuery(action, 'UploadID', UploadID);
 form.action = action

 //3. Open progress window with the same UploadID
 var ProgressURL
 ProgressURL = ProgressScript + '?UploadID=' + UploadID 

 var v = window.open(ProgressURL,'_blank',pp)
 
 return true;
};

//-->
