function disableEnterKey(e)
{
     var key;     
     if(window.event)
          key = window.event.keyCode; //IE
     else
          key = e.which; //firefox     

     return (key != 13);
}
document.write ('<center>');
document.write ('<form name="form">');
document.write ('<font color="#FF0000">Search:</font><br>');
document.write ('<input type="text" id="ysearch" onKeyPress="return disableEnterKey(event)"><br>');
document.write ('<font color="#0000FF">Category:</font><br>');
document.write ('<select name="select" id="engine"><option value="" selected>..Category</option>');
document.write ('<option value="music">music</option>');
document.write ('<option value="video">video</option>');
document.write ('<option value="images">images</option>');
document.write ('<option value="computer-software">computer software</option>');
document.write ('<option value="mobile-software">mobile software</option>');
document.write ('<option value="ebook">ebook</option>');
document.write ('<option value="document">document</option>');
document.write ('<option value="powerpoint">powerpoint</option>');
document.write ('<option value="excel">excel</option>');
document.write ('<option value="filesharing">filesharing</option>');
document.write ('<option value="torrent">torrent</option>');
document.write ('<option value="socialnetworking">social networking</option>');
document.write ('</select><br>');
document.write ('<input type="button" value="Search" onclick="fin_search()">');
document.write ('</form>');
document.write ('<font>by <a href="http://www.findtoyou.com/" title="Search and Find">findtoyou.com</a></font>');
document.write ('</center>');
var keyword;
document.form.ysearch.value==keyword;
function fin_search()
{
if(document.form.ysearch.value=="")
{
window.alert("Input Your Search");
}
else
{

document.form.ysearch.value==keyword;
if(document.form.engine.value=="music")
{
location.href="http://www.findtoyou.com/music/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="video")
{
location.href="http://www.findtoyou.com/video/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="images")
{
location.href="http://www.findtoyou.com/searchimages/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="computer-software")
{
location.href="http://www.findtoyou.com/computer-software/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="mobile-software")
{
location.href="http://www.findtoyou.com/mobile-software/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="ebook")
{
location.href="http://www.findtoyou.com/ebook/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="document")
{
location.href="http://www.findtoyou.com/document/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="powerpoint")
{
location.href="http://www.findtoyou.com/powerpoint/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="excel")
{
location.href="http://www.findtoyou.com/excel/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="filesharing")
{
location.href="http://www.findtoyou.com/filesharing/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="torrent")
{
location.href="http://www.findtoyou.com/torrent/"+(document.form.ysearch.value)+".html";
}
else if(document.form.engine.value=="socialnetworking")
{
location.href="http://www.findtoyou.com/socialnetworking/"+(document.form.ysearch.value)+".html";
}
else
{
window.alert("Select Your Category");
}

}
return;
}