function NewWin(Location, Width, Height) {
	var leftprop, topprop, screenX, screenY;
	if(navigator.appName == "Microsoft Internet Explorer") {
		screenY = document.body.offsetHeight;
		screenX = window.screen.availWidth;
	} else {
		screenY = window.outerHeight
		screenX = window.outerWidth
	}

	leftvar = (screenX - Width) / 2;
	rightvar = (screenY - Height) / 2;
	if(navigator.appName == "Microsoft Internet Explorer") {
		leftprop = leftvar;
		topprop = rightvar;
	} else {
		leftprop = (leftvar - pageXOffset);
		topprop = (rightvar - pageYOffset);
	}
	VP=window.open(Location,'NewWin','menubar=no,titlebar=no,toolbar=no,scrollbars=yes,status=no,width=' + Width + ',height=' + Height + ',left=' + leftprop + ',top=' + topprop + ',resizable=yes');
	VP.focus();
}

function DeleteEntry(path){
	if(confirm('Are you sure you want to delete this entry?')){
		location = path;
	}
}

function ShowElement(el){
	document.getElementById(el).style.display = 'block';
	document.getElementById('blockUI').style.display = 'block';

}

function ShowElementByEffect(el, showui){
	new Effect.Appear(el);
	new Draggable(el);
	//document.getElementById(el).style.display = 'block';
	if(showui == true){
		document.getElementById('blockUI').style.display = 'block';
	}

}

function ShowElementAtMouse(el){
	document.getElementById(el).style.left = xMousePos;
	document.getElementById(el).style.top = yMousePos;
	new Effect.Appear(el);
	new Draggable(el);
}

function HideElement(el){
	document.getElementById(el).style.display = 'none';
	document.getElementById('blockUI').style.display = 'none';
}

function HideElementNoUI(el){
	document.getElementById(el).style.display = 'none';
}