NS = (document.layers) ? 1 : 0;
IE = (document.all) ? 1 : 0;


function search(){
	if (document.all) document.location="zoeken01c5.html?search_for="+searchform.search_for.value+"&action=zoeken"
	else alert(get_i18n_text(1,"Dit onderdeel werkt alleen in InternetExplorer 4 of hoger!"))
}



function switchBoven(id, mycolor){
	if (document.all){
	_tmp=eval("document.all.boven"+id)
	_tmp.style.color=mycolor
	}
}

function openwindow(ID,VN) {
	window.open(ID,VN,"scrollbars=yes,resizable=yes,width=780,height=480");
}

function popupattach (strURL) {
	window.open (strURL,'att',"scrollbars=no,resize=no,width=640,height=220");
}

function popup(filename, fileid, width, height, scrollbars, resizable, menubar, toolbar, status, location){
	if (!fileid || fileid=="")			fileid="pageprocessor";
	if (!filename || filename=="")		filename="";
	if (!width || width=="")			width="20";
	if (!height || height=="")			height="20";
	if (!scrollbars || scrollbars=="")	scrollbars="no"
	if (!resizable || resizable=="")	resizable="no"
	if (!menubar || menubar=="")		menubar="no"
	if (!toolbar || toolbar=="")		toolbar="no"
	if (!status || status=="")			status="no"
	if (!location || location=="")		location="no"
	var args = "height=" + height + ", width=" + width + ", scrollbars=" + scrollbars + ", resizable=" + resizable +  ", menubar=" + menubar + ", toolbar=" +toolbar + ", status=" + status + " ,location=" + location;
	window.open(filename, fileid, args);
//	setTimeout((window.open(filename, fileid, args)), 10000);
}

function toon_afbeelding(afbeelding){
	afbeelding.src='images/not_available.gif'
}

function toon_afbeelding_titel(afbeelding) {
	afbeelding.src='images/dot_clear.gif'
}

function submit_poll(formObj,PollID,MaxWaarden){
	var myNum;
	myNum = 1;	//Defaultinstelling
	for (var i=0; i < formObj.myStem.length; i++) {
		if (formObj.myStem[i].checked) {
			myNum=formObj.myStem[i].value;//Er is toch een andere optie gekozen
		}
	}
	if (myNum) window.open( "poll/poll5445.html?id=" + PollID + "&pval="+MaxWaarden+"&myStem="+myNum,"poll"+PollID,"scrollbars=yes,resizable=yes,width=550,height=300");
}

/**
 * 	@function		WizardPopup
 *	@description	
 *	@input			whatWizard : Naam van de te gebruiken wizard
 *	@output 		none.
 */
function WizardPopup(whatWizard, width, height) {
	if(whatWizard) {

		if(!width) width	= 670;	//Default
		if(!height) height	= 450;	//Default

//		window.open ('/wizard/wizard.php?whatWizard='+whatWizard, 'Wizard', "scrollbars=no,resize=no,width="+width+",height="+height );
		window.open ('p3203d.html?PPID=100', 'Wizard', "scrollbars=no,resize=no,width="+width+",height="+height );

	}//End if
}//End function