d=document;
si = "0";

function n(naam)
{
	sd=new Date();
	y='location=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes,menubar=yes,width='

	if (si==0){

		if (parseInt(navigator.appVersion)>=4){
			window.open(naam,sd.getTime(),y+((screen.width/100)*80)+",height="+(((screen.height/100)*85)-200)+",left="+((screen.width/100)*9)+",top="+((screen.height/100)*14));}
		else {
			window.open(naam,sd.getTime(),y+"600,height=280");
		}
	}
}

function wijz()
{
	if(d.searchforit.service.options[d.searchforit.service.selectedIndex]);
}

function doZoek()
{
	words=d.searchforit.query.value;
	searchitems ="";

	for(var t=1;t<=words.length;t++) {
		if(words.substring(t-1,t)==" ") {
			searchitems+="+";
		} else { 
			if(words.substring(t-1,t)=="+") {
				searchitems+="%2B"; 
			} else {
				searchitems+=words.substring(t-1,t);
			}
		}
	}
	index=d.searchforit.service.selectedIndex;

	site=d.searchforit.service.options[index].value;
	site+=searchitems;

	if(site.indexOf("bestevanhetnet") > -1)
	{
		this.location.href = site;
	}
	else
	{
		if(searchitems==""||searchitems==null)
		{
			alert("\nU heeft niks ingevuld");
			d.searchforit.query.focus();
		} else {
		n(site);
		}
	}
}

