

function CheckPopupBlocker(){
var mypopup=window.open("https://www.livehelp.salesrep.com/xicons.aspx","win1",'width=100,height=100,left=0, top=0');
if (mypopup){
  mypopup.close();
  mypopup.blur();
}
else 
alert('This web site use popup and you may have a popup blocker running!. Please disable your popup blocker and try again.');
}

function xlaALSprecheck(){
	if ((document.body && typeof(document.body.innerHTML)) != 'undefined'){
		xlaALSrequest();
	} else {
		alert('Your browser does not support several features of this system.\nPlease upgrade to a newer version');
	}
}
function urlencode(ch) {
		ch = ch.replace(/[ ]/g,"+") 
		ch = escape(ch)
		ch = ch.replace(/[\/]/g,"%2f")
		ch = ch.replace(/[\/]/g,"%5c")
		return (ch) 
	}

function xlaALSrequest(){
	var w = 640, h = 480;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}
	var leftPos = (w-580)/2, topPos = (h-380)/2;
	var HTTPReferrer = document.referrer
	xlaALSwindow=window.open("http://livehelp.salesrep.com//Help.aspx?ver=4e&sid=7654321&i=360&Referer=OrbitSat&Ref=&d=&u=&bypass=&var=&HTTPReferrer="+urlencode(HTTPReferrer),"LiveHelp" ,"toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=580,height=380,top=" + topPos + ",left=" + leftPos);
	xlaALSwindow.focus();
}

document.write("<a href='javascript:;' target=_self onclick='javascript:xlaALSprecheck()'><img src='http://Livehelp.salesrep.com/customers/Orbit/offline.gif' border=0 id='LiveHelpImgStatus28551'></a>");


function xlaALScheckstatus_28551(){
	var nt=String(Math.random()).substr(2,10);
	document.getElementById("LiveHelpImgStatus28551").src='http://livehelp.salesrep.com/HelpIcon.aspx?i=360&sid=7654321&u=&d=&getstatus=1&nt=' + nt;
	setTimeout("xlaALScheckstatus_28551();", 1000 );
			
}
xlaALScheckstatus_28551();
