// JavaScript Document
function VOKA_search(url, scope, target, host)
{
	//url = url.replace(/%/gi, "%25");
	url = url.replace(/ /gi, "%20");
	/*url = url.replace(/;/gi, "%3B");
	host = host.replace(///gi, "%2F");
	host = host.replace(/?/gi, "%3F");
	host = host.replace(/:/gi, "%3A");
	/*url = url.replace(/@/gi, "%40");
	url = url.replace(/=/gi, "%3D");*/
	//url = url.replace(/&/gi, "%26");
	/*url = url.replace(/</gi, "%3C");
	url = url.replace(/>/gi, "%3E");
	url = url.replace(/"/gi, "%22");
	url = url.replace(/#/gi, "%23");
	url = url.replace(/{/gi, "%7B");
	url = url.replace(/}/gi, "%7D");
	url = url.replace(/|/gi, "%7C");
	//url = url.replace(/\\/gi, "%5C");
	url = url.replace(/^/gi, "%5E");
	url = url.replace(/~/gi, "%7E");
	url = url.replace(/[/gi, "%5B");
	url = url.replace(/]/gi, "%5D");
	url = url.replace(/`/gi, "%60");*/

	if ( scope == "voka.be" )
	{
		//alert ( target + "?k=" + url + "&s=All%20Sites" );
		window.location = target + "?k=" + url + "&cs=This%20Site&u=http://www.voka.be"; // 
	}
	else
	{
		//alert ( target + "?k=" + url + "&cs=This%20Site&u=" + host ); //  + "&rs=" + scope
		window.location = target + "?k=" + url + "&cs=This%20Site&u=" + host;	
	}
}

function VOKASearchKey(event1, url, scope, target, host) {     
	var kCode = String.fromCharCode(event1.keyCode);
	if(kCode == "\n" || kCode == "\r"){   
		VOKA_search(url, scope, target, host)
		return false;
	}                    
}
