function BrowserRedirect( url )
{
    top.window.location = url;
}

function Confirm_Save_Draft( post_type )
{
	if ( post_type == "post" )
	{
		confirm_str = PUBLISH_CONFIRM_MSG;
	}
	else //"post_draft"
	{
		confirm_str = DRAFT_CONFIRM_MSG;
	}
	var name = confirm( confirm_str );
	return name;
}

//This script is not related with the tree itself, just used for my example
function getQueryString( index )
{
	var paramExpressions;
	var param
	var val
	paramExpressions = window.location.search.substr(1).split( "&" );
	if ( index < paramExpressions.length )
	{
		param = paramExpressions[ index ];
		myname = param.split( "=" )[0];
		myvalue = param.split( "=" )[1];
		//alert( myname );
		//alert( myvalue );
		if ( param.length > 0 )
		{
			//return eval( unescape( param ) );
			return unescape( myvalue );
		}
	}
	return ""
}

