
btnLiveChat = new Image; btnLiveChatOver = new Image;
btnLiveChat.src="http://www.theparalegalinstitute.edu/absolutels/files/online_nb.jpg"; btnLiveChatOver.src="http://www.theparalegalinstitute.edu/absolutels/files/online_nb_o.jpg";

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(){
	var w = 640, h = 480;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}
	var leftPos = (w-520)/2, topPos = (h-400)/2;
	xlaALSwindow=window.open('http://www.theparalegalinstitute.edu/absolutels/UserPreChat.asp?ref=&server_var=_nb',"ALSRoom","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=520,height=400,top=" + topPos + ",left=" + leftPos);
	xlaALSwindow.focus();
}

function xlaALScheckstatus(){
	var nt=String(Math.random()).substr(2,10);
	document.getElementById("xlaALSstatusimg").src='http://www.theparalegalinstitute.edu/absolutels/als.asp?getstatus=1&nt=' + nt;
	setTimeout("xlaALScheckstatus();", 10000);
}
document.write("<a href='#' onclick='javascript:xlaALSprecheck()' onmouseover='document.imgLiveChat.src=btnLiveChatOver.src' onmouseout='document.imgLiveChat.src=btnLiveChat.src'><img name='imgLiveChat' src='http:\/\/www.theparalegalinstitute.edu\/absolutels\/files\/online_nb.jpg' border=0 id='xlaALSstatusimg' name='xlaALSstatusimg' onMouseOver=imgOn('xlaALSstatusimg') onMouseOut=imgOff('xlaALSstatusimg')><\/a><iframe src='http:\/\/www.theparalegalinstitute.edu\/absolutels\/proactive.asp' id=xlaALSproactive width=0 height=0 style='visibility:hidden' frameborder=0><\/iframe>");
xlaALScheckstatus();