А если так?
function KSearch(sGo)
{
var KWeb,KWebindex,Ktypeindex,gsearchForm,sURL;
KWeb=document.getElementById('KSWeb');
KWebindex=KWeb.selectedIndex;
gsearchtext=document.getElementById('searchText');
sImage=document.getElementById('sIMG');
switch (KWeb.value)
{
case "Google":
if(Ktypeindex){
sURL="http://www.google.com/images?q=";
}else{
sURL="http://www.google.com/search?num=100&q=";
}
sImage.src="css/fonts/google.png"
break;
case "Yandex":
if(Ktypeindex){
sURL="https://yandex.ru/images/search?clid=2295666&text=";
}else{
sURL="https://yandex.ru/search/?clid=2295666&text=";
}
sImage.src="css/fonts/Yandex.png"
break;
case "Bing":
if(Ktypeindex){
sURL="http://www.bing.com/images/search?q=";
}else{
sURL="http://www.bing.com/search?q=";
}
sImage.src="css/fonts/bing.png"
break;
case "Wikipedia":
sURL="http://ru.wikipedia.org/w/index.php?title=Special%3ASearch&fulltext=Search&search=";
sImage.src="css/fonts/Wikipedia.png"
break;
case "youtube":
sURL="http://www.youtube.com/results?search_query=";
sImage.src="css/fonts/youtube.png"
break;
case "duckduckgo":
sURL="http://duckduckgo.com/?q=";
sImage.src="css/fonts/DC.png"
break;
default:
sURL="https://www.google.com/search?btnI=1&q=";
sImage.src="css/fonts/google.png"
}
if (sGo)
{
sURL=sURL+gsearchtext.value;
//alert(sURL)
window.location=sURL;
}
}
$( function() {
$( '#KSWeb' ).dropdown( {
gutter : 5,
stack : false,
slidingIn : 100
} );
});