function setAction( _httpAction )
{
	//var obj = document.getElementById( "iframe_body" );
	var obj = document.getElementById( "frameset" );

	alert( obj );

	//obj.src = _httpAction;
}

function openPage( _http )
{
	var obj = top.document.getElementById( "mainWindow" );
		obj.src = _http;
}

function openWindow( _httpAction )
{
	openApopWindowInCenter( _httpAction, '', "openpopup", 800, 600 );
}

function openApopWindowInCenter( _loc, _var, _wName, _width, _height) {
	var maxWidth = top.document.body.clientWidth;
	var maxHeight = top.document.body.clientHeight;

	var sX = maxWidth / 2	-	_width / 2
	var sY = (maxHeight - 50) / 2	-	_height / 2

	var string = _loc + _var;

	newwindow = window.open(string,_wName,'height='+ _height +',width='+ _width +',left='+ sX +',top='+ sY +',resizable=yes,scrollbars=yes,toolbar=yes,status=yes');

	if (window.focus) {
		newwindow.focus()
	}
}
