function addtomywrafavorites()
{
//alert(window.location + ', ' + window.document.title);
window.location='/myWRA/myWRA_Favorites.asp?action=ADD&URL='+ encodetohex(window.location) + '&TITLE=' + encodetohex(window.document.title);
}

function encodetohex(strin)
{
	
	var tmpstr,looper;
	tmpstr=String('');
	strin=strin.toString();
	//alert('strin=' + strin + ', length:' + strin.length);

	for (looper=0;looper<strin.length;looper++)
	{
		//alert(strin.charCodeAt(looper));
		tmpstr+=Dec2Hex(strin.charCodeAt(looper));
	}
	//alert(strin + ', ' + tmpstr);
	return tmpstr;
}

function Dec2Hex(DecVal)
{
	var HexChars = "0123456789ABCDEF";
	DecVal=parseInt(DecVal);
	if (DecVal > 255 || DecVal < 0)
	{
		DecVal=255;
	}
	var Dig1 = DecVal % 16;
	var Dig2 = (DecVal-Dig1) / 16;
	var HexVal = HexChars.charAt(Dig2)+HexChars.charAt(Dig1);
	return HexVal;
}