	function WebSearch(SearchTxt,SearchEngine) {
		// Utviklet av Fredrik Wikeby - Mimer Internett
		if((SearchTxt=="")||(SearchEngine=="")) {
			if(SearchTxt==""){
				alert("Vennligst fyll inn noe i søkefeltet!");
			}
			else{
				alert("Vennligst velg søkemotor!");	
			}
		}
		else{
			var GoTo
			var Name
			var Search
			Search=""
			var SearchText
			Name=SearchEngine;
			Search=SearchTxt
			SearchText=false;
			SearchOpen=true;
			
			if (Name=="Google") {
				//GoTo="http://www.google.com/search?hl=no&q="+Search+" "; 
				GoTo="http://www.google.no/search?hl=no&q="+encodeURI(Search)+"&meta="; 
				VinduID="Google";
				SearchText=true;
			}
			if (Name=="Lycos") {
				GoTo="http://search.lycos.com/main/default.asp?query="+Search+" "; 
				VinduID="Lycos";
				SearchText=true;
			}
			if (Name=="AltaVista") {
				//GoTo="http://www.altavista.com/cgi-bin/query?sc=on&q="+Search+"&kl=XX&pg=q&search.x=18&search.y=10"; 
				GoTo="http://www.altavista.com/cgi-bin/query?sc=on&q="+encodeURI(Search)+"&kl=XX&pg=q&search.x=18&search.y=10";
				VinduID="AltaVista";
				SearchText=true;
			}
			if (Name=="HotBot") {
				GoTo="http://www.search.hotbot.com/?MT="+Search+"&BT=H&x=38&y=8";
				VinduID="HotBot";
				SearchText=true;
			}
			if (Name=="YaHoo") {
				GoTo="http://search.yahoo.com/bin/search?p="+Search;
				VinduID="YaHoo";
				SearchText=true;
			}
			if (Name=="WebCrawler") {
				GoTo="http://www.webcrawler.com/cgi-bin/WebQuery?searchText="+Search;
				VinduID="WebCrawler";
				SearchText=true;
			}
			if (Name=="InfoSeek") {
				GoTo="http://www.infoseek.com/Titles?qt="+Search+"&col=WW&sv=IS&lk=noframes&nh=10";
				WindoeID="InfoSeek";
				SearchText=true;
			}
			if (Name=="Excite") {
				GoTo="http://search.excite.com/search.gw?search="+Search;
				VinduID="Excite";
				SearchText=true;
			}
			if (Name=="Kvasir") {
				//GoTo="http://search.sol.no/kvasir/search.cgi?language=no&query="+Search+"&mengde=web-no";
				GoTo="http://search.kvasir.no/query?what=no&q="+Search+"";
				VinduID="Kvasir";
				SearchText=true;
			}
			if (Name=="Fast") {
				GoTo="http://www.alltheweb.com/cgi-bin/asearch?type=all&query="+Search;
				VinduID="Fast";
				SearchText=true;
			}
			if (Name=="Mp3") {
				GoTo="http://mp3.lycos.com/cgi-bin/search?form=lycosnet&query="+Search;
				VinduID="Mp3";
				SearchText=true;
			}
			if (Name=="Bilder") {
				//GoTo="http://richmedia.lycos.com/cgi-bin/search?type=all&idx=all&for=picture&query="+Search+"&ff=on";
				GoTo="http://images.google.com/images?q="+Search+"";
				VinduID="Bilder";
				SearchText=true;
			}
			if (Name=="Filmer") {
				//GoTo="http://richmedia.lycos.com/cgi-bin/search?type=all&idx=all&for=movie&query="+Search+"&ff=on";
				GoTo="http://entertainment.lycos.com/movies/movies_disambiguation.asp?radiotype=1&search="+Search+"&x=15&y=5";
				VinduID="Filmer";
				SearchText=true;
			}
			if (Name=="Lyder") {
				GoTo="http://richmedia.lycos.com/cgi-bin/search?type=all&idx=all&for=sound&query="+Search+"&ff=on";
				VinduID="Lyder";
				SearchText=true;
			}
			
			if ((SearchText)&&(SearchOpen)) {
				eval("page" + VinduID + " = window.open(GoTo, '" + VinduID + "', 'toolbar=1, scrollbars=1, location=0, statusbars=1, menubar=1, resizable=1, width=750, height=500');");
			}
			
		}
		}
		