function __global()
{
	this.ie=document.all?true:false;
	this.getId=function(id){return document.getElementById(id)}
	this.isInteger=function(str)
	{
		return isNaN(parseInt(str))?false:true;
	}
	
	this.replace=function(str,oldStr,newStr){
		while(str.indexOf(oldStr)>-1){
			str=str.replace(oldStr,newStr);
		}
		return str;
	}
}
var Global = new __global();

if(Global.ie) 
XMLHttpRequest=function(){
	var request=0;
	try{
		request=new ActiveXObject("Msxml2.XMLHttp");
	}catch(e){
		try{
			request=new ActiveXObject("Microsoft.XMLHttp"); 
		}catch(e){
		}
	} 
	return request;
}
