function RetreiveData()
{
var bericht = "S.v.p. de volgende velden invullen:\n\n";
var l_Msg = bericht.length;

if (document.loaddata.id_aantal_pc.value == 0 && document.loaddata.id_aantal_server.value == 0) {

bericht += " - geef het het aantal PC's of servers met bijbehorende back-up ruimte op"; 

} else {

	if (document.loaddata.id_aantal_pc.value != 0 && document.loaddata.id_opslag_computer.value == 0) {

	bericht += " - geef de totale back-up ruimte voor de PC/laptops op"; 
		
	}
	else if (document.loaddata.id_aantal_server.value != 0 && document.loaddata.id_opslag_server.value == 0) {
			// something else is wrong
		bericht += " - geef de totale back-up ruimte voor de servers op"; 
		
	}
}
	
if (bericht.length == l_Msg){

    CallJS('Demo()');

    }
else{

     alert(bericht);

    }
	
}

function RetreiveDataPrive()
{
var bericht = "S.v.p. de volgende velden invullen:\n\n";
var l_Msg = bericht.length;

if (document.loaddata.id_aantal_pc.value == 0) {

bericht += " - geef het het aantal PC's met bijbehorende back-up ruimte op"; 

} else {

	if (document.loaddata.id_aantal_pc.value != 0 && document.loaddata.id_opslag_computer.value == 0) {

	bericht += " - geef de totale back-up ruimte voor de PC's / laptops op"; 
		
	}
}
	
if (bericht.length == l_Msg){

    CallJS('Demo()');

    }
else{

     alert(bericht);

    }
	
}

function SubF(form)
	{
eval('document.' + form + '.submit()'); 
	}

function submitform()
	{
	document.loaddata.submit();
	}
	
function sortform()
	{
	document.sort_loaddata.submit();
	}


var duration=3 // Specify duration of progress bar in seconds
var _progressWidth = 30;	// Display width of progress bar.

var _progressBar = "|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
var _progressEnd = 5;
var _progressAt = 0;


// Create and display the progress dialog.
// end: The number of steps to completion
function ProgressCreate(end) {
	// Initialize state variables
	_progressEnd = end;
	_progressAt = 0;

	// Move layer to center of window to show
	if (document.all) {	// Internet Explorer
		progress.className = 'show';
		ProcesKaderSub.className = 'show';
		progress.style.left = (document.body.clientWidth/2) - (progress.offsetWidth/2);
		progress.style.top = document.body.scrollTop+(document.body.clientHeight/2) - (progress.offsetHeight/2);
	} else if (document.layers) {	// Netscape
		document.progress.visibility = true;
		
		document.SearchResults.visibility = true;
		document.progress.left = (window.innerWidth/2) - 100+"px";
		document.progress.top = pageYOffset+(window.innerHeight/2) - 40+"px";
	} else if (document.getElementById) {	// Netscape 6+
		document.getElementById("progress").className = 'show';
		document.getElementById("progress").style.left = (window.innerWidth/2)- 100+"px";
		document.getElementById("progress").style.top = pageYOffset+(window.innerHeight/2) - 40+"px";
	}

	ProgressUpdate();	// Initialize bar
}

// Hide the progress layer
function ProgressDestroy() {
	// Move off screen to hide
	if (document.all) {	// Internet Explorer
		progress.className = 'hide';
		ProcesKaderSub.className = 'hide';
	} else if (document.layers) {	// Netscape
		document.progress.visibility = false;
	} else if (document.getElementById) {	// Netscape 6+
		document.getElementById("progress").className = 'hide';
	}
	  
}

// Increment the progress dialog one step
function ProgressStepIt() {
	_progressAt++;
	if(_progressAt > _progressEnd) _progressAt = _progressAt % _progressEnd;
	ProgressUpdate();
}

// Update the progress dialog with the current state
function ProgressUpdate() {
	var n = (_progressWidth / _progressEnd) * _progressAt;
	if (document.all) {	// Internet Explorer
		var bar = dialog.bar;
 	} else if (document.layers) {	// Netscape
		var bar = document.layers["progress"].document.forms["dialog"].bar;
		n = n * 0.55;	// characters are larger
	} else if (document.getElementById){
                var bar=document.getElementById("bar")
        }
	var temp = _progressBar.substring(0, n);
	bar.value = temp;
	
	
}

// Demonstrate a use of the progress dialog.
function Demo() {
	ProgressCreate(10);
	window.setTimeout("Click()", 100);
	
	
}

function Click() {
	if(_progressAt >= _progressEnd) {
		ProgressDestroy();
		return;
	}
	ProgressStepIt();
	window.setTimeout("Click()", (duration-1)*3000/10);
}

function CallJS(jsStr) { //v2.0
setTimeout("submitform()", 3000);
return eval(jsStr)

}

