function replacestr(str,source,dest)
{
	result='';
 	for (var i = 0;i<str.length; i++)
	{
 		ch = str.charAt(i);
 		if (source==ch) 
		{
 			result = result+dest;
		}
 		else
		{
 			result = result+ch;
		}
 	}
	return result;
}

function seturlfieldfree()
{
	tmpstr = replacestr(document._search.queryfield.value,',','');
 	if (tmpstr=='') { return; }
 	tmpstr2 = replacestr(tmpstr,'\"','');
 	str = replacestr(tmpstr2,' ','+');
 	tmp='/' + db +  '/docsbycodename/soekresultat?opendocument&fraga='+escape(str);
 	window.location=tmp;
}
