function openWindow(page_identifier, page_id, extra){
	window.open('/nextgen/popup.php3?page_identifier=' + page_identifier + '&page_id=' + page_id + '&extra_var=' + extra + '&' + '<?echo SID?>' + '&language_user=<? echo "$language_user&affiliate_id=$_SESSION[affiliate_id_check]";?>','newWindow','directories=no,menubar=no,resizable=yes,status=no,toolbar=no,height=350,width=650,screenX=10,screenY=10,scrollbars');
	}
function printWindow(query, keyword){
	window.open('/?printpage=on&keyword=' + keyword + '&' + query ,'printWindow','directories=no,menubar=no,resizable=yes,status=no,toolbar=no,height=350,width=650,screenX=10,screenY=10,scrollbars');
	}
function view(url){
	window.open(url + '/?printpage=on&&print_function=no'  ,'printWindow','directories=no,menubar=no,resizable=yes,status=no,toolbar=no,height=350,width=650,screenX=10,screenY=10,scrollbars');
	}
function sendaFriend(url){
	window.open('/nextgen/titaf.php3?url=' + url + '&language=<? echo $project_language;?>' ,'printWindow','directories=no,menubar=no,resizable=yes,status=no,toolbar=no,height=350,width=650,screenX=10,screenY=10,scrollbars');
	}
function ingredient(id){
	window.open('/nextgen/ingredient_popup.php3?ingredient_id=' + id ,'printWindow','directories=no,menubar=no,resizable=yes,status=no,toolbar=no,height=350,width=650,screenX=10,screenY=10,scrollbars');
	}
function bbbb() {
window.open('/corporate/fitnessnet/bbbb/index.php3?language=nl','bbbb','directories=no,menubar=no,resizable=yes,status=no,toolbar=yes,height=500,width=750,screenX=10,screenY=10,scrollbars') }
;
function go1() {
	  	if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
			location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value
			}
		}
function go2(){
			if (document.selecter2.select2.options[document.selecter2.select2.selectedIndex].value != "none") {
			location = document.selecter2.select2.options[document.selecter2.select2.selectedIndex].value
			}
		}
function go3(){
			if (document.selecter3.select3.options[document.selecter3.select3.selectedIndex].value != "none") {
			location = document.selecter3.select3.options[document.selecter3.select3.selectedIndex].value
			}
		}
function go4(){
			if (document.selecter4.select4.options[document.selecter4.select4.selectedIndex].value != "none") {
			location = document.selecter4.select4.options[document.selecter4.select4.selectedIndex].value
			}
		}
function go5(){
			if (document.selecter5.select5.options[document.selecter5.select5.selectedIndex].value != "none") {
			location = document.selecter5.select5.options[document.selecter5.select5.selectedIndex].value
			}
		}
function go6(){
			if (document.selecter6.select6.options[document.selecter6.select6.selectedIndex].value != "none") {
			location = document.selecter6.select6.options[document.selecter6.select6.selectedIndex].value
			}
		}
function go7(){
			if (document.selecter7.select7.options[document.selecter7.select7.selectedIndex].value != "none") {
			location = document.selecter7.select7.options[document.selecter7.select7.selectedIndex].value
			}
		}
window.focus();


function hideAd(divId) 
{ if (document.layers) document.layers[divId].visibility = 'hide';
  else if (document.all) document.all[divId].style.visibility = 'hidden';
  else if (document.getElementById) document.getElementById(divId).style.visibility = 'hidden';
}

function adDown(divId) 
{ state=typeof topPos;
  if(state=='undefined') topPos=-400;
  if(topPos < 40)
  { topPos+=5;
	   if (document.layers) document.layers[divId].top = topPos;
    else if (document.all) document.all[divId].style.top = topPos;
    else if (document.getElementById) document.getElementById(divId).style.top = topPos;	
    
    setTimeout("adDown('pop');",5);
	 }
}
function donatie(){	window.open('https://www.allegoededoelen.nl/externalMod.php?gd=747','donatie','directories=no,menubar=no,resizable=yes,status=no,toolbar=no,height=500,width=640,screenX=10,screenY=10,scrollbars');}



function showall() { 

	state = 'block';
	state2 = 'block';

	if (document.all) { //IS IE 4 or 5 (or 6 beta) 


		eval( "document.all.omschrijving.style.display = state"); 
		eval( "document.all.ingredienten.style.display = state2"); 
		eval( "document.all.gebruik.style.display = state2"); 

	}

	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers['omschrijving'].display = state; 
		document.layers['ingredienten'].display = state2; 
		document.layers['gebruik'].display = state2; 
	} 

	if (document.getElementById &&!document.all) { 
		hza = document.getElementById('omschrijving'); 
		hza.style.display = state; 

		hza2 = document.getElementById('ingredienten'); 
		hza2.style.display = state2; 

		hza3 = document.getElementById('gebruik'); 
		hza3.style.display = state2; 

	} 

}
function showhide1() { 

	state = 'block';
	state2 = 'none';

	if (document.all) { //IS IE 4 or 5 (or 6 beta) 


		eval( "document.all.omschrijving.style.display = state"); 
		eval( "document.all.ingredienten.style.display = state2"); 
		eval( "document.all.gebruik.style.display = state2"); 

	}

	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers['omschrijving'].display = state; 
		document.layers['ingredienten'].display = state2; 
		document.layers['gebruik'].display = state2; 
	} 

	if (document.getElementById &&!document.all) { 
		hza = document.getElementById('omschrijving'); 
		hza.style.display = state; 

		hza2 = document.getElementById('ingredienten'); 
		hza2.style.display = state2; 

		hza3 = document.getElementById('gebruik'); 
		hza3.style.display = state2; 

	} 


}


function showhide2() { 

	state = 'block';
	state2 = 'none';

	if (document.all) { //IS IE 4 or 5 (or 6 beta) 

		eval( "document.all.omschrijving.style.display = state2"); 
		eval( "document.all.ingredienten.style.display = state"); 
		eval( "document.all.gebruik.style.display = state2"); 

	}

	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers['omschrijving'].display = state2; 
		document.layers['ingredienten'].display = state; 
		document.layers['gebruik'].display = state2; 
	} 

	if (document.getElementById &&!document.all) { 
		hza = document.getElementById('omschrijving'); 
		hza.style.display = state2; 

		hza2 = document.getElementById('ingredienten'); 
		hza2.style.display = state; 

		hza3 = document.getElementById('gebruik'); 
		hza3.style.display = state2; 

	} 


}

function showhide3() { 

	state = 'block';
	state2 = 'none';

	if (document.all) { //IS IE 4 or 5 (or 6 beta) 

		eval( "document.all.omschrijving.style.display = state2"); 
		eval( "document.all.ingredienten.style.display = state2"); 
		eval( "document.all.gebruik.style.display = state"); 
	}

	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers['omschrijving'].display = state2; 
		document.layers['ingredienten'].display = state2; 
		document.layers['gebruik'].display = state; 
	} 

	if (document.getElementById &&!document.all) { 
		hza = document.getElementById('omschrijving'); 
		hza.style.display = state2; 

		hza2 = document.getElementById('ingredienten'); 
		hza2.style.display = state2; 

		hza3 = document.getElementById('gebruik'); 
		hza3.style.display = state; 
	} 
}
