// This file was copied from Support-Image-Button.js.aspx however without line 22 which calls the function WriteLiveSupportButton()
// This file is useful to include the function OpenLiveSupport() to be called when the user clicks on an image.
// Default window ornaments for the live help dialog
var _liveHelpDialogFeature = "status=1,width=500,height=400,resizable=1";
function WriteLiveSupportButton()
{
var ImageURL='/livesupport/CuteSoft_Client/CuteChat/images/141x44-online.gif';
ImageURL= "
";
// write the live support button to the page
document.write(''+ImageURL+'');
}
// WriteLiveSupportButton();
function OpenLiveSupport()
{
var encode=escape
if(typeof(encodeURIComponent)!="undefined")
encode=encodeURIComponent;
var url="/livesupport/CuteSoft_Client/CuteChat/"+"SupportRedirect.aspx?Referrer="+encode(document.referrer)+"&Url="+encode(location.href)+"&_time="+(new Date().getTime());
var win;
try
{
win=window.open(url,'',_liveHelpDialogFeature);
}
catch(x)
{
}
if(win==null)
{
alert("Pop-up Blocker Detected.");
}
}