﻿function HizliArama() {
  if (document.getElementById('HizliAraText').value=='Aranacak bir kelime girin') {
    alert('Arama boş geçilemez...');
  }
  else {
    location.href='/emarket/ProductSearch.aspx?value='+document.getElementById('HizliAraText').value;
  }
}


function fnTrapKDunyaX (event) {
  if (document.all) {
    if (event.keyCode == 13){
      event.returnValue=false;
      event.cancel = true;
      location.href='/emarket/ProductSearch.aspx?value='+document.getElementById('HizliAraText').value;
    }
  }
  else if (document.getElementById){
    if (event.which == 13){
      event.returnValue=false;
      event.cancel = true;
      location.href='/emarket/ProductSearch.aspx?value='+document.getElementById('HizliAraText').value;
    }
  }
  else if(document.layers){
    if(event.which == 13){
      event.returnValue=false;
      event.cancel = true;
      location.href='/emarket/ProductSearch.aspx?value='+document.getElementById('HizliAraText').value;
    }
  }
}

document.write('<link rel="shortcut icon" href="/uploads/Search/favicon.ico" type="image/x-icon"><link rel="icon" href="/uploads/Search/favicon.ico" type="image/x-icon">');
document.write('<link href="/Uploads/Search/menu_search2.css" rel="stylesheet" type="text/css">');


document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><img src="/uploads/Search/menu_sol.gif" /></td><td background="/uploads/Search/menu_bg.gif"><table border="0"><tr align="center" valign="middle"><td class="style1">Ne Aramıştınız?&nbsp;</td><td><input class="wickEnabled" name="HizliAraText" type="text" id="HizliAraText" title="Ürün kodu veya ürün adı ile arayabilirsniz." onkeydown="fnTrapKDunyaX(event);" onclick="javascript:this.value=\'\'" onkeypress="if(event.keycode==13){HizliArama();}" style="font-size:16px;font-family:Tahoma;font-weight:bold;border-style:none;" size="45" ></td><td align="center"><a href="#"><img onClick="HizliArama();" src="/Uploads/Search/ara.gif" style="border-style: solid; border-width: 0" /></a></td><td align="right"><a href="/emarket/productsearch.aspx" class="style2" style="text-decoration:underline=none" >Gelişmiş Arama</a></td></tr></table></td><td><img src="/uploads/Search/menu_sag.gif" /></td></tr></table>');