function browserInfo() {
	this.code = 'unknown';
	this.version = 0;
	this.platform = 'Win';
	
	var i = navigator.userAgent.indexOf('MSIE');
	if (i >= 0) {
		this.code = 'MSIE';
		this.version = parseFloat(navigator.userAgent.substring(i+5, i+9));
	} else {
		i = navigator.userAgent.indexOf('Mozilla/')
		if (i >= 0) {
			this.code = 'NS';
			this.version = parseFloat(navigator.userAgent.substring(i+8, i+12));
		}
	}
	if (navigator.userAgent.indexOf('Mac') >= 0) {this.platform = 'Mac';}
	if (navigator.userAgent.indexOf('OS/2') >= 0) {this.platform = 'OS/2';}
	if (navigator.userAgent.indexOf('X11') >= 0) {this.platform = 'UNIX';}
	
	this.canCache = ((this.code == 'NS') && (this.version >= 3)) || ((this.code == 'MSIE') && (this.version >= 4)) ;
	this.canOnMouseOut = ((this.code == 'NS') && (this.version >= 3));
	this.hasRentrantBug = ((this.code == 'NS') && (this.version == 2.01) && (this.platform != 'Win'));
	this.canJSVoid = !(((this.code == 'NS') && (this.version < 3)) || ((this.code == 'MSIE') && (this.version < 4)));
	this.mustMoveAfterLoad = ((this.code == 'NS') && (this.version >= 3));
	this.hasDHTML = ((this.code == 'NS') && (this.version >= 4)) || ((this.code == 'MSIE') && (this.version >= 4));
}

var theBrowser = new browserInfo;

function ChangeImg(aImg, AFileName) {
	aImg.src = AFileName;
}

function call_url(url) {
	location.href = url;
}

// Methode, doppelte Submits auszuschließen:
var isFirstClick = true;
function checkDoubleClick_onSubmit()
{
  if (!isFirstClick) {
    return false;
  }
  else {
    isFirstClick = false;
    return true;
  }
}
