var cccXML = null; var cccOutput = document.getElementById('c3session');
var cccURL = location.href; var cccXbrand = null;
var cccBrand = cccURL.match(/(&x=)([A-Z]{8})/);
if(cccBrand != null){ 
	var cccTlink = "touch.ccc?xx="+cccBrand[2];
	window.setTimeout(cccTouch,90000);
	}else{
	cccXbrand = document.forms[0].x.value;
	if (cccXbrand){
		var cccTlink = "touch.ccc?xx="+cccXbrand;
		window.setTimeout(cccTouch,90000);
		}
	}

function SessionState(){
	if (cccXML.readyState == 4) {
		var Xstring=cccXML.responseText;
		var Xnumber=parseInt(Xstring);
		cccOutput.style.backgroundPosition = '0px 0px';
	}
}
function cccTouch(){
	if (window.XMLHttpRequest) {cccXML = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
	  try {cccXML = new ActiveXObject("Msxml2.XMLHTTP");} catch (ex) {
	    try {cccXML = new ActiveXObject("Microsoft.XMLHTTP");} catch (ex) {	    }
	  }
	}		
	cccXML.open("GET", cccTlink);
	if (cccOutput){
		cccOutput.style.backgroundPosition = '0px -16px';
		cccXML.onreadystatechange = SessionState;
	}
	cccXML.send(null);	
	window.setTimeout(cccTouch,90000);
}	





