function leta(){
	strang='http://'
	sc='&e=lycos&e=infoseek&e=altavista&e=excite&e=yahoo';
	zw='&mod=modules&flt=yes&tmpl=templ2b.html&sim_srch=0';
	fraga=document.getElementById("strang").value;
	motor=document.getElementById("m").value;
	if(motor.indexOf('supercrawler')>0)
		strang+=motor+fraga+sc;
	else if(motor.indexOf('zworks')>0)
		strang+=motor+fraga+zw;
	else if(motor.indexOf('a9')>=0 || motor.indexOf('google')>=0 || motor.indexOf('vivismo')>=0){
		fraga=konvertera(fraga);
		strang+=motor+fraga;
	}
	else
		strang+=motor+fraga;
	window.location=strang;
}
function konvertera(instr){
	while(instr.indexOf('Ö')>=0){
		pos=instr.indexOf('Ö')
		instr=instr.slice(0,pos)+'%C3%96'+instr.slice(pos+1);
	}
	while(instr.indexOf('ö')>=0){
		pos=instr.indexOf('ö')
		instr=instr.slice(0,pos)+'%C3%B6'+instr.slice(pos+1);
	}
	while(instr.indexOf('Ä')>=0){
		pos=instr.indexOf('Ä')
		instr=instr.slice(0,pos)+'%C3%84'+instr.slice(pos+1);
	}
	while(instr.indexOf('ä')>=0){
		pos=instr.indexOf('ä')
		instr=instr.slice(0,pos)+'%C3%A4'+instr.slice(pos+1);
	}
	while(instr.indexOf('Å')>=0){
		pos=instr.indexOf('Å')
		instr=instr.slice(0,pos)+'%C3%85'+instr.slice(pos+1);
	}
	while(instr.indexOf('å')>=0){
		pos=instr.indexOf('å')
		instr=instr.slice(0,pos)+'%C3%A5'+instr.slice(pos+1);
	}
	return(instr);
}
