function handleError() {
	return true;
}

// Parse all query parameters into variables
query = document.location.search;
tmp = query.substr(1);
keypairs = tmp.split("&");
for (i in keypairs) {
 parts = keypairs[i].split("=");
 if (parts.length == 2) {
   oldhandler = window.onerror;
   window.onerror = handleError;
   eval("var " + parts[0] + ' = "' + parts[1] + '";');
   window.onerror = oldhandler;
 }
}

function ucwords(thestring) {
	thestrings = thestring.split(' ');
	for (i in thestrings) {
		thecap = thestrings[i].substr(0,1)
		thestrings[i] = thecap.toUpperCase() + thestrings[i].substr(1);
	}
	return thestrings.join(' ');
}

if (typeof title != 'undefined') title = ucwords(unescape(title));
if (typeof artist != 'undefined') artist = ucwords(unescape(artist));

