function changeColor(color) {
	document.getElementById('display').style.background = color;
}

function utf8(element1, element2) {
	var xx = "xx"; var yy="yy"; var zz="zz"; var aa = "aa";
	var source = document.getElementById(element1);
	var target = document.getElementById(element2);

	target.value = '';
	xx = source.value+' '; //Add space to avoid overly short forms for Latin-1 letters
	
	if (xx == " "){xx=0}

	//Javascript Unicode Hex conversion of all characters in the line
	yy=escape(xx); yy=yy.replace(/%20/g," "); yy=yy.replace(/%u/g," "); yy=yy.replace(/^\s/,"");

	if(yy.charAt(3)!=" "){var aa=yy.charAt(0)+yy.charAt(1)+yy.charAt(2)+yy.charAt(3);} 
	//4-byte codes
	else {yy=yy.replace(/%/g,"");var aa=yy.charAt(0)+yy.charAt(1)} //2-byte codes

	var decstuff =0; var decimalstuff="zz";
	var text = yy; //get Hex version
	var words = text.split(" ");

	for (var i=0;i<words.length-1;i++){
	decstuff = words[i];
	decstuff=parseInt(words[i],16);

	//Next give version to be cut and pasted into web pages
	decstuff="&#"+decstuff+";"; if (decstuff == "&#NaN;"){decstuff=" "}
	target.value += decstuff;
	}
}

function goThis(url) {
	/*if ( safari_browser ) {
		target.location.href = url;
	} else {
		target.location.replace(url);
	}*/
	location.href = url;
}

function bookmark(title, url){
	if (document.all) {
		window.external.AddFavorite(url, title);
	} else if (window.sidebar) {
		window.sidebar.addPanel(title, url, "");
	}
}