function ComponentStatus(id, statusID, precision, componentManagerObj) {

    ComponentStatus.prototype.setCoordinates = function(x, y) {
        
        if (this.xCoorInfoObj) {
            this.xCoorInfoObj.innerHTML = this.componentManagerObj.setPrecision(x, this.precision);
        }
        if (this.yCoorInfoObj) {
            this.yCoorInfoObj.innerHTML = this.componentManagerObj.setPrecision(y, this.precision);
        }
    }
    
    ComponentStatus.prototype.setScale = function(scale) {

            if(this.scaleInfoObj && scale > 0) {
                this.scaleInfoObj.innerHTML = "1:" + scale;
            }
    }
    
    ComponentStatus.prototype.init = function() {
        //Initialisation calls
        this.componentManagerObj.statusObj = this;
    }
    
    this.id = id;
    this.precision = precision;
    this.componentManagerObj = componentManagerObj;
    this.xCoorInfoObj = document.getElementById(statusID + "_askStatusAreaXInfo");
    this.yCoorInfoObj = document.getElementById(statusID + "_askStatusAreaYInfo");
    this.scaleInfoObj = document.getElementById(statusID + "_askStatusAreaScaleInfo");
    this.init();
}
