function setStatus(stat, somVar)
{
	if (!somVar) somVar = 0;
	var statMsg;
    switch (stat)
    {
        case 'search_start':
            Element.show('progressBar');
            statMsg = 'Search in progress...'; break;
        case 'search_complete':
            Element.hide('progressBar');
            statMsg = 'Search complete'; break;
		case 'not_found':
		     Element.hide('progressBar');
		     statMsg = 'No results found...'; break;
		case 'found_count':
		      Element.hide('progressBar');
		     statMsg = 'Found ' + somVar + ' result(s).'; break;
    }
	Element.hide('statusDiv');
	$('statusDiv').innerHTML = statMsg;
	Element.show('statusDiv');
	//setTimeout("Element.hide('statusDiv')", 10000);
}
function hideStatus()
{
	Element.hide('statusDiv');
}
function go(url)
{
	if (url)
		document.location.href = url;
}
/*function listen(track_code)
{
	if (!track_code) return false;
	stopSearch();
	setTimeout("go('"+ SiteURL + "/listen/" + track_code + "')");
}*/

function updateById(id, value)
{
    $(id).value = value;
    $(id).update();
}