function ZohoSheet()
{
	this.Width;
	this.Height;
	this.SheetFileUrl;

	this.show = function() {
	    ///UserCodeRegionStart:[show] (do not remove this comment.)
	    if (!this.IsPostBack && !this.NewSheetCreated) {
	        this.loadSheetToDisplay();
	        this.setHtml(this.createIframe());
	    }
	    ///UserCodeRegionEnd: (do not remove this comment.)
	}
	///UserCodeRegionStart:[User Functions] (do not remove this comment.)

    this.createIframe = function()
    {
    	var iframeBuffer = [];
    	iframeBuffer.push('<iframe  id="' + this.ContainerName + 'Sheet" width="' + this.Width + '" frameborder="0" height="' + this.Height + '" + src="' + this.SheetFileUrl + '">');
        iframeBuffer.push('</iframe');
        return iframeBuffer.join('');
    }

    this.loadSheetToDisplay = function() 
    {
        if (this.LoadSheet != undefined) {
            this.NewSheetCreated = true;
            this.LoadSheet();
        }	        
    }
    	
	this.trim = function(stringToTrim) {
	    return stringToTrim.replace(/^\s+|\s+$/g,"");
	}

	///UserCodeRegionEnd: (do not remove this comment.):
}



