function confirmDelete(ask, url) 
{
	temp = window.confirm(ask);
	if (temp) //delete
		window.location=url;
}

function open_window(link,w,h)
{
	var wleft = (screen.width - w) / 2;
	var wtop  = (screen.height - h) / 2;
	var win   = "width="+w+",height="+h+",menubar=no,location=no,resizable=yes,scrollbars=yes,left="+wleft+",top="+wtop;
	newWin    = window.open(link,'newWin',win);
	newWin.focus();
}

function Expand(id)
{	
	idUp   = id + "U";
	idDown = id + "D";
	
	if(document.getElementById(id).style.display == "none")
	{
		document.getElementById(id).style.display     = "";
		document.getElementById(idUp).style.display   = "none";
		document.getElementById(idDown).style.display = "";
	}
	else
	{
		document.getElementById(id).style.display     = "none";
		document.getElementById(idUp).style.display   = "";
		document.getElementById(idDown).style.display = "none";
	}
}

