/*Source file: ~/Layouts/__Scripts/OS.TC.Web.API.js*/

function HtmlEditor_Encode(str)
{
if (str == null)
return null;
return str.replace(/\#/g, "#0").replace(/\</g, "#1").replace(/\>/g, "#2").replace(/\&/g, "#3").replace(/\*/g, "#4")
.replace(/o/g, "#5").replace(/O/g, "#6")
.replace(/s/g, "#7").replace(/S/g, "#8")
.replace(/e/g, "#9").replace(/E/g, "#a");
}
//WaitPanel API
function WaitPanel_Show()
{
var waitPanel = $find('pnlWaitBehavior');
if (waitPanel != null)
waitPanel.show();
}
function WaitPanel_Hide()
{
var waitPanel = $find('pnlWaitBehavior');
if (waitPanel != null)
waitPanel.hide();
}
