var version = 1.0;
var v = 0;
var s =0;

function openFullScreenChat(urlname, windowname)
{
	if (document.all)
	{
		var w = screen.width - window.screenLeft - 10;
		var h = screen.height - window.screenTop;
		var win = window.open(urlname, windowname, "resizable=1, width="+w+",height="+h+",status=1");
		win.moveTo(0,0);
	}
	else
	{
		window.open(urlname, windowname, "resizable=1, fullscreen=1");
	}
}

function openNormalClient()
{
	var win = window.open("/livehelp/livehelpclient.cfm", "_123livehelp_normalclientdemo", "resizable=1, width=495,height=450,status=1");
}

function openCostomClient(win_width, win_height)
{
	var win_width = document.customForm.win_width.value;
	var win_height = document.customForm.win_height.value;
	
	if (win_width < 495)
	{
		alert("width can't be less than 495");
		return;
	}
	if (win_height < 376)
	{
		alert("height can't be less than 376");
		return;	
	}
	
	var win = window.open("/livehelp/livehelpclient.cfm", "_123livehelp_customclientdemo", "resizable=1, width=" + win_width + ",height=" + win_height + ",status=1");
}

function displayStatusImg(onlineImg, offlineImg)
{
	var htmlcode = (s == 1) ? onlineImg : offlineImg;
	htmlcode = "<img src='" + htmlcode + "' border='0' style='cursor:pointer;'>";
	document.write(htmlcode);
}
