function setVisibility(objectID, state){
	var object = document.getElementById(objectID);
	object.style.visibility = state;
}
function objectsFloat() {
	for (var xx = 1 ; xx < (numObjects + 1) ; xx++ ) {
		var objectID = 'letters' + xx;
		var object = document.getElementById(objectID);
		//alert(object);
		object.style.top = Ypos + Math.cos((5*Math.sin(nextStep/(30+xx)))+xx*70)*tall*(Math.sin(10+nextStep/10)+0.2)*Math.cos((nextStep+ xx*55)/20);
		object.style.left = Xpos + Math.sin((5*Math.sin(nextStep/30))+xx*70)*wide*(Math.sin(10+nextStep/(10+xx))+0.2)*Math.cos((nextStep+ xx*55)/20);
	}
	nextStep += step;
	setTimeout('objectsFloat()', delay) ;
}

function openpopup(afbeelding_groot_id){
//hieronder komt pagina in popup-venster LET OP:de variabele artikelid komt er later bij 
  var popurl="popup.php?groot_id=" ;
  var w =200;
  var h = 200;
  var winl = 100;
  var wint = 25;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
  winpops=window.open(popurl+afbeelding_groot_id ,"", winprops)
}
function Confirm(i){
  var conmessage = new Array(3)
  conmessage[0] = "Weet u zeker dat u de bestelling wilt uitvoeren?";
  conmessage[1] = "Weet je zeker dat je dit wilt wissen?";
  conmessage[2] = "Wil je deze bestelling verwijderen?";
  conmessage[3] = "Weet je zeker dat je deze categorie wilt wissen?";
  var DoConfirm = confirm(conmessage[i]);
  if(DoConfirm){
    return true;
  }else{
    return false;
  }
}
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 4;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',location,toolbar,status,scrollbars,menubar,resizable,'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

