
var deptid;
deptid = ""

function xlaALSprecheck(){
	if ((document.body && typeof(document.body.innerHTML)) != 'undefined'){
		xlaALSrequest();
	} else {
		alert('Sorry, but your browser does not support several features of this system.');
	}
}
function xlaALSrequest(){
	//this is the als.asp one
	var w = 640, h = 480;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}
	var leftPos = (w-520)/2, topPos = (h-520)/2;
	
	xlaALSwindow=window.open("https://www.fuzeqna.com/wrightpatt/chat/UserPreChat.asp?deptid=&ref=&UserType=1","ALSRoom","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=520,height=520,top=" + topPos + ",left=" + leftPos);
	xlaALSwindow.focus();
}

function xlaALScheckstatus(){
	var nt=String(Math.random()).substr(2,10);
	var url = '//www.fuzeqna.com/wrightpatt/chat/als.asp?DeptID=&getstatus=1&nt=' + nt;
	document.getElementById("xlaALSstatusimg").src=url;
	//document.getElementById("xlaALSstatusimg").src='/chat/als.asp?getstatus=1&nt=' + nt;
	
	//setTimeout("xlaALScheckstatus();", 10000);
}
document.write("<a href='javascript:void(0);' onclick='javascript:xlaALSprecheck()'><img src='' border=0 alt='..\/images\/chat\/chatoffline.gif' id=xlaALSstatusimg><\/a>");

xlaALScheckstatus();