
//Browser detect.
var MSIE = false;		//Microsoft Internet Explorer flag.
var Opera = false;		//Orepa flag.
if (navigator.userAgent.indexOf('MSIE') >= 0 && navigator.userAgent.indexOf('Opera') < 0) MSIE = true;
if (navigator.userAgent.indexOf('Opera') >= 0) Opera = true;

//docuemnt.getElementById alias
function el(id) {
	return document.getElementById(id);
}

//Redirect to other page.
function jump(url) {
	document.location.href = url;
}

//Set focus at object and execute onfocus event if browse is IE.
function focus(obj) {
	if (MSIE && obj.onfocus) obj.onfocus();
	obj.focus();
}
