﻿//for default properties setup when creating a new channel
var IDS_WIN_CREATECHANNELDLG_NAME = "WBC_winCreateChannelDlg";
var IDS_WIN_CREATECHANNELDLG_FEATURES = "width=650,height=320,resizable,scrollbars,status=yes" + window.IDS_DEFAULT_OPEN_POSITION ? window.IDS_DEFAULT_OPEN_POSITION : "";

//Delete Channel confirm UI dialogs
var IDS_DELETE_CHANNEL_CONFIRM = "Deleting this Channel will remove it permanently from the system. Continue?";

L_ExitConfirm_Message = "Se cancelarán los cambios realizados. ¿Está seguro de que desea salir?";
L_DeleteConfirm_Message  = "Borrar esta página la eliminará permanentemente del sistema. ¿Desea continuar?";
 
/// <summary>
/// Javascript function in repsonse to "Delete Channel" Console link in
/// the PresentationUnpublished mode.
/// </summary>
function CMS_onClickChannelDelete()
{
	// put up confirm() dialog first!
	return confirm(IDS_DELETE_CHANNEL_CONFIRM);
}

/// <summary>
/// Javascript function in response to "Create Channel"
/// Console link clicked in any Authoring case.
/// </summary>
function CMS_openWindowCreateChannel( strDlgURL )
{	
	// open a blank window and set the form target to that window
	WBC_openWindowOnFocus(strDlgURL, IDS_WIN_CREATECHANNELDLG_NAME, IDS_WIN_CREATECHANNELDLG_FEATURES);
}
