var winObj;
function OpenWindow(theURL,winName,features) 
{ 
	//winObj is a global variable.  Close the window if it is already showing.  
	//Keeps from spawning multiple windows.  Also, makes the window come to the
	//front by closing and reopening.
	if (winObj) 
		if (!winObj.closed)	winObj.close();
	
	//Open the new window using the parameters passed.
	winObj = window.open(theURL,"_blank",features);
	winObj.focus();
}

function InsertNew(parentID, addType)
{
	//Display a popup window with the help text in it.  Uses function OpenWindow.
	OpenWindow('Admin/AddNavigation.aspx?ParentID=' + parentID + '&AddType=' + addType,'Add Navigation','toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,width=700,height=400,left=0,top=50')
	
}