// view image in new window
function imgview(imgURL) {
	var hostname = window.location.hostname;
	window.open('http://'+hostname+'/viewimg.php?'+imgURL,'image','width=200,height=200,top=20,left=20,scrollbars=0,resizable=1,status=0');
}

// reverse text - email address protection
String.prototype.reverse = function() { return this.split('').reverse().join(''); };

// image delete confirm
function erase_image(uri)
{
	if(confirm("Obrázok bude fyzicky odstránený!\nChcete pokračovat?"))
	{
		location.href=uri;
	}
}

// private message remove
function remove_pm(uri)
{
	if(confirm("Táto správa bude odstránená!\nChcete pokračovat?"))
	{
		location.href=uri;
	}
}

