var PopUp;

function openPopup(url, width, height)
{
	var  x = screen.width ;
	var  y = screen.height ;
	var  width = width;
	var  height = height;
	var	 top = parseInt( ( y - height ) / 2 ) ;
	var	 left = parseInt( ( x - width  ) / 2 ) ;
	var  props = "toolbar=no,status=yes,scrollbars=yes,resizable=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top;

	PopUp = window.open(url ,'PopUp' , props ) ;
}

function refreshParent() {
	window.opener.location.href = window.opener.location.href;
	if (window.opener.progressWindow) {
		window.opener.progressWindow.close()
	}
	window.close();
}

function setParent(url)
{
	window.opener.location.href = url;
	if (window.opener.progressWindow) {
		window.opener.progressWindow.close();
	}
	window.close();
}

function setParentOnLogout(){
	window.opener.location.href = '/int/reg/logout.do';
	window.focus();
}