//copyright Ram Softs India
var isNav = (navigator.appName == "Netscape") ? true : false
var isFive=(isNav && (navigator.appVersion.charAt(0) >= 5)) ? true : false
var isMac = (navigator.appVersion.indexOf("Mac") != -1) ? true : false
var isSa = (navigator.userAgent.indexOf("Safari") != -1) ? true : false
var isMacIE = ((navigator.appVersion.indexOf("Mac") != -1)&&(navigator.appVersion.indexOf("MSIE") != -1)) ? true : false
//if(isMac){
//   document.write('</div>')
//  if(isSa)document.write('<div id=rdtse style="position: absolute; left:462px; top:92px; width:263; height:27px;">')
//  else document.write('<div id=rdtse style="position: absolute; left:480px; top:92px; width:263; height:27px;">')
//}
function cSpace(str) {
   var newstr=""
   var isLead=true
   for (var i = 0; i < (str.length); i++) {
      var oneChar=str.charAt(i)
      if(oneChar == " " &&  !isLead) {
         newstr += "+"
      } else if (oneChar == " " &&  isLead) {

      } else {
         newstr += oneChar
         isLead=false
      }
   }
   return newstr
}
function GetGlobalResults(form) {
var search_global = form.global.options[form.global.selectedIndex].value
   if(search_global == "Dictionary")window.location.href="http://www.dictionary.com/cgi-bin/dict.pl?term="+ cSpace(form.gsearch.value)
   if(search_global == "prounce")window.location.href="http://encarta.msn.com/encnet/features/dictionary/DictionaryResults.aspx?search="+ cSpace(form.gsearch.value)
   if(search_global == "Law")window.location.href="http://dictionary.law.com/default2.asp?typed="+ cSpace(form.gsearch.value)
   if(search_global == "Thesaurus")window.location.href="http://www.thesaurus.com/cgi-bin/search?config=roget&words="+ cSpace(form.gsearch.value)
   if(search_global == "Macron")window.location.href="http://www.janes.com/cgi-bin/glossary.cgi?acronym="+ cSpace(form.gsearch.value)
   if(search_global == "Mterms")window.location.href="http://www.janes.com/cgi-bin/glossary.cgi?term="+ cSpace(form.gsearch.value)
   if(search_global == "Webopedia")window.location.href="http://www.webopedia.com/TERM/"+(cSpace(form.gsearch.value)).charAt(0)+"/"+cSpace(form.gsearch.value)+".html"
   if(search_global == "GoogleBlog")window.location.href="http://www.google.com/search?q=site:sonypspgames.tamilar.org "+ cSpace(form.gsearch.value)
   if(search_global == "alta")window.location.href="http://www.altavista.com/cgi-bin/query?q="+ cSpace(form.gsearch.value)
   if(search_global == "AOL")window.location.href="http://aolsearch.aol.com/dirsearch.adp?query="+cSpace(form.gsearch.value)
   if(search_global == "Excite")window.location.href="http://search.excite.com/search.gw?search="+ cSpace(form.gsearch.value)
   if(search_global == "Garden")window.location.href="http://hortiplex.gardenweb.com/plants/nph-ind.cgi?name="+ cSpace(form.gsearch.value)
   if(search_global == "Google")window.location.href="http://www.google.com/search?q="+ cSpace(form.gsearch.value)
   if(search_global == "Overture")window.location.href="http://www.overture.com/d/search/?type=home&Keywords="+ cSpace(form.gsearch.value)
   if(search_global == "GovSites")window.location.href="http://www.firstgov.gov/fedsearch2/index.jsp?db=www&mt=all&fr=0&mw="+ cSpace(form.gsearch.value)
   if(search_global == "LookSmart")window.location.href="http://www.looksmart.com/r_search?look=&key="+ cSpace(form.gsearch.value)
   if(search_global == "Lycos")window.location.href="http://search.lycos.com/default.asp?loc=searchbox&query="+ cSpace(form.gsearch.value)
   if(search_global == "MSN")window.location.href="http://search.msn.com/results.asp?q="+ cSpace(form.gsearch.value)
   if(search_global == "Yahoo")window.location.href="http://search.yahoo.com/bin/search?p="+cSpace(form.gsearch.value)
   if(search_global == "info")window.location.href="http://msxml.infospace.com/_1_2OKRUGY037LOV8__info/dog/results?otmpl=dog/webresults.htm&qkw="+cSpace(form.gsearch.value)
   if(search_global == "invest")window.location.href="http://www.investopedia.com/terms/"+(cSpace(form.gsearch.value)).charAt(0)+"/"+cSpace(form.gsearch.value)+".asp"
   if(search_global == "Dogpile")window.location.href="http://www.dogpile.com/info.dogpl/search/web/"+cSpace(form.gsearch.value)
}
function GetGlobalKey (e,form) {
var keycode;
if(isFive){
   if(e.which != 13) return false
   else {
      if(form.name=="se")GetGlobalResults(form)
      return false
   }
}
if (window.event) keycode = window.event.keyCode;
else if (isNav) keycode = e.which;
if (keycode == 13) {
      if(form.name=="se")GetGlobalResults(form)
   return false
}
}

document.write('<table border="0" cellpadding="17" cellspacing="0"> <td>')
document.write('<form name="se" onSubmit="return GetGlobalKey(event,this.form)">')
document.write('<font face="Trebuchet MS,Arial,Helvetica"><b>Search the Internet or This Blog!</b><br>')
if(isMacIE)document.write('<input type="text" name="gsearch" size="25" style="font-size: 10pt" onKeyPress="if(window.event.keyCode == 13){return GetGlobalKey(event,this.form)}">')
else if(!isNav)document.write('<input type="text" name="gsearch" size="15" style="font-size: 10pt" onKeyPress="if(window.event.keyCode == 13){return GetGlobalKey(event,this.form)}">')
else if(isFive&&isMac)document.write('<input type="text" name="gsearch" size="10" style="font-size: 10pt" onKeyPress="if(event.which == 13){return GetGlobalKey(event,this.form)}">')
else if(isFive)document.write('<input type="text" name="gsearch" size="25" style="font-size: 10pt" onKeyPress="if(event.which == 13){return GetGlobalKey(event,this.form)}">')
else document.write('<small><input type="text" name="gsearch" size="15" style="font size: 10pt" onKeyPress="if(event.which == 13){return GetGlobalKey(event,this.form)}"></small>')
document.write('<br><small><SELECT NAME="global" SIZE="1" style="font-size: 10pt; font family: Arial,Helvetica"></small>')
document.write('<OPTION SELECTED value="GoogleBlog">This Blog')
document.write('<OPTION value="alta">Alta Vista')
document.write('<OPTION value="AOL">AOL')
document.write('<OPTION value="Dogpile">Dogpile')
document.write('<OPTION value="Excite">eXcite')
document.write('<OPTION value="Google">Google')
document.write('<OPTION value="info">InfoSpace')
document.write('<OPTION value="LookSmart">LookSmart')
document.write('<OPTION value="Lycos">Lycos')
document.write('<OPTION value="MSN">MSN')
document.write('<OPTION value="Overture">Overture')
document.write('<OPTION value="Yahoo">Yahoo')
document.write('<OPTION value="GovSites">FirstGov')
document.write('</SELECT>')
if(!isNav||isMac)document.write('<font size="2"><input style="font-size:9pt" type="button" value="Search" onClick="GetGlobalResults(this.form)">')
else document.write('<input style="font size:9pt" type="button" value="Search" onClick="GetGlobalResults(this.form)">')
document.write('</form>')
document.write('</td>')
document.write('</table>')
