s=0;
if (width_123livehelp == null)
{
var width_123livehelp = 495;
}
if (height_123livehelp == null)
{
var height_123livehelp = 440;
}
if (skin_123livehelp ==null)
{
var skin_123livehelp = "silver";
}
function displayStatusImg(onlineImg, offlineImg,skin_123livehelp)
{
var htmlcode = (s == 1) ? onlineImg : offlineImg;
htmlcode = "
";
document.write(htmlcode);
}
function openNormalClient()
{
var win = window.open("http://host.123livehelp.com/client.php?init_url=host.123livehelp.com&init_group=gtalimited&init_preColor="+skin_123livehelp, "_123livehelp_normalclientdemo", "resizable=1, width=495,height=440,status=1");
}
function displayTextURL()
{
var htmlcode = (s == 1) ? livehelp_online_button : livehelp_offline_button;
htmlcode = "" + htmlcode + "";
document.write(htmlcode);
}
function openCostomClient(width_123livehelp, height_123livehelp)
{
// var win_width = document.customForm.win_width.value;
// var win_height = document.customForm.win_height.value;
if (width_123livehelp < 495)
{
alert("width can't be less than 495");
return;
}
if (height_123livehelp < 440)
{
alert("height can't be less than 440");
return;
}
// var win = window.open("http://host.123livehelp.com/client.php?init_url=host.123livehelp.com&init_group=gtalimited&init_preColor="+skin_123livehelp, "_123livehelp_customclientdemo", "resizable=1, width=" + width_123livehelp + ",height=" + height_123livehelp + ",status=1");
var openURL=escape(window.document.location.href);
var url="http://host.123livehelp.com/client.php?init_group=gtalimited&init_preColor="+skin_123livehelp+"&init_url="+openURL;
var win = window.open(url, "_123livehelp_customclientdemo", "resizable=1, width=" + width_123livehelp + ",height=" + height_123livehelp + ",status=1");
}
if(typeof(livehelp_online_button) != "undefined" && typeof(livehelp_offline_button) != "undefined" && livehelp_online_button!="" && livehelp_offline_button!="")
{
displayTextURL();
}
else
{
displayStatusImg("http://host.123livehelp.com/img/online.gif", "http://host.123livehelp.com/img/offline.gif");
}
// if (s == 0)
// document.write("
Note: Since you haven't logged in any staff yet, client can only write email instead of communicating with staff online.");