	var languageVal;
	function check(m_lValue)
	{
		languageVal=m_lValue;
	}
	
	function isBlankField(field)
	{
	  var charCount=0;
	  for (var i=0;i<field.value.length;i++)
	  {
	    if (field.value.charAt(i)==" ")
	       charCount++;
	  }
	  if (charCount==field.value.length)
	     return true;
	  else return false;
	}
	
	function findServer()
	{
		var status;
		var i;
		var URL;
		var QUERY;
		status=false;
			
			if (isBlankField(window.document.SearchForm.query)==true)
			{
				alert("Please enter your Query");
				return false;
			}
			else
			{
				QUERY=window.document.SearchForm.query.value;
			}
		
		for(i=0 ; i<window.document.SearchForm.browser.length;i++)
		{
			if (window.document.SearchForm.browser[i].checked==true)
			{
				status=true;
				break;					
			}
			
		}
		
		
		if (status==false)
		{
			alert("Select language to translate into");
			return false;
		}
		else
		{
			switch(i) 
			{
			    case 0 :
					URL="http://online.ectaco.com/main.jsp%3bjsessionid=bc307790d7d1422f6553?do=e-services-dictionaries-word_translate1&direction=1&status=translate&lang1=23&lang2=ar&source="+QUERY;
			        break;
					case 1 :
					URL="http://online.ectaco.co.uk/main.jsp?do=e-services-dictionaries-word_translate1&direction=1&status=translate&lang1=23&lang2=bg&source="+QUERY;
			        break;
			    case 2 :
					URL="http://www.mandarintools.com/cgi-bin/wordlook.pl?word="+QUERY+"&searchtype=chinese&where=whole&audio=on";
			        break;
			    case 3 :
					URL="http://www.slovnik.cz/bin/mld.pl?vcb="+QUERY+"&dictdir=encz.en&lines=20&hptxt=0&js=1&lang=0";
			        break;
			    case 4 :
					URL="http://dictionaries.travlang.com/DutchEnglish/dict.cgi?query="+QUERY+"&max=50";
			        break;
			    case 5 :
					URL="http://dictionary.cambridge.org/define.asp?key="+QUERY+"*1+0&dict=A";
			        break;
					case 6 :
					URL="http://wwwtios.cs.utwente.nl/traduk/EN-EO/Traduku/?"+QUERY;
			        break;
					case 7 :
					URL="http://www.ibs.ee/dict/translate.cgi?word="+QUERY+"&language=English";
			        break;
					case 8 :
					URL="http://www.ariadic.com/";
			        break;
					case 9 :
					URL="http://212.213.217.194:8081/?word="+QUERY;
			        break;
			    case 10 :
					URL="http://www.wordreference.com/fr/translation.asp?enfr="+QUERY+"&v=b";
			        break;
			    case 11 :
					URL="http://dict.tu-chemnitz.de/dings.cgi?lang=en&service=deen&opterrors=0&optpro=0&query="+QUERY+"&iservice=&comment=&email=";
			        break;
			    case 12 :
					URL="http://en.bab.la/dictionary/hindi-english/"+QUERY+".html";
			        break;
					case 13 :
					URL="http://dict.sztaki.hu/dict_search.php?L=ENG%3AHUN%3AEngHunDict&O=ENG&flash=&E=1&sid=701e949c317f0861344c687b5b79fe2b&in_form=1&W="+QUERY+"&M=2&P=0&C=1&A=0&T=1&F=0";
			        break;					
			    case 14 :
					URL="http://www.kamus.net/result.php?w=en-usa&q="+QUERY+"&submit=Search&e=0";
			        break;
					case 15 :
					URL="http://www.wordreference.com/it/translation.asp?enit="+QUERY+"&v=b";
			        break;
			    case 16 :
					URL="http://dictionary.goo.ne.jp/search.php?MT="+QUERY;
			        break;
			    case 17 :
					URL="http://www.zkorean.com/dictionary/search_results?word="+QUERY;
			        break;
					case 18 :
					URL="http://www.bolor-toli.com/";
			        break;
					case 19 :
					URL="http://www.tritrans.net/";
			        break;
					case 20 :
					URL="http://www.babylon.com/define/114/English-Persian-Dictionary.html"
			        break;
			    case 21 :
					URL="http://akson.sgh.waw.pl/script/anthon/search?nazwa="+QUERY;
			        break;			        			        			        
			    case 22 :
					URL="http://www.lookwayup.com/free/EnglishPortugueseDictionary.htm";
					    break;
					case 23 :
					URL="http://en.bab.la/dictionary/english-romanian/"+QUERY;
			        break;
			    case 24 :
					URL="http://sinyagin.pp.ru/dict?English="+QUERY+"&Encoding=1251";
			        break;
					case 25 :
					URL="http://www.krstarica.com/recnik/index.php?u="+QUERY;
			        break;
					case 26 :
					URL="http://www.cassovia.sk/dict.php3?fr=an&sl="+QUERY;
			        break;
					case 27 :
					URL="http://www.spanishdict.com/translate/"+QUERY;
			        break;
					case 28 :
					URL="http://www.foreignword.com/cgi-bin/engtag.cgi?language=engtag&termbox="+QUERY;
			        break;
					case 29 :
					URL="http://www.thai2english.com/dictionary/"+QUERY+".html";
			        break;
					case 30 :
					URL="http://www.seslisozluk.com/?word="+QUERY;
			        break;
					case 31 :
					URL="http://lingresua.tripod.com/cgi-bin/onlinedic.pl?EnUaBtn="+QUERY;
			        break;
					case 32 :
					URL="http://www.urduword.com/cgi-bin_dictionary/standard_search.cgi?English="+QUERY+"&Cobrand=";
			        break;
					case 33 :
					URL="http://vdict.com/"+QUERY+",1,0,0.html";
			        break;
					case 34 :
					URL="http://www.ectaco.com/online/diction.php3?lang=15&q=3&refid=717&rfr_id=186&rqt_id=338924&pagelang=23&word="+QUERY+"&direction=1";
			        break;
							
			}
			
			// leftposition = (screen.width)?(screen.width-w)/2:100;
			// topposition = (screen.height)?(screen.height-h)/2:100;
			newwin = window.open(URL, 'dictwin', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=770,height=500');
			newwin.focus();
			return false;

		}
		return false;
	}

