var ReAjax = function()
{}
ReAjax.prototype.GetHttpRequest = function()
{
	var reObj="";
	if ( window.XMLHttpRequest ){
		reObj= new XMLHttpRequest() ;
	}
	else if ( window.ActiveXObject ){	
		try{
			reObj=new ActiveXObject("MsXml2.XmlHttp") ;
		}
		catch(e){
			reObj=new ActiveXObject("microsoft.XmlHttp")
		}
	}
	return reObj;
}
ReAjax.prototype.LoadUrl = function( urlToCall)
{	
	var oReAjax = this ;
	var oAjaxHttp = this.GetHttpRequest() ;
	oAjaxHttp.open( "GET", urlToCall, false) ;
	oAjaxHttp.send( null );
	var result=oAjaxHttp.responseText;
	return result;
}
function getSession()
{
	var hostnames=top.location.hostname;
	//alert(hostnames+"/sl/cn/getSession.asp?fresh="+Math.random());
	var str=ReAjax.prototype.LoadUrl("http://"+hostnames+"/cn/getSession.asp?fresh="+Math.random());
	//alert(str);
	var usertype=document.getElementById("usertype");
	usertype.innerHTML=str+'';
}
