var IE = (document.all) ? true : false;

function addToFavorites()
{
	if (IE)
		window.external.addFavorite("http://phlab.net", "phlab.net");
	else
		alert("This feature is available only in Internet Explorer");
} 

function getVal(num)
{
	return num/4*2;
}

function constructContact()
{
var result = String.fromCharCode(0x6D);
result += 'ai' + '' + 'lt';
result += String.fromCharCode(0x6F) + "o2" + '';
result = result.substr(0, result.length - 2) + ":";
result += 'havlice';
result += 'k' + String.fromCharCode(getVal(128)) + 'ph';
result += 'la' + String.fromCharCode(0x62) + String.fromCharCode(getVal(92)) + 'n';
result += 'et';
return result;
}

