function stripslashes(str)
{
	str=str.replace(/\\'/g,'\'');
	str=str.replace(/\\"/g,'"');
	str=str.replace(/\\\\/g,'\\');
	str=str.replace(/\\0/g,'\0');
	return str;
}
function showSymbols(symbols)
{
	var symbolContainer	= document.getElementById('symbolContainer');
	var symbolSwitch	= document.getElementById('symbolSwitch');
	
	if (symbols == 'all')
	{
		containerContent = allSymbols;
		switchContent = allSymbolsSwitch;
	}
	else
	{
		containerContent = commonSymbols;
		switchContent = commonSymbolsSwitch;
	}
	
	symbolContainer.innerHTML = containerContent;
	symbolSwitch.innerHTML	= switchContent;
}
function searchTypeSwitch(type)
{
	this.href = '';
	var quick_search	= document.getElementById('quick_search');
	var font_search		= document.getElementById('font_search');
	var pack_search		= document.getElementById('pack_search');
	
	if (type == 'font')
	{
		quick_search.style.display	= 'none';
		font_search.style.display	= '';
		pack_search.style.display	= 'none';
	}
	else if (type == 'pack')
	{
		quick_search.style.display	= 'none';
		font_search.style.display	= 'none';
		pack_search.style.display	= '';
	}
	else
	{
		quick_search.style.display	= '';
		font_search.style.display	= 'none';
		pack_search.style.display	= 'none';
	}
}
function reloadImg(container,img)
{
	document[container].src=img + '?' + Math.random();
}