function confirmar_delete(menu_id) {
  if (confirm('Esto eliminará el menú y todos sus submenús, ¿estás seguro?') )
  {
   parent.location='admin.php?op=6&menu_id='+menu_id;
  }
}
function confirmar_delete_msg_link(msg,link) {
  if (confirm(msg) )
  {
   parent.location=link;
  }
}
var dest_field;
function BrowseServer(field)
{
	// You can use the "CKFinder" class to render CKFinder in a page:
    dest_field = field;	
	var finder = new CKFinder() ;
	finder.BasePath = 'cefoac/includes/ckfinder/' ;	// The path for the installation of CKFinder (default = "/ckfinder/").
	finder.SelectFunction = SetFileField ;
	
	finder.Popup() ;

	// It can also be done in a single line, calling the "static"
	// Popup( basePath, width, height, selectFunction ) function:
	// CKFinder.Popup( '../../', null, null, SetFileField ) ;
}
function SetFileField( fileUrl)
{   
document.getElementById( dest_field ).value = fileUrl.substring(1) ;
}
