
function SYSTEM(){
	this.user_agent         = "UNKNOWN";
	this.user_agent_version = "UNKNOWN";
	// TODO
	if(navigator.userAgent.match(/MSIE /)){
		this.user_agent = "MSIE";
		if(navigator.userAgent.match(/MSIE 6/)){
			this.user_agent_version = "MSIE6";
		} else if(navigator.userAgent.match(/MSIE 7/)){
			this.user_agent_version = "MSIE7";
		}
	} else if(navigator.userAgent.match(/Firefox/)){
		this.user_agent = "Firefox";
	}
}

var SYSTEM = new SYSTEM();


onerror=handleError;

function handleError(msg, url, l){
	//alert("MSG = "+msg+"\nURL="+url+"\nl="+l);
}
