/*global window db*/

function seturlfieldfree() {
	var tmpstr = $('#query').attr('value');
	if (tmpstr==='') {return;}
	tmpstr = tmpstr.replace(',','');
	tmpstr = tmpstr.replace('\"','');
	tmpstr = tmpstr.replace(' ','+');
	var url='/' + db + '/docsbycodename/search_result' + '?opendocument&fraga='+window.encodeURI(tmpstr);
	window.location=url;
}
