/***************************************************
	JS Redirection
***************************************************/
function getURL( URL )
{
	parent.location.href = URL ;
}

/***************************************************
	get Document Element by ID
***************************************************/
function getElem( ID )
{
	return document.getElementById( ID );
}

/***************************************************
	Open an ajax prototype window
***************************************************/
function winAjax( url, _title, w, h, mi, ma, destroy )
{
	w = w || 500;
	h = h || 0;
	mi = mi || false;
	ma = ma || false;
	destroy = destroy || true;
	pwAjax = new Window({className: "alphacube", title: _title, width: w, height: h, 
											minimizable: mi, maximizable: ma, destroyOnClose: destroy, recenterAuto:false/*, showEffect: Effect.Appear, hideEffect: Effect.Fade*/}); 
	setWinAjax( pwAjax, url );
	return pwAjax;
}

/***************************************************
	Set Ajax content of a prototype window
***************************************************/
function setWinAjax( win, url )
{
	win.setAjaxContent(url, "", true, true);
}


