function SendEpost(adr, subj)
{
	strMsg = String.fromCharCode(109, 97, 105, 108, 116, 111, 58);
	strMsg += adr;
	for(i=32;i<256;i++)
	{
		re = new RegExp("x"+i.toString(16), "g");
		strMsg = strMsg.replace(re, String.fromCharCode(i));
	}
	if ( subj != "" && subj != undefined)
		strMsg += "?subject=" + encodeURI(subj);

	location.href = strMsg;
}


function SendEpost2(adr, subj)
{
	n = parseInt("0x" + adr.substring(0,2), 16);
	s = n%2 ? 4 : 2;
	strMsg = String.fromCharCode(109, 97, 105, 108, 116, 111, 58);
	for(i=s; i<adr.length; i+=2)
	{
		n = parseInt("0x" + adr.substring(i,i+2), 16);
		l = (n&0xf0)>>4;
		h = (n&0x0f)<<4;
		strMsg += "x" + (l+h+1).toString(16);
	}
	
	for(i=32;i<256;i++)
	{
		re = new RegExp("x"+i.toString(16), "g");
		strMsg = strMsg.replace(re, String.fromCharCode(i));
	}
	if ( subj != "" && subj != undefined)
		strMsg += "?subject=" + subj;
	
	location.href = strMsg;
}

function FullSizeImg()
{
	o = event.srcElement;
	if ( !o ) return;
	if ( o.tagName != "IMG") return;
	window.open(o.src, "_jsrpFullSizeWnd");
}

function GotoLink(url, target)
{
	window.open(url, target);
}

function popup_page(url)
{
	window.open(url,"_blank","fullscreen=yes, status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes");
}
function open_window(url)
{
	window.open(url,"_blank","fullscreen=no, status=no,scrollbars=yes,toolbar=no,menubar=no,location=no,resizable=yes");
}

	
